name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
vs_bit | int vs_bit(struct bitstream *str, uint32_t *val) {
if (str->dir == VS_ENCODE) {
str->curbyte |= *val << str->bitpos;
if (!str->bitpos) {
if (vs_byte(str))
return 1;
} else {
str->bitpos--;
}
} else {
if (!str->hasbyte) {
if (vs_byte(str))
return 1;
}
*val = str->curbyte >> str->bitpos &... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, (%rdi)
je 0x2205
cmpl $0x0, 0x30(%rbx)
je 0x221b
movzbl 0x18(%rbx), %eax
movl 0x1c(%rbx), %ecx
xorl %edx, %edx
btl %ecx, %eax
setb %dl
movl %edx, (%r14)
movl 0x1c(%rbx), %eax
testl %eax, %eax
je 0x2230
decl %eax
movl %eax, 0x1c(%rbx)
jmp 0x2253... | /envytools[P]envytools/vstream/bitstream.c |
vs_u | int vs_u(struct bitstream *str, uint32_t *val, int size) {
int i;
uint32_t bit;
if (str->dir == VS_DECODE)
*val = 0;
for (i = 0; i < size; i++) {
bit = *val >> (size - 1 - i) & 1;
if (vs_bit(str, &bit)) return 1;
*val |= bit << (size - 1 - i);
switch (str->type) {
case VS_H261:
if (str->zero_bits >... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x1, (%rdi)
jne 0x2290
movl $0x0, (%r14)
testl %ebx, %ebx
jle 0x22ee
movl (%r14), %eax
decl %ebx
leaq 0xc(%rsp), %r12
movl $0x1, %ebp
xorl %ecx, %ecx
btl %ebx, %eax
setb %cl
movl %ecx, 0xc(%rsp)... | /envytools[P]envytools/vstream/bitstream.c |
vs_ue | int vs_ue(struct bitstream *str, uint32_t *val) {
int lzb = 0;
uint32_t tmp;
if (str->dir == VS_ENCODE) {
tmp = 0;
if (*val >= (uint32_t)0xffffffff) {
fprintf (stderr, "Exp-Golomb number larger than 2^32-2\n");
return 1;
}
while (*val >= (uint32_t)(1u << (lzb + 1)) - 1) {
if (vs_u(str, &tmp, 1))
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, (%rdi)
je 0x238a
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
leaq 0xc(%rsp), %r12
movl $0x1, %ebp
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x2270
testl %eax, %eax
jne 0x2425
incl %r15d
cmp... | /envytools[P]envytools/vstream/bitstream.c |
vs_se | int vs_se(struct bitstream *str, int32_t *val) {
uint32_t tmp;
if (str->dir == VS_ENCODE) {
if (*val == (int32_t)(-0x7fffffff-1)) {
fprintf (stderr, "Exp-Golomb signed number equal to -2^31\n");
return 1;
}
if (*val > 0) {
tmp = *val * 2 - 1;
} else {
tmp = -*val * 2;
}
return vs_ue(str, &tmp)... | pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
cmpl $0x0, (%rdi)
je 0x2471
leaq 0xc(%rsp), %rsi
callq 0x2306
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x2493
movl 0xc(%rsp), %eax
movl %eax, %ecx
shrl %ecx
negl %ecx
movl %eax, %edx
incl %edx
shrl %edx
testb $0x1, %al
cmovel %ecx, %edx
movl %edx, (%rbx)
xorl %eax... | /envytools[P]envytools/vstream/bitstream.c |
vs_search_start | int vs_search_start(struct bitstream *str) {
if (str->dir != VS_DECODE) {
fprintf (stderr, "vs_search_start called in encode mode!\n");
return -1;
}
if (str->type == VS_H261 || str->type == VS_H263) {
int nzbit = (str->type == VS_H261 ? 15 : 16);
uint32_t bit = 0;
while (1) {
if (!str->hasbyte && str->... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpl $0x1, (%rdi)
jne 0x299a
movq %rdi, %rbx
movl 0x2c(%rdi), %eax
testl $0xfffffffd, %eax # imm = 0xFFFFFFFD
jne 0x2922
cmpl $0x1, %eax
movl $0x10, %ebp
sbbl $0x0, %ebp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
cmpl $0x0, 0x30(%rbx)
jne 0x290c
movl 0x20(%rbx), %eax
... | /envytools[P]envytools/vstream/bitstream.c |
vs_align_byte | int vs_align_byte(struct bitstream *str, enum vs_align_byte_mode mode) {
uint32_t pad;
switch (mode) {
case VS_ALIGN_0:
pad = 0;
break;
case VS_ALIGN_1:
pad = (1 << (str->bitpos + 1)) - 1;
break;
case VS_ALIGN_10:
pad = 1 << str->bitpos;
break;
default:
abort();
}
if (str->dir == VS_ENC... | pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
testl %esi, %esi
je 0x29da
cmpl $0x2, %ebp
je 0x29d0
cmpl $0x1, %ebp
jne 0x2a45
movb 0x1c(%rbx), %cl
incb %cl
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
shll %cl, %ebp
notl %ebp
jmp 0x29da
movb 0x1c(%rbx), %cl
movl $0x1, %ebp
shll %cl, %ebp
cmpl $0x0... | /envytools[P]envytools/vstream/bitstream.c |
vs_end | int vs_end(struct bitstream *str) {
uint32_t one = 1;
switch (str->type) {
case VS_H262:
return vs_align_byte(str, VS_ALIGN_0);
case VS_H264:
if (vs_u(str, &one, 1))
return 1;
if (one != 1) {
fprintf (stderr, "Wrong RBSP trailing bit!\n");
return 1;
}
return vs_align_byte(str, VS_ALIGN_... | pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, 0xc(%rsp)
movl 0x2c(%rdi), %eax
cmpl $0x3, %eax
je 0x2a6c
cmpl $0x1, %eax
je 0x2a94
callq 0x1050
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2270
testl %eax, %eax
je 0x2a8d
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
retq
cmpl $0x1, 0xc(%rsp)
jne 0x... | /envytools[P]envytools/vstream/bitstream.c |
vs_infer | int vs_infer(struct bitstream *str, uint32_t *val, uint32_t ival) {
if (str->dir == VS_ENCODE) {
if (*val != ival) {
fprintf (stderr, "Wrong infered value: %d != %d\n", *val, ival);
return 1;
}
} else {
*val = ival;
}
return 0;
} | movl %edx, %ecx
cmpl $0x0, (%rdi)
je 0x2c5b
movl %ecx, (%rsi)
xorl %eax, %eax
retq
movl (%rsi), %edx
xorl %eax, %eax
cmpl %ecx, %edx
jne 0x2c64
retq
pushq %rax
movq 0x2a384(%rip), %rax # 0x2cff0
movq (%rax), %rdi
leaq 0x77dd(%rip), %rsi # 0xa453
xorl %eax, %eax
callq 0x10b0
movl $0x1, %eax
addq $0x8, %rsp
retq... | /envytools[P]envytools/vstream/bitstream.c |
h264_mb_nb | const struct h264_macroblock *h264_mb_nb(struct h264_slice *slice, enum h264_mb_pos pos, int inter) {
const struct h264_macroblock *mbp = h264_mb_nb_p(slice, pos, inter);
const struct h264_macroblock *mbt = &slice->mbs[slice->curr_mb_addr];
switch (pos) {
case H264_MB_THIS:
return mbp;
case H264_MB_A:
/* t... | pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x2dda
testl %ebp, %ebp
je 0x2f40
movl 0xc34(%rbx), %edx
imulq $0x3774, %rdx, %rcx # imm = 0x3774
addq 0xc40(%rbx), %rcx
cmpl $0x2, %ebp
je 0x2efa
cmpl $0x1, %ebp
jne 0x2f47
cmpl $0x0, 0xc28(%rbx)
je 0x2f40
cmpl $0x39, 0x4(%rax)
sete %sil
testb ... | /envytools[P]envytools/vstream/h264_slice.c |
h264_inter_filter | const struct h264_macroblock *h264_inter_filter(struct h264_slice *slice, const struct h264_macroblock *mb, int inter) {
if (!inter
&& slice->picparm->constrained_intra_pred_flag
&& slice->nal_unit_type == H264_NAL_UNIT_TYPE_SLICE_PART_A
&& h264_is_inter_mb_type(mb->mb_type))
return h264_mb_unavail(1);
els... | movq %rsi, %rax
testl %edx, %edx
je 0x313f
retq
movq 0x38(%rdi), %rcx
cmpl $0x0, 0xb0(%rcx)
je 0x313e
cmpl $0x2, 0x4(%rdi)
jne 0x313e
cmpl $0x1b, 0x4(%rax)
leaq 0x7347(%rip), %rcx # 0xa4a4
cmovaeq %rcx, %rax
retq
| /envytools[P]envytools/vstream/h264_slice.c |
h264_mb_pred | int h264_mb_pred(struct bitstream *str, struct h264_cabac_context *cabac, struct h264_slice *slice, struct h264_macroblock *mb) {
int i, j;
if (mb->mb_type < H264_MB_TYPE_P_BASE) {
if (!h264_is_intra_16x16_mb_type(mb->mb_type)) {
if (!mb->transform_size_8x8_flag) {
for (i = 0; i < 16; i++) {
if (h264_pr... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r13
movq %rsi, %r15
movq %rdi, %r14
movl 0x4(%rcx), %eax
cmpq $0x1a, %rax
ja 0x31ef
movq %rdx, (%rsp)
addl $-0x19, %eax
cmpl $-0x19, %eax
ja 0x32d1
cmpl $0x0, 0xc(%r13)
je 0x3284
leaq 0xc94(%r13), %rbx
movl $0x4, %r12d
movl $... | /envytools[P]envytools/vstream/h264_slice.c |
h264_slice_data | int h264_slice_data(struct bitstream *str, struct h264_slice *slice) {
slice->prev_mb_addr = -1;
slice->curr_mb_addr = slice->first_mb_in_slice * (1 + slice->mbaff_frame_flag);
if (str->dir == VS_DECODE)
slice->last_mb_in_slice = slice->curr_mb_addr;
uint32_t skip_type = (slice->slice_type == H264_SLICE_TYPE_B ? ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movl $0xffffffff, 0xc30(%rsi) # imm = 0xFFFFFFFF
movl 0xc28(%rsi), %eax
incl %eax
imull 0x2c(%rsi), %eax
movq %rdi, %rbx
movl %eax, 0xc34(%rsi)
cmpl $0x1, (%rdi)
jne 0x40ab
movl %eax, 0xc2c(%r14)
cmpl $0x1, 0x40(%r14)
mov... | /envytools[P]envytools/vstream/h264_slice.c |
inferred_mb_field_decoding_flag | static int inferred_mb_field_decoding_flag(struct h264_slice *slice) {
if (slice->mbaff_frame_flag) {
const struct h264_macroblock *mbA = h264_mb_nb_p(slice, H264_MB_A, 0);
const struct h264_macroblock *mbB = h264_mb_nb_p(slice, H264_MB_B, 0);
if (mbA->mb_type != H264_MB_TYPE_UNAVAIL) {
return mbA->mb_field_d... | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
cmpl $0x0, 0xc28(%rdi)
je 0x46ad
xorl %ebx, %ebx
movq %r14, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2dda
movq %rax, %r15
movq %r14, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x2dda
cmpl $0x39, 0x4(%r15)
jne 0x46b3
cmpl $0x39, 0x4(%rax)
je 0x46b6
movl (%rax), %ebx
j... | /envytools[P]envytools/vstream/h264_slice.c |
infer_skip | static int infer_skip(struct bitstream *str, struct h264_slice *slice, struct h264_macroblock *mb) {
uint32_t skip_type = (slice->slice_type == H264_SLICE_TYPE_B ? H264_MB_TYPE_B_SKIP : H264_MB_TYPE_P_SKIP);
if (slice->mbaff_frame_flag) {
if (slice->curr_mb_addr & 1) {
if (h264_is_skip_mb_type(slice->mbs[slice->... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
cmpl $0x1, 0x40(%rsi)
movl $0x38, %eax
movl $0x20, %r15d
cmovel %eax, %r15d
cmpl $0x0, 0xc28(%rsi)
je 0x4748
movl 0xc34(%rsi), %eax
testb $0x1, %al
je 0x4777
movq 0xc40(%rsi), %rcx
andl $-0x2, %eax
imulq $0x3774, %rax, %rax # imm... | /envytools[P]envytools/vstream/h264_slice.c |
h264_residual_cavlc | int h264_residual_cavlc(struct bitstream *str, struct h264_slice *slice, int32_t *block, int *num, int cat, int idx, int start, int end, int maxnumcoeff) {
uint32_t total_coeff, trailing_ones;
int i, j;
int32_t tb[maxnumcoeff];
uint32_t run[maxnumcoeff];
int last;
uint32_t total_zeros;
if (str->dir == VS_ENCODE)... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r10d
movq %rcx, %r13
movq %rdx, %rbx
movq %rsp, %r15
movl 0x20(%rbp), %r8d
movl 0x10(%rbp), %ecx
movq %rsp, %r14
leaq 0xf(,%r8,4), %rax
andq $-0x10, %rax
subq %rax, %r14
movq %r14, %rsp
movq %rsp, %r12
subq %r... | /envytools[P]envytools/vstream/h264_residual.c |
h264_residual_cabac | int h264_residual_cabac(struct bitstream *str, struct h264_cabac_context *cabac, struct h264_slice *slice, struct h264_macroblock *mb, int32_t *block, int cat, int idx, int start, int end, int maxnumcoeff, int coded) {
int i;
uint32_t coded_block_flag = 0;
for (i = 0 ; i < maxnumcoeff; i++)
if (block[i])
coded_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movq %r8, %rbx
movq %rdi, %r14
movl 0x290(%rsp), %eax
movl 0x288(%rsp), %edi
movl $0x0, 0xc(%rsp)
testl %edi, %edi
jle 0x4bf3
movl %edi, %r10d
xorl %r8d, %r8d
cmpl $0x0, (%rbx,%r8,4)
je 0x4beb
movl $0x1, 0xc(%rs... | /envytools[P]envytools/vstream/h264_residual.c |
h264_residual_block | int h264_residual_block(struct bitstream *str, struct h264_cabac_context *cabac, struct h264_slice *slice, struct h264_macroblock *mb, int32_t *block, int *num, int cat, int idx, int start, int end, int maxnumcoeff, int coded) {
if (!cabac) {
if (!coded) {
int i;
for (i = 0; i < maxnumcoeff; i++) {
if (str... | pushq %r15
pushq %r14
pushq %rbx
movl 0x48(%rsp), %r15d
movl 0x40(%rsp), %ebx
movl 0x38(%rsp), %r14d
movl 0x30(%rsp), %r11d
movl 0x28(%rsp), %eax
movl 0x20(%rsp), %r10d
testq %rsi, %rsi
je 0x5154
subq $0x8, %rsp
movl %r10d, %r9d
pushq %r15
pushq %rbx
pushq %r14
pushq %r11
pushq %rax
callq 0x4ba5
addq $0x30, %rsp
jmp 0x... | /envytools[P]envytools/vstream/h264_residual.c |
h264_residual_luma | int h264_residual_luma(struct bitstream *str, struct h264_cabac_context *cabac, struct h264_slice *slice, struct h264_macroblock *mb, int start, int end, int which) {
static const int cattab[3][4] = {
{ H264_CTXBLOCKCAT_LUMA_DC, H264_CTXBLOCKCAT_LUMA_AC, H264_CTXBLOCKCAT_LUMA_4X4, H264_CTXBLOCKCAT_LUMA_8X8 },
{ H... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r9, (%rsp)
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, 0x18(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movslq 0xe0(%rsp), %rsi
testl %r8d, %r8d
jne 0x5208
movl 0x4(%rbx), %eax
addl $-0x19, %eax
cmpl $-0x18, %eax
jae 0x5535
mov... | /envytools[P]envytools/vstream/h264_residual.c |
h264_print_hrd | void h264_print_hrd(struct h264_hrd_parameters *hrd) {
printf ("\t\t\tcpb_cnt_minus1 = %d\n", hrd->cpb_cnt_minus1);
printf ("\t\t\tbit_rate_scale = %d\n", hrd->bit_rate_scale);
printf ("\t\t\tcpb_size_scale = %d\n", hrd->cpb_size_scale);
int i;
for (i = 0; i <= hrd->cpb_cnt_minus1; i++) {
printf ("\t\t\tbit_rate... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %esi
leaq 0xc29f(%rip), %rdi # 0x11a94
xorl %eax, %eax
callq 0x1070
movl 0x4(%rbx), %esi
leaq 0xc2a6(%rip), %rdi # 0x11aac
xorl %eax, %eax
callq 0x1070
movl 0x8(%rbx), %esi
leaq 0xc2ad(%rip), %rdi # 0x11ac4
xorl %eax, %ea... | /envytools[P]envytools/vstream/h264_print.c |
h264_print_seqparm | void h264_print_seqparm(struct h264_seqparm *seqparm) {
printf("Sequence parameter set:\n");
const char *profile_name = "???";
switch (seqparm->profile_idc) {
case H264_PROFILE_BASELINE:
profile_name = "Baseline";
break;
case H264_PROFILE_MAIN:
profile_name = "Main";
break;
case H264_PROFILE_EXTEND... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r15
leaq 0xe05c(%rip), %rdi # 0x1394d
callq 0x1060
movl (%r15), %esi
leaq 0xc2d6(%rip), %rdx # 0x11bd6
cmpl $0x63, %esi
jle 0x5937
cmpl $0x79, %esi
jle 0x5963
cmpl $0x8f, %esi
jg 0x5997
cmpl $0x7a, %esi
je 0x59b0
cm... | /envytools[P]envytools/vstream/h264_print.c |
h264_print_ref_pic_list_modification | void h264_print_ref_pic_list_modification(struct h264_ref_pic_list_modification *list, char *which) {
static const char *const opnames[6] = { "pic_num sub", "pic_num add", "long term", "end", "view idx sub", "view idx add" };
static const char *const argnames[6] = { "abs_diff_pic_num_minus1", "abs_diff_pic_num_minus1... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %edx
leaq 0xc322(%rip), %rdi # 0x12d2c
xorl %eax, %eax
callq 0x1070
movl 0x4(%rbx), %eax
cmpl $0x3, %eax
je 0x6a6e
addq $0x10, %rbx
leaq 0xaf0c(%rip), %r13 # 0x11930
leaq 0xc32a(%rip), %r14 # 0x12d55... | /envytools[P]envytools/vstream/h264_print.c |
h264_print_macroblock | void h264_print_macroblock(struct h264_slice *slice, struct h264_macroblock *mb) {
static const char *const mbtypenames[] = {
"I_NxN",
"I_16X16_0_0_0",
"I_16X16_1_0_0",
"I_16X16_2_0_0",
"I_16X16_3_0_0",
"I_16X16_0_1_0",
"I_16X16_1_1_0",
"I_16X16_2_1_0",
"I_16X16_3_1_0",
"I_16X16_0_2_0",
"I_16X16_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %r13
movl (%rsi), %esi
leaq 0xc51f(%rip), %rdi # 0x1374f
xorl %eax, %eax
callq 0x1070
movl 0x4(%r14), %esi
leaq 0xa71a(%rip), %rax # 0x1195c
movslq (%rax,%rsi,4), %rdx
addq %rax, %rdx
leaq 0xc51e(%rip... | /envytools[P]envytools/vstream/h264_print.c |
h264_print_slice_data | void h264_print_slice_data(struct h264_slice *slice) {
printf("Slice data:\n");
int mb = slice->first_mb_in_slice * (1 + slice->mbaff_frame_flag);
while (1) {
if (slice->mbaff_frame_flag)
printf("\tMacroblock %d (%d, %d, %d):\n", mb, mb/2 % slice->pic_width_in_mbs, mb/2 / slice->pic_width_in_mbs, mb%2);
else
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xc290(%rip), %rdi # 0x13a11
callq 0x1060
movl 0xc28(%rbx), %eax
leal 0x1(%rax), %ebp
imull 0x2c(%rbx), %ebp
leaq 0xc199(%rip), %r14 # 0x13933
leaq 0xc174(%rip), %r15 # 0x13915
testl %eax, %eax
je 0x77d1
movl %ebp, %ecx
shrl $0x1... | /envytools[P]envytools/vstream/h264_print.c |
h264_cabac_new | struct h264_cabac_context *h264_cabac_new(struct h264_slice *slice) {
struct h264_cabac_context *cabac = calloc (sizeof *cabac, 1);
cabac->slice = slice;
int i;
int mode;
if (slice->slice_type == H264_SLICE_TYPE_I || slice->slice_type == H264_SLICE_TYPE_SI)
mode = 0;
else
mode = slice->cabac_init_idc + 1;
fo... | pushq %rbx
movq %rdi, %rbx
movl $0x830, %edi # imm = 0x830
movl $0x1, %esi
callq 0x10a0
movq %rbx, (%rax)
movl 0x40(%rbx), %edx
xorl %ecx, %ecx
xorl %esi, %esi
cmpl $0x2, %edx
je 0x785e
cmpl $0x4, %edx
je 0x785e
movl 0xbf4(%rbx), %edx
incl %edx
movslq %edx, %rsi
movl 0xc24(%rbx), %edi
cmpl $0x33, %edi
movl $... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_init_arith | int h264_cabac_init_arith (struct bitstream *str, struct h264_cabac_context *cabac) {
if (!cabac)
return 0;
if (str->bitpos != 7) {
fprintf (stderr, "Trying to init CABAC when not byte aligned\n");
return 1;
}
if (str->dir == VS_ENCODE) {
cabac->codIRange = 510;
cabac->codIOffset = 0;
cabac->firstBitFla... | pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x7945
cmpl $0x7, 0x1c(%rdi)
jne 0x794f
movq %rsi, %r14
cmpl $0x0, (%rdi)
movl $0x1fe, 0x81c(%rsi) # imm = 0x1FE
je 0x7924
addq $0x818, %r14 # imm = 0x818
movq %r14, %rsi
movl $0x9, %edx
callq 0x2270
testl %eax, %eax
je 0x793c
movl $0x1... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_renorm | int h264_cabac_renorm(struct bitstream *str, struct h264_cabac_context *cabac) {
while (cabac->codIRange < 256) {
cabac->codIRange <<= 1;
cabac->codIOffset <<= 1;
if (str->dir == VS_ENCODE) {
if (cabac->codIOffset < 512) {
if (put_bit(str, cabac, 0))
return 1;
} else if (cabac->codIOffset >= 1024)... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x81c(%rsi), %eax
cmpl $0xff, %eax
ja 0x7a24
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x4(%rsp), %r15
movl $0x1, %ebp
addl %eax, %eax
movl %eax, 0x81c(%rbx)
movl 0x818(%rbx), %eax
addl %eax, %eax
movl %eax, 0x818(%rbx)
cmpl $0x0, (%r14)
je 0x79c1
movq %r14, %rdi
m... | /envytools[P]envytools/vstream/h264_cabac.c |
put_bit | static int put_bit(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t bit) {
uint32_t nbit = !bit;
if (cabac->firstBitFlag) {
cabac->firstBitFlag = 0;
if (bit != 0) {
fprintf (stderr, "CABAC initial skipped bit not 0\n");
return 1;
}
} else {
if (vs_u(str, &bit, 1))
return 1;
}
whil... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, 0x4(%rsp)
xorl %eax, %eax
testl %edx, %edx
sete %al
movl %eax, (%rsp)
cmpl $0x0, 0x820(%rsi)
je 0x7a9c
movl $0x0, 0x820(%rbx)
testl %edx, %edx
jne 0x7ac8
movq %rsp, %r15
movl $0x1, %ebp
movl 0x824(%rbx), %eax
testl %eax, %... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_decision | int h264_cabac_decision(struct bitstream *str, struct h264_cabac_context *cabac, int ctxIdx, uint32_t *binVal) {
if (ctxIdx == -1)
return h264_cabac_bypass(str, cabac, binVal);
if (ctxIdx == H264_CABAC_CTXIDX_TERMINATE)
return h264_cabac_terminate(str, cabac, binVal);
int qCodIRangeIdx = cabac->codIRange >> 6 & ... | pushq %rbx
movq %rsi, %rbx
cmpl $0x114, %edx # imm = 0x114
je 0x7af1
cmpl $-0x1, %edx
jne 0x7afd
movq %rbx, %rsi
movq %rcx, %rdx
popq %rbx
jmp 0x7bd1
movq %rbx, %rsi
movq %rcx, %rdx
popq %rbx
jmp 0x7cbf
movl 0x81c(%rbx), %esi
movl %esi, %r8d
shrl $0x6, %r8d
andl $0x3, %r8d
movslq %edx, %rax
movzbl 0x8(%rbx,%... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_bypass | int h264_cabac_bypass(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t *binVal) {
cabac->codIOffset <<= 1;
if (str->dir == VS_ENCODE) {
if (*binVal)
cabac->codIOffset += cabac->codIRange;
if (cabac->codIOffset < 512) {
if (put_bit(str, cabac, 0))
return 1;
} else if (cabac->codIOffset... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movl 0x818(%rsi), %eax
addl %eax, %eax
movl %eax, 0x818(%rsi)
cmpl $0x0, (%rdi)
je 0x7c2f
leaq 0xc(%rsp), %rsi
movl $0x1, %ebp
movl $0x1, %edx
callq 0x2270
testl %eax, %eax
jne 0x7cb4
movl 0x818(%rbx), %eax
orl 0xc(%rsp), %eax
movl %eax, ... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_terminate | int h264_cabac_terminate(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t *binVal) {
cabac->codIRange -= 2;
if (str->dir == VS_ENCODE) {
if (*binVal) {
cabac->codIOffset += cabac->codIRange;
/* end of the road */
cabac->codIRange = 2;
if (h264_cabac_renorm(str, cabac))
return 1;
... | pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x81c(%rsi), %eax
addl $-0x2, %eax
movl %eax, 0x81c(%rsi)
cmpl $0x0, (%rdi)
je 0x7cf1
cmpl %eax, 0x818(%rbx)
jae 0x7d7d
movl $0x0, (%rdx)
jmp 0x7d67
cmpl $0x0, (%rdx)
je 0x7d67
addl %eax, 0x818(%rbx)
movl $0x2, 0x81c(%rbx)
movq %r14, %rdi
movq %rbx, ... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_se | int h264_cabac_se(struct bitstream *str, struct h264_cabac_context *cabac, const struct h264_cabac_se_val *tab, int *ctxIdx, uint32_t *val) {
if (str->dir == VS_ENCODE) {
int i, j;
for (i = 0; tab[i].blen; i++) {
if (tab[i].subtab ? in_tab(tab[i].subtab, *val) : *val == tab[i].val) {
uint32_t bit;
for (... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %r12
movq %rcx, 0x18(%rsp)
movq %rdx, %r13
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
cmpl $0x0, (%rdi)
je 0x7e8f
movq %r12, 0x20(%rsp)
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
movdqa %xmm0, 0x30(%rsp)
movl 0x10(%r13), %ea... | /envytools[P]envytools/vstream/h264_cabac.c |
in_tab | static int in_tab(const struct h264_cabac_se_val *tab, uint32_t val) {
int i;
for (i = 0; tab[i].blen; i++) {
if (tab[i].subtab) {
if (in_tab(tab[i].subtab, val))
return 1;
} else {
if (val == tab[i].val)
return 1;
}
}
return 0;
} | pushq %rbp
pushq %r14
pushq %rbx
xorl %ebx, %ebx
cmpl $0x0, 0x10(%rdi)
je 0x7fc5
movl %esi, %ebp
movq %rdi, %r14
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x7fae
movl %ebp, %esi
callq 0x7f87
testl %eax, %eax
je 0x7fb3
jmp 0x7fc0
cmpl %ebp, (%r14)
je 0x7fc0
cmpl $0x0, 0x68(%r14)
leaq 0x58(%r14), %r14
jne 0x7f98
jmp 0x7fc... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_cabac_tu | int h264_cabac_tu(struct bitstream *str, struct h264_cabac_context *cabac, int *ctxIdx, int numidx, uint32_t cMax, uint32_t *val) {
if (str->dir == VS_ENCODE) {
int i;
if (*val > cMax) {
fprintf(stderr, "TU value over limit\n");
return 1;
}
for (i = 0; i <= *val && i < cMax; i++) {
uint32_t tmp = i < ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdi, %r13
cmpl $0x0, (%rdi)
je 0x8060
movl $0x1, 0x4(%rsp)
xorl %ebx, %ebx
movl $0x0, %r15d
testl %ebp, %ebp
je 0x805a
movq %r12, 0x8(%rsp)... | /envytools[P]envytools/vstream/h264_cabac.c |
h264_level | int h264_level(struct bitstream *str, int suffixLength, int onebias, int32_t *val) {
/*
* each level_prefix takes 1 << suffix_size consecutive level_codes from the code space
* level_prefix 0..13:
* suffix size = suffixLength
* level prefix 14:
* suffix size = suffixLength ? suffixLength : 4
* level pr... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x0, (%rdi)
je 0x8561
leaq 0x4(%rsp), %rsi
movl $0x1, %r12d
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2270
testl %eax, %eax
jne 0x866d
movl %ebp, 0xc(%rsp)
movq %r15, 0... | /envytools[P]envytools/vstream/h264_cavlc.c |
h264_total_zeros | int h264_total_zeros(struct bitstream *str, int mode, int tzVlcIndex, uint32_t *val) {
const struct vs_vlc_val *tab;
switch (mode) {
case 0:
tab = total_zeros_tab[tzVlcIndex];
break;
case 1:
tab = total_zeros_c1_tab[tzVlcIndex];
break;
case 2:
tab = total_zeros_c2_tab[tzVlcIndex];
break;
def... | pushq %rax
cmpl $0x2, %esi
je 0x86a6
cmpl $0x1, %esi
je 0x869a
testl %esi, %esi
jne 0x86ca
movslq %edx, %rax
leaq 0x23a38(%rip), %rdx # 0x2c0d0
jmp 0x86b0
movslq %edx, %rax
leaq 0x23aac(%rip), %rdx # 0x2c150
jmp 0x86b0
movslq %edx, %rax
leaq 0x23ac0(%rip), %rdx # 0x2c170
leaq (%rdx,%rax,8), %rax
movq (%rax)... | /envytools[P]envytools/vstream/h264_cavlc.c |
h264_mb_skip_flag | int h264_mb_skip_flag(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t *binVal) {
if (!cabac) {
fprintf (stderr, "mb_skip_flag used in CAVLC mode\n");
return 1;
}
int ctxIdxOffset, ctxIdxInc;
if (cabac->slice->slice_type == H264_SLICE_TYPE_P || cabac->slice->slice_type == H264_SLICE_TYPE_SP) {
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x8798
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rdi
movl 0x40(%rdi), %eax
movl $0xb, %ebp
testl %eax, %eax
je 0x8730
cmpl $0x3, %eax
je 0x8730
cmpl $0x1, %eax
jne 0x879f
movl $0x18, %ebp
movl $0x1, %esi
xorl %edx, %edx
callq... | /envytools[P]envytools/vstream/h264_se.c |
h264_mb_field_decoding_flag | int h264_mb_field_decoding_flag(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t *binVal) {
if (!cabac)
return vs_u(str, binVal, 1);
int ctxIdxOffset = H264_CABAC_CTXIDX_MB_FIELD_DECODING_FLAG, ctxIdxInc;
int condTermFlagA = h264_mb_nb_p(cabac->slice, H264_MB_A, 0)->mb_field_decoding_flag;
int co... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
testq %rsi, %rsi
je 0x880b
movq %rsi, %r14
movq (%rsi), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2dda
movl (%rax), %r12d
movq (%r14), %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x2dda
movl (%rax), %eax
leal (%r12,%rax), %edx
addl... | /envytools[P]envytools/vstream/h264_se.c |
h264_mb_type | int h264_mb_type(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t slice_type, uint32_t *val) {
if (!cabac) {
uint32_t rval;
int rstart;
int rend;
switch (slice_type) {
case H264_SLICE_TYPE_I:
rstart = 0;
rend = 0;
break;
case H264_SLICE_TYPE_SI:
rstart = H264_MB_TYPE_SI_B... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movl %edx, %r12d
movq %rdi, %r14
testq %rsi, %rsi
je 0x88b4
movq %rsi, %r15
movq (%rsi), %rdi
xorl %ebp, %ebp
movl $0x1, %esi
xorl %edx, %edx
callq 0x2e9a
movl 0x4(%rax), %r13d
movq (%r15), %rdi
movl $0x2, %esi
xorl %edx,... | /envytools[P]envytools/vstream/h264_se.c |
h264_sub_mb_type | int h264_sub_mb_type(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t slice_type, uint32_t *val) {
if (!cabac) {
int rbase = 0, rend = 0;
switch (slice_type) {
case H264_SLICE_TYPE_P:
case H264_SLICE_TYPE_SP:
rbase = H264_SUB_MB_TYPE_P_BASE;
rend = H264_SUB_MB_TYPE_P_END;
break;
... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
testq %rsi, %rsi
je 0x8ae1
cmpl $0x3, %edx
je 0x8ac1
cmpl $0x1, %edx
je 0x8b36
testl %edx, %edx
jne 0x8b5b
movabsq $0x1600000015, %rax # imm = 0x1600000015
movq %rsp, %rcx
movq %rax, (%rcx)
movl $0x17, 0x8(%rcx)
leaq 0x1f4d1(%rip), %rdx # 0x27fb0... | /envytools[P]envytools/vstream/h264_se.c |
h264_coded_block_pattern | int h264_coded_block_pattern(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t mb_type, int has_chroma, uint32_t *val) {
if (!cabac) {
uint32_t tmp = -1;
const int (*tab)[2];
int maxval;
int which;
if (has_chroma) {
tab = cbplc;
maxval = 48;
} else {
tab = cbpl;
maxval = 16;
}... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r13
movl %ecx, %r14d
movq %rdi, %rbp
testq %rsi, %rsi
je 0x8dde
movq %rsi, %r15
pxor %xmm0, %xmm0
movdqa %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsi), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2e9a
movq %rax, %r12
movq (... | /envytools[P]envytools/vstream/h264_se.c |
h264_transform_size_8x8_flag | int h264_transform_size_8x8_flag(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t *binVal) {
if (!cabac)
return vs_u(str, binVal, 1);
int ctxIdxOffset = H264_CABAC_CTXIDX_TRANSFORM_SIZE_8X8_FLAG, ctxIdxInc;
int condTermFlagA = h264_mb_nb(cabac->slice, H264_MB_A, 0)->transform_size_8x8_flag;
int c... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
testq %rsi, %rsi
je 0x8ef5
movq %rsi, %r14
movq (%rsi), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2e9a
movl 0xc(%rax), %r12d
movq (%r14), %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x2e9a
movl 0xc(%rax), %eax
leal (%r12,%rax), %ed... | /envytools[P]envytools/vstream/h264_se.c |
h264_mb_qp_delta | int h264_mb_qp_delta(struct bitstream *str, struct h264_cabac_context *cabac, int32_t *val) {
if (!cabac)
return vs_se(str, val);
int ctxIdx[3];
if (cabac->slice->prev_mb_addr != (uint32_t)-1 && cabac->slice->mbs[cabac->slice->prev_mb_addr].mb_qp_delta)
ctxIdx[0] = H264_CABAC_CTXIDX_MB_QP_DELTA + 1;
else
ctxI... | pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x8f80
movq (%rsi), %rax
movl 0xc30(%rax), %ecx
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
cmpq %rdx, %rcx
je 0x8f4f
movq 0xc40(%rax), %rdx
imulq $0x3774, %rcx, %rcx # imm = 0x3774
movl $0x3d, %eax
cmpl $0x0, 0x10(%rdx,%... | /envytools[P]envytools/vstream/h264_se.c |
h264_intra_chroma_pred_mode | int h264_intra_chroma_pred_mode(struct bitstream *str, struct h264_cabac_context *cabac, uint32_t *val) {
if (!cabac)
return vs_ue(str, val);
int ctxIdx[2];
int condTermFlagA = h264_mb_nb(cabac->slice, H264_MB_A, 0)->intra_chroma_pred_mode != 0;
int condTermFlagB = h264_mb_nb(cabac->slice, H264_MB_B, 0)->intra_ch... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
testq %rsi, %rsi
je 0x912c
movq %rsi, %r14
movq (%rsi), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2e9a
movl 0xcb4(%rax), %ebp
movq (%r14), %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x2e9a
cmpl $0x1, %ebp
movl $0x41, %ecx
sbbl $0x... | /envytools[P]envytools/vstream/h264_se.c |
h264_ref_idx | int h264_ref_idx(struct bitstream *str, struct h264_cabac_context *cabac, int idx, int which, int max, uint32_t *val) {
if (!max)
return vs_infer(str, val, 0);
if (!cabac) {
if (max == 1) {
uint32_t tmp = 1 - *val;
if (vs_u(str, val, 1)) return 1;
*val = 1 - tmp;
return 0;
} else {
return vs_ue(s... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movq %rdi, %r14
testl %r8d, %r8d
je 0x925a
movq %rsi, %r15
testq %rsi, %rsi
je 0x9275
movl %ecx, %ebp
movl %edx, %r13d
movq %r12, 0x10(%rsp)
movq (%r15), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2e9a
movq %rax, %rbx
mo... | /envytools[P]envytools/vstream/h264_se.c |
h264_mvd | int h264_mvd(struct bitstream *str, struct h264_cabac_context *cabac, int idx, int comp, int which, int32_t *val) {
if (!cabac)
return vs_se(str, val);
int baseidx = (comp ? H264_CABAC_CTXIDX_MVD_Y : H264_CABAC_CTXIDX_MVD_X);
int idxA, idxB;
const struct h264_macroblock *mbT = h264_mb_nb(cabac->slice, H264_MB_THI... | testq %rsi, %rsi
je 0x93a2
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r12d
movq %rsi, %r14
movq %rdi, 0x18(%rsp)
movq %r9, 0x20(%rsp)
movq (%rsi), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2e9a
movq %rax, 0x10(%rsp)
movq (%r14), %rdi... | /envytools[P]envytools/vstream/h264_se.c |
h264_coded_block_flag | int h264_coded_block_flag(struct bitstream *str, struct h264_cabac_context *cabac, int cat, int idx, uint32_t *val) {
static const int basectx[14] = {
H264_CABAC_CTXIDX_CODED_BLOCK_FLAG_CAT0,
H264_CABAC_CTXIDX_CODED_BLOCK_FLAG_CAT1,
H264_CABAC_CTXIDX_CODED_BLOCK_FLAG_CAT2,
H264_CABAC_CTXIDX_CODED_BLOCK_FLAG_CA... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movl %ecx, %r12d
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
movq (%rsi), %rdi
movl $0x0, 0xc(%rsp)
xorl %esi, %esi
xorl %edx, %edx
callq 0x2dda
xorl %ebp, %ebp
cmpl $0x1b, 0x4(%rax)
setae %al
cmpl $0xd, %r13d
j... | /envytools[P]envytools/vstream/h264_se.c |
h264_significant_coeff_flag | int h264_significant_coeff_flag(struct bitstream *str, struct h264_cabac_context *cabac, int field, int cat, int idx, int last, uint32_t *val) {
static const int basectx[2][2][14] = {
{
{
H264_CABAC_CTXIDX_SIGNIFICANT_COEFF_FLAG_FRAME_CAT0,
H264_CABAC_CTXIDX_SIGNIFICANT_COEFF_FLAG_FRAME_CAT1,
H264_CAB... | pushq %rbx
cmpl $0xd, %ecx
ja 0x9723
movl %ecx, %r10d
movq 0x10(%rsp), %rcx
movl $0x1dd7, %eax # imm = 0x1DD7
btl %r10d, %eax
movslq %edx, %r11
jae 0x96d7
movslq %r9d, %rax
movl %r10d, %edx
imulq $0x70, %rax, %rax
leaq 0x1f1c0(%rip), %r9 # 0x28880
addq %rax, %r9
imulq $0x38, %r11, %rax
addq %r9, %rax
add... | /envytools[P]envytools/vstream/h264_se.c |
h264_coeff_abs_level_minus1 | int h264_coeff_abs_level_minus1(struct bitstream *str, struct h264_cabac_context *cabac, int cat, int num1, int numgt1, int32_t *val) {
static const int basectx[14] = {
H264_CABAC_CTXIDX_COEFF_ABS_LEVEL_MINUS1_PRE_CAT0,
H264_CABAC_CTXIDX_COEFF_ABS_LEVEL_MINUS1_PRE_CAT1,
H264_CABAC_CTXIDX_COEFF_ABS_LEVEL_MINUS1_P... | pushq %rax
movq %r9, %rax
movslq %edx, %r9
leaq 0x1f52a(%rip), %rdx # 0x28c60
movl (%rdx,%r9,4), %r10d
leal 0x1(%rcx), %edx
cmpl $0x4, %ecx
movl $0x4, %ecx
cmovll %edx, %ecx
xorl %edx, %edx
testl %r8d, %r8d
cmovnel %edx, %ecx
addl %r10d, %ecx
movq %rsp, %rdx
movl %ecx, (%rdx)
xorl %ecx, %ecx
cmpl $0x3, %r9d
setne %... | /envytools[P]envytools/vstream/h264_se.c |
JitFFI::JitFuncCallerCreaterX64::sub_rsp() | void JitFuncCallerCreaterX64::sub_rsp() {
OpCode_x64::sub_rx_byte(data, OpCode_x64::rsp, 0x8);
sub_rsp_ptr = data.end() - 1;
} | pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
movl $0x48, %esi
movl $0x83, %edx
movl $0xec, %ecx
movl $0x8, %r8d
callq 0x8534
movq (%rbx), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq 0x8(%rcx), %rcx
leaq -0x1(%rcx,%rax), %rax
movq %rax, 0x10(%rbx)
popq %rbx
retq
| /CVM-Projects[P]JitFFI/source/jitffi-def.cpp |
JitFFI::JitFuncCallerCreaterX64::push(unsigned long) | void JitFuncCallerCreaterX64::push(uint64_t dat) {
OpCode_x64::movq_u64(data, OpCode_x64::rax, dat);
OpCode_x64::push(data, OpCode_x64::rax);
push_count += 1;
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r15
movq %r15, %rdi
movl $0x48, %esi
callq 0x8574
movq %r15, %rdi
movl $0xb8, %esi
callq 0x8574
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
movl $0x8, %edx
movq %r15, %rdi
callq 0x85b2
movq (%r14), %rdi
movl $0x50, %esi
callq 0x8... | /CVM-Projects[P]JitFFI/source/jitffi-def.cpp |
JitFFI::SysV64::create_return(JitFFI::SysV64::JitFuncCallerCreater&, JitFFI::SysV64::ArgTypeInfo::RetData const&) | static void create_return(JitFuncCallerCreater &jfcc, const ArgTypeInfo::RetData &retdata) {
if (retdata.type != AT_Memory) {
unsigned int rec[2] = { 0 }; // rax/rdx, xmm0/xmm1
if (retdata.type == AT_Struct) {
auto &st = retdata.getstd();
if (retdata.size > 0) {
create_return_base(jfcc, st.ge... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movzbl (%rsi), %esi
cmpl $0xa, %esi
je 0xb569
movq %rdi, %rbx
movq $0x0, (%rsp)
movzwl 0x2(%r14), %edx
cmpl $0x2, %esi
jne 0xb55e
testl %edx, %edx
je 0xb569
movzbl 0x1(%r14), %esi
andl $0xf, %esi
cmpw $0x8, %dx
movl $0x8, %eax
cmovbl %edx, %eax
movq %rsp, %rcx
movq %rbx,... | /CVM-Projects[P]JitFFI/source/jitffi-sysv64.cpp |
void JitFFI::OpCode_x64::_push_pop_base<(unsigned char)143, (unsigned char)88, (unsigned char)0>(JitFFI::JitFuncCreater&, JitFFI::OpCode_x64::Register) | inline void _push_pop_base(JitFuncCreater &jfc, Register src) {
if (is_rxq0(src))
jfc.push(V1 + get_code(src));
else if (is_rxq1(src))
jfc.push(0x41, V1 + get_code(src));
else if (is_prxq(src)) {
if (src == prbp || src == pr13) {
jfc.push(PreCode, V2 + 0100 + get_code(src), 0x00);
}
el... | pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
cmpl $0x7, %esi
ja 0xea8b
orb $0x58, %bpl
jmp 0xeb15
movl %ebp, %eax
andl $-0x8, %eax
cmpl $0x8, %eax
jne 0xeaa8
orb $0x50, %bpl
movq %rbx, %rdi
movl $0x41, %esi
callq 0x8574
jmp 0xeb15
movl %ebp, %ecx
andl $-0x10, %ecx
cmpl $0x40, %ecx
jne 0xeb2a
movl %e... | /CVM-Projects[P]JitFFI/include/opcode.h |
testing::internal::(anonymous namespace)::UnitTestFilter::MatchesName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | bool MatchesName(const std::string& name) const {
return exact_match_patterns_.find(name) != exact_match_patterns_.end() ||
std::any_of(glob_patterns_.begin(), glob_patterns_.end(),
[&name](const std::string& pattern) {
return PatternMatchesString(
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
addq $0x18, %rdi
callq 0x3ec7a
movq %rax, %rcx
movb $0x1, %al
testq %rcx, %rcx
jne 0x23399
movq (%r15), %rbx
movq 0x8(%r15), %r12
movq %r14, (%rsp)
movq %r12, %r13
subq %rbx, %r13
movq %r13, %rbp
sarq $0x7, %rbp... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::UnitTestOptions::FilterMatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | bool UnitTestOptions::FilterMatchesTest(const std::string& test_suite_name,
const std::string& test_name) {
// Split --gtest_filter at '-', if there is one, to separate into
// positive filter and negative filter portions
return PositiveAndNegativeUnitTestFilter(GTEST_FLAG_... | pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0x23420
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x238a6
movl %eax, %ebx
leaq 0x50(%rsp), %r14
leaq 0x68(%rsp), %rdi
callq 0x3ec06
movq %r14, %rdi
callq 0x39e98
leaq 0x18(%rsp), %rdi
call... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | explicit PositiveAndNegativeUnitTestFilter(const std::string& filter) {
std::vector<std::string> positive_and_negative_filters;
// NOTE: `SplitString` always returns a non-empty container.
SplitString(filter, '-', &positive_and_negative_filters);
const auto& positive_filter = positive_and_negative_filt... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x18(%rdi), %r14
leaq 0x48(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movl $0x1, %ecx
movq %rcx, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
movl $0x3f8000... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | bool MatchesTest(const std::string& test_suite_name,
const std::string& test_name) const {
return MatchesName(test_suite_name + "." + test_name);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x156e6
leaq 0x24bff(%rip), %rsi # 0x484e1
movq %r15, %rdi
callq... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::Message::operator<<(wchar_t*) | Message& Message::operator<<(wchar_t* wide_c_str) {
return *this << internal::String::ShowWideCString(wide_c_str);
} | pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2476c
movq (%rbx), %rdi
addq $0x10, %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x85c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x247eb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84f0
movq %rbx,... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::StringStreamToString(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char>>*) | std::string StringStreamToString(::std::stringstream* ss) {
const ::std::string& str = ss->str();
const char* const start = str.c_str();
const char* const end = start + str.length();
std::string result;
result.reserve(static_cast<size_t>(2 * (end - start)));
for (const char* ch = start; ch != end; ++ch) {
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
addq $0x18, %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x8910
movq (%r14), %r12
movq 0x8(%r14), %r13
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq (,%r13,2), %rsi
movq %rbx, ... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::edit_distance::(anonymous namespace)::Hunk::PushLine(char, char const*) | void PushLine(char edit, const char* line) {
switch (edit) {
case ' ':
++common_;
FlushEdits();
hunk_.push_back(std::make_pair(' ', line));
break;
case '-':
++removes_;
hunk_removes_.push_back(std::make_pair('-', line));
break;
case '+':
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
cmpl $0x2d, %esi
je 0x25629
cmpl $0x2b, %ebp
je 0x25617
cmpl $0x20, %ebp
jne 0x2565d
incq 0x20(%rbx)
movq %rbx, %rdi
callq 0x380c2
movl $0x38, %r12d
movl $0x28, %r15d
jmp 0x25639
incq 0x10(%rbx)
movl $0x50, %r12d
movl... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::TestResult::GetTestProperty(int) const | const TestProperty& TestResult::GetTestProperty(int i) const {
if (i < 0 || i >= test_property_count()) internal::posix::Abort();
return test_properties_.at(static_cast<size_t>(i));
} | pushq %rax
testl %esi, %esi
js 0x27583
movq 0x50(%rdi), %rax
movq 0x58(%rdi), %rcx
subq %rax, %rcx
shrq $0x6, %rcx
cmpl %esi, %ecx
jle 0x27583
movl %esi, %esi
movq 0x58(%rdi), %rdx
subq %rax, %rdx
sarq $0x6, %rdx
cmpq %rsi, %rdx
jbe 0x27588
shlq $0x6, %rsi
addq %rsi, %rax
popq %rcx
retq
callq 0x3a0f0
leaq 0x1df19(%rip)... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::GoogleTestFailureException::GoogleTestFailureException(testing::TestPartResult const&) | GoogleTestFailureException::GoogleTestFailureException(
const TestPartResult& failure)
: ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {} | pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x282e5
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x8a80
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x282ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84f0
leaq 0x35604(%rip), %rax # 0x5d8b8
movq %rax, ... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::UnitTestImpl::RegisterParameterizedTests() | void UnitTestImpl::RegisterParameterizedTests() {
if (!parameterized_tests_registered_) {
parameterized_test_registry_.RegisterTests();
type_parameterized_test_registry_.CheckForInstantiations();
parameterized_tests_registered_ = true;
}
} | cmpb $0x0, 0x1d0(%rdi)
jne 0x28e4b
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x120(%rdi), %r14
movq 0x128(%rdi), %r15
cmpq %r15, %r14
je 0x28e33
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
addq $0x8, %r14
jmp 0x28e1f
leaq 0x170(%rbx), %rdi
callq 0x21b76
movb $0x1, 0x1d0(%rbx)
popq %rbx
popq %r14
p... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::BriefUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int) | void BriefUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
int /*iteration*/) {
ColoredPrintf(GTestColor::kGreen, "[==========] ");
printf("%s from %s ran.",
FormatTestCount(unit_test.test_to_run_count()).c_str(),
FormatTestSu... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
leaq 0x1cb6d(%rip), %rsi # 0x4808d
xorl %ebp, %ebp
movl $0x2, %edi
xorl %eax, %eax
callq 0x29efc
movq 0x40(%rbx), %rdi
callq 0x2459c
leaq 0x1baf6(%rip), %rdx # 0x47034
leaq 0x1bf09(%rip), %rcx # 0x4744e
leaq 0x8(%rsp), %rdi
movl %e... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/src/gtest.cc |
testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::CreateKey() | static pthread_key_t CreateKey() {
pthread_key_t key;
// When a thread exits, DeleteThreadLocalValue() will be called on
// the object managed for that thread.
GTEST_CHECK_POSIX_SUCCESS_(
pthread_key_create(&key, &DeleteThreadLocalValue));
return key;
} | pushq %rbx
subq $0x10, %rsp
leaq -0x52(%rip), %rsi # 0x44042
leaq 0xc(%rsp), %rdi
callq 0x8900
testl %eax, %eax
je 0x44107
movl %eax, %ebx
leaq 0x4d42(%rip), %rdx # 0x48ded
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x72e, %ecx # imm = 0x72E
callq 0x1e7e2
movq 0x19f22(%rip), %rdi # 0x5dfe8
lea... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> testing::internal::StreamableToString<char*>(char* const&) | std::string StreamableToString(const T& streamable) {
return (Message() << streamable).GetString();
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r12
movq %r12, %rdi
callq 0x246a6
movq (%r14), %r15
movq (%r12), %r14
addq $0x10, %r14
testq %r15, %r15
je 0x44789
movq %r15, %rdi
callq 0x8210
movq %rax, %rdx
jmp 0x44795
movl $0x6, %edx
leaq 0x33c5(%rip), %r15 # 0x... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/include/gtest/gtest-message.h |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> testing::internal::StreamableToString<wchar_t*>(wchar_t* const&) | std::string StreamableToString(const T& streamable) {
return (Message() << streamable).GetString();
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x246a6
movq (%r14), %rsi
movq %r15, %rdi
callq 0x247a6
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x24909
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4482a
movq (%rdi), %rax
callq *0x8(%rax)
movq... | /todo-group[P]lattice/build_O1/_deps/googletest-src/googletest/include/gtest/gtest-message.h |
get_socket_nonblocking | static int
get_socket_nonblocking(libssh2_socket_t sockfd)
{ /* operate on this */
#ifdef HAVE_O_NONBLOCK
/* most recent unix versions */
int flags = fcntl(sockfd, F_GETFL, 0);
if(flags == -1) {
/* Assume blocking on error */
return 1;
}
return (flags &... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %edi
movl $0x3, %esi
xorl %edx, %edx
movb $0x0, %al
callq 0x5200
movl %eax, -0xc(%rbp)
cmpl $-0x1, -0xc(%rbp)
jne 0x83ce
movl $0x1, -0x4(%rbp)
jmp 0x83d9
movl -0xc(%rbp), %eax
andl $0x800, %eax # imm = 0x800
movl %eax, -0x4(%r... | /palmin[P]libssh2/src/session.c |
libssh2_ed25519_new_private | int
_libssh2_ed25519_new_private(libssh2_ed25519_ctx ** ed_ctx,
LIBSSH2_SESSION * session,
const char *filename, const uint8_t *passphrase)
{
int rc;
FILE *fp;
unsigned char *buf;
struct string_buf *decrypted = NULL;
libssh2_ed25519_ctx *ctx ... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x13150
movq -0x18(%rbp), %rdi
movl $0xfffffff2, %esi # imm = 0xFFFFFFF2
leaq 0x1c7dc(%rip), %rdx # 0... | /palmin[P]libssh2/src/openssl.c |
gen_publickey_from_rsa_evp | static int
gen_publickey_from_rsa_evp(LIBSSH2_SESSION *session,
unsigned char **method,
size_t *method_len,
unsigned char **pubkeydata,
size_t *pubkeydata_len,
EVP_PKEY *pk)
{
libss... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
jmp 0x15fd2
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x15fe6
j... | /palmin[P]libssh2/src/openssl.c |
libssh2_pub_priv_keyfilememory | int
_libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session,
unsigned char **method,
size_t *method_len,
unsigned char **pubkeydata,
size_t *pubkeydata_len,
co... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x88, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
jmp 0x164ce
movq -0x40(%rbp), %rdi
movq 0x10(%rbp), %rax
movl %eax, %esi
callq 0x5080... | /palmin[P]libssh2/src/openssl.c |
passphrase_cb | static int
passphrase_cb(char *buf, int size, int rwflag, char *passphrase)
{
int passphrase_len = (int) strlen(passphrase);
(void)rwflag;
if(passphrase_len > (size - 1)) {
passphrase_len = size - 1;
}
memcpy(buf, passphrase, passphrase_len);
buf[passphrase_len] = '\0';
return pas... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5150
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jle 0x16a98
movl -0xc(%rbp), %eax
subl $0x1, %eax
... | /palmin[P]libssh2/src/openssl.c |
gen_publickey_from_dsa_openssh_priv_data | static int
gen_publickey_from_dsa_openssh_priv_data(LIBSSH2_SESSION *session,
struct string_buf *decrypted,
unsigned char **method,
size_t *method_len,
unsi... | pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movq %r9, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movq $0x0, -0xa8(%rbp)
jmp 0x16e4e
movq -0x28(%rbp), %rdi
leaq -0x80(%rbp... | /palmin[P]libssh2/src/openssl.c |
curve25519_sha256 | static int
curve25519_sha256(LIBSSH2_SESSION *session, unsigned char *data,
size_t data_len,
unsigned char public_key[LIBSSH2_ED25519_KEY_LEN],
unsigned char private_key[LIBSSH2_ED25519_KEY_LEN],
kmdhgGPshakex_state_t *exchange_state)
{
int ret... | pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp # imm = 0x190
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x20, -0x44(%rbp)
cmpq $0x5, -0x20(%rbp)
jae 0x1a9b5
movq -0x10(%rbp), %rdi
movl $0xf... | /palmin[P]libssh2/src/kex.c |
kex_method_ecdh_key_exchange | static int
kex_method_ecdh_key_exchange
(LIBSSH2_SESSION * session, key_exchange_state_low_t * key_state)
{
int ret = 0;
int rc = 0;
unsigned char *s;
libssh2_curve_type type;
if(key_state->state == libssh2_NB_state_idle) {
key_state->public_key_oct = NULL;
key_state->state = libss... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x1c860
movq -0x18(%rbp), %rax
movq $0x0, 0x240(%rax)
movq -0x18(%rbp), %rax
movl $0x2, (%rax)
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne... | /palmin[P]libssh2/src/kex.c |
libssh2_sha_algo_ctx_final | static int _libssh2_sha_algo_ctx_final(int sha_algo, void *ctx,
void *hash)
{
if(sha_algo == 512) {
libssh2_sha512_ctx *_ctx = (libssh2_sha512_ctx*)ctx;
return libssh2_sha512_final(*_ctx, hash);
}
else if(sha_algo == 384) {
libssh2_sha384_ctx *_... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpl $0x200, -0x8(%rbp) # imm = 0x200
jne 0x22b26
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x14a90
movl %eax, -0x4(%rbp)
jmp 0x22b9b
cmpl $0x180, ... | /palmin[P]libssh2/src/kex.c |
libssh2_sha_algo_value_hash | static void _libssh2_sha_algo_value_hash(int sha_algo,
LIBSSH2_SESSION *session,
kmdhgGPshakex_state_t *exchange_state,
unsigned char **data, size_t data_len,
... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
cmpl $0x200, -0x4(%rbp) # imm = 0x200
jne 0x22d9c
jmp 0x22bde
movq $0x0, -0x40(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x22c1... | /palmin[P]libssh2/src/kex.c |
kex_method_diffie_hellman_group18_sha512_key_exchange | static int
kex_method_diffie_hellman_group18_sha512_key_exchange(LIBSSH2_SESSION *session,
key_exchange_state_low_t
* key_state)
{
static const unsigned char p_value[1024] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x234cc
callq 0x5510
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x110(%rax)
callq 0x5510
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x118(%rax)
movq -0x18(%rbp), %rax
movq... | /palmin[P]libssh2/src/kex.c |
mac_method_hmac_sha1_96_hash | static int
mac_method_hmac_sha1_96_hash(LIBSSH2_SESSION * session,
unsigned char *buf, uint32_t seqno,
const unsigned char *packet,
size_t packet_len,
const unsigned char *addtl,
... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rcx
movq... | /palmin[P]libssh2/src/mac.c |
mac_method_hmac_md5_96_hash | static int
mac_method_hmac_md5_96_hash(LIBSSH2_SESSION * session,
unsigned char *buf, uint32_t seqno,
const unsigned char *packet,
size_t packet_len,
const unsigned char *addtl,
si... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rcx
movq... | /palmin[P]libssh2/src/mac.c |
libssh2_list_remove | void _libssh2_list_remove(struct list_node *entry)
{
if(entry->prev)
entry->prev->next = entry->next;
else
entry->head->first = entry->next;
if(entry->next)
entry->next->prev = entry->prev;
else
entry->head->last = entry->prev;
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x250b7
movq -0x8(%rbp), %rax
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
jmp 0x250ca
movq -0x8(%rbp), %rax
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)... | /palmin[P]libssh2/src/misc.c |
libssh2_get_bignum_bytes | int _libssh2_get_bignum_bytes(struct string_buf *buf, unsigned char **outbuf,
size_t *outlen)
{
uint32_t data_len;
uint32_t bn_len;
unsigned char *bnptr;
if(_libssh2_get_u32(buf, &data_len)) {
return -1;
}
if(!_libssh2_check_length(buf, data_len)) {
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x25410
cmpl $0x0, %eax
je 0x25722
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x257c7
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %es... | /palmin[P]libssh2/src/misc.c |
packet_queue_listener | static inline int
packet_queue_listener(LIBSSH2_SESSION * session, unsigned char *data,
size_t datalen,
packet_queue_listener_state_t *listen_state)
{
/*
* Look for a matching listener
*/
/* 17 = packet_type(1) + channel(4) + reason(4) + descr(4) + lang(4) *... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq $0x26, -0x30(%rbp)
movq -0x10(%rbp), %rdi
addq $0x248, %rdi # imm = 0x248
callq 0x25030
movq %rax, -0x40(%rbp)
movb $0x1, -0x41(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x0, ... | /palmin[P]libssh2/src/packet.c |
packet_x11_open | static inline int
packet_x11_open(LIBSSH2_SESSION * session, unsigned char *data,
size_t datalen,
packet_x11_open_state_t *x11open_state)
{
int failure_code = SSH_OPEN_CONNECT_FAILED;
/* 17 = packet_type(1) + channel(4) + reason(4) + descr(4) + lang(4) */
size_t packet_len = ... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x2, -0x2c(%rbp)
movq $0x28, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x27434
movq $0x8, -0x58... | /palmin[P]libssh2/src/packet.c |
packet_authagent_open | static inline int
packet_authagent_open(LIBSSH2_SESSION * session,
unsigned char *data, size_t datalen,
packet_authagent_state_t *authagent_state)
{
int failure_code = SSH_OPEN_CONNECT_FAILED;
/* 17 = packet_type(1) + channel(4) + reason(4) + descr(4) + lang(4) */
... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x2, -0x2c(%rbp)
movq $0x28, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x48(%rbp)
movq $0x1b, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)... | /palmin[P]libssh2/src/packet.c |
libssh2_packet_ask | int
_libssh2_packet_ask(LIBSSH2_SESSION * session, unsigned char packet_type,
unsigned char **data, size_t *data_len,
int match_ofs, const unsigned char *match_buf,
size_t match_len)
{
LIBSSH2_PACKET *packet = _libssh2_list_first(&session->packets);
_... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq 0x10(%rbp), %rsi
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0x25030
movq %rax, -0x40(%rbp)
... | /palmin[P]libssh2/src/packet.c |
libssh2_packet_askv | int
_libssh2_packet_askv(LIBSSH2_SESSION * session,
const unsigned char *packet_types,
unsigned char **data, size_t *data_len,
int match_ofs,
const unsigned char *match_buf,
size_t match_len)
{
size_t i, packet_... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5150
movq %rax, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x48(%... | /palmin[P]libssh2/src/packet.c |
libssh2_packet_require | int
_libssh2_packet_require(LIBSSH2_SESSION * session, unsigned char packet_type,
unsigned char **data, size_t *data_len,
int match_ofs,
const unsigned char *match_buf,
size_t match_len,
packet_requir... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %sil, %al
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rsi
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x27f03
movq -0x10(%rbp), %rdi
mov... | /palmin[P]libssh2/src/packet.c |
libssh2_packet_burn | int
_libssh2_packet_burn(LIBSSH2_SESSION * session,
libssh2_nonblocking_states * state)
{
unsigned char *data;
size_t data_len;
unsigned char i, all_packets[255];
int ret;
if(*state == libssh2_NB_state_idle) {
for(i = 1; i < 255; i++) {
all_packets[i - 1] = ... | pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x280e2
movb $0x1, -0x29(%rbp)
movzbl -0x29(%rbp), %eax
cmpl $0xff, %eax
jge 0x2807c
movb -0x29(%rbp), %cl
movzbl -0x29(%rbp), %eax
subl $0x1, %eax
cltq
movb %... | /palmin[P]libssh2/src/packet.c |
libssh2_packet_requirev | int
_libssh2_packet_requirev(LIBSSH2_SESSION *session,
const unsigned char *packet_types,
unsigned char **data, size_t *data_len,
int match_ofs,
const unsigned char *match_buf, size_t match_len,
... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
mov... | /palmin[P]libssh2/src/packet.c |
libssh2_pem_parse | int
_libssh2_pem_parse(LIBSSH2_SESSION * session,
const char *headerbegin,
const char *headerend,
const unsigned char *passphrase,
FILE * fp, unsigned char **data, size_t *datalen)
{
char line[LINE_SIZE];
unsigned char iv[LINE_SIZE];
... | pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp # imm = 0x260
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq $0x0, -0x148(%rbp)
movq $0x0, -0x150(%rbp)
movq $0x0, -0x160(%rbp)
movb $0x0, -0xc0(%rb... | /palmin[P]libssh2/src/pem.c |
readline | static int
readline(char *line, int line_size, FILE * fp)
{
size_t len;
if(!line) {
return -1;
}
if(!fgets(line, line_size, fp)) {
return -1;
}
if(*line) {
len = strlen(line);
if(len > 0 && line[len - 1] == '\n') {
line[len - 1] = '\0';
}
... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x28cc6
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x28d77
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0x5620
cmpq $0x0, %rax
jne 0x28ce8
mo... | /palmin[P]libssh2/src/pem.c |
libssh2_pem_parse_memory | int
_libssh2_pem_parse_memory(LIBSSH2_SESSION * session,
const char *headerbegin,
const char *headerend,
const char *filedata, size_t filedata_len,
unsigned char **data, size_t *datalen)
{
char line[LINE_SIZE];
... | pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq $0x0, -0xc8(%rbp)
movq $0x0, -0xd0(%rbp)
movq $0x0, -0xd8(%rbp)
movb $0x0, -0xc0(%rbp)
... | /palmin[P]libssh2/src/pem.c |
libssh2_openssh_pem_parse_data | static int
_libssh2_openssh_pem_parse_data(LIBSSH2_SESSION * session,
const unsigned char *passphrase,
const char *b64data, size_t b64datalen,
struct string_buf **decrypted_buf)
{
const LIBSSH2_CRYPT_METHOD *method = NUL... | pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq $0x0, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq $0x0, -0x98(%rbp)
movq $0x0, -0xa0(%rbp)... | /palmin[P]libssh2/src/pem.c |
libssh2_openssh_pem_parse_memory | int
_libssh2_openssh_pem_parse_memory(LIBSSH2_SESSION * session,
const unsigned char *passphrase,
const char *filedata, size_t filedata_len,
struct string_buf **decrypted_buf)
{
char line[LINE_SIZE];
char *b64d... | pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq $0x0, -0xb8(%rbp)
movq $0x0, -0xc0(%rbp)
movq $0x0, -0xc8(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2a03e
cmpq $0x0, -0x28(%rbp)
ja 0x2a05b
movq -0x10(%rbp), %rdi
mo... | /palmin[P]libssh2/src/pem.c |
libssh2_pem_decode_sequence | int
_libssh2_pem_decode_sequence(unsigned char **data, size_t *datalen)
{
size_t len;
int lenlen;
if(*datalen < 1) {
return -1;
}
if((*data)[0] != '\x30') {
return -1;
}
(*data)++;
(*datalen)--;
lenlen = read_asn1_length(*data, *datalen, &len);
if(lenlen < 0 |... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x1, (%rax)
jae 0x2a316
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2a3b2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
cmpl $0x30, %eax
je 0x2a331
movl $0xffffffff, -0x4(%rbp)... | /palmin[P]libssh2/src/pem.c |
libssh2_pem_decode_integer | int
_libssh2_pem_decode_integer(unsigned char **data, size_t *datalen,
unsigned char **i, unsigned int *ilen)
{
size_t len;
int lenlen;
if(*datalen < 1) {
return -1;
}
if((*data)[0] != '\x02') {
return -1;
}
(*data)++;
(*datalen)--;
len... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x1, (%rax)
jae 0x2a4ce
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2a5a3
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
cmpl $0x2,... | /palmin[P]libssh2/src/pem.c |
bcrypt_pbkdf | static int
bcrypt_pbkdf(const char *pass, size_t passlen, const uint8_t *salt,
size_t saltlen,
uint8_t *key, size_t keylen, unsigned int rounds)
{
uint8_t sha2pass[SHA512_DIGEST_LENGTH];
uint8_t sha2salt[SHA512_DIGEST_LENGTH];
uint8_t out[BCRYPT_HASHSIZE];
uint8_t tmpout[BCRYPT... | pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp # imm = 0x150
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x138(%rbp)
cmpl $0x1, 0x10(%rbp)
jae 0x2a643
movl $0xfff... | /palmin[P]libssh2/src/bcrypt_pbkdf.c |
bcrypt_hash | static void
bcrypt_hash(uint8_t *sha2pass, uint8_t *sha2salt, uint8_t *out)
{
blf_ctx state;
uint8_t ciphertext[BCRYPT_HASHSIZE] = {
'O', 'x', 'y', 'c', 'h', 'r', 'o', 'm', 'a', 't', 'i', 'c',
'B', 'l', 'o', 'w', 'f', 'i', 's', 'h',
'S', 'w', 'a', 't',
'D', 'y', 'n', 'a', 'm', 'i... | pushq %rbp
movq %rsp, %rbp
subq $0x10b0, %rsp # imm = 0x10B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq 0x7562(%rip), %rax # 0x32040
movq %rax, -0x1080(%rbp)
movq 0x755c(%rip), %rax # 0x32048
movq %rax, -0x1078(%rbp)
movq 0x7556(%rip), %rax # 0x32050
movq %rax, -0x... | /palmin[P]libssh2/src/bcrypt_pbkdf.c |
Blowfish_expandstate | static void
Blowfish_expandstate(blf_ctx *c, const uint8_t *data, uint16_t databytes,
const uint8_t *key, uint16_t keybytes)
{
int i;
int k;
uint16_t j;
uint32_t temp;
uint32_t datal;
uint32_t datar;
j = 0;
for(i = 0; i < BLF_N + 2; i++) {
/* Extract 4 int8 ... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movw %r8w, %ax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw %dx, -0x12(%rbp)
movq %rcx, -0x20(%rbp)
movw %ax, -0x22(%rbp)
movw $0x0, -0x2e(%rbp)
movl $0x0, -0x28(%rbp)
cmpl $0x12, -0x28(%rbp)
jge 0x2adf3
movq -0x20(%rbp), %rdi
leaq -0x2e(%rbp), %rdx
movzwl -0x22(%rbp), %... | /palmin[P]libssh2/src/blowfish.c |
Blowfish_expand0state | static void
Blowfish_expand0state(blf_ctx *c, const uint8_t *key, uint16_t keybytes)
{
int i;
int k;
uint16_t j;
uint32_t temp;
uint32_t datal;
uint32_t datar;
j = 0;
for(i = 0; i < BLF_N + 2; i++) {
/* Extract 4 int8 to 1 int32 from keystream */
temp = Blowfish_stream2w... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movw %dx, %ax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movw $0x0, -0x1e(%rbp)
movl $0x0, -0x18(%rbp)
cmpl $0x12, -0x18(%rbp)
jge 0x2afba
movq -0x10(%rbp), %rdi
leaq -0x1e(%rbp), %rdx
movzwl -0x12(%rbp), %esi
callq 0x2b0b0
movl %eax, -0x24(%rbp)
movq ... | /palmin[P]libssh2/src/blowfish.c |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.