joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bf80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
cmp ebx, 0x10
ja 0x1002bf8e
xor eax, eax
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, 0x10
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x28]
mov edi, ebx
push ebp
push dword [esp + 0x28]
and edi, 0xf
cmove edi, eax
sub ebx, edi
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x30], ebx
push esi
call sym.LIBEAY32.dll_CRYPTO_cbc128_encrypt
add dword [esp + 0x30], ebx
add esi, ebx
add esp, 0x18
xor ebx, ebx
test edi, edi
je 0x1002c02c
cmp edi, 0x10
jb 0x1002c012
lea eax, [edi - 1]
lea ecx, [ebp - 1]
add eax, esi
add ecx, edi
cmp ebp, eax
ja 0x1002bfe6
cmp ecx, esi
jae 0x1002c012
mov eax, edi
mov ecx, edi
and eax, 0xf
mov edx, esi
sub ecx, eax
mov eax, ebp
sub edx, ebp
movdqu xmm1, xmmword [edx + eax]
add ebx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ebx, ecx
jb 0x1002bff5
cmp ebx, edi
jae 0x1002c02c
mov edx, edi
lea ecx, [ebx + ebp]
sub esi, ebp
sub edx, ebx
nop
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x1002c020
push dword [esp + 0x20]
push ebp
push ebp
call dword [esp + 0x34]
mov eax, dword [esp + 0x24]
push edi
lea esi, [eax - 0x10]
push esi
push eax
call sub.MSVCR120.dll_memcpy
movdqu xmm0, xmmword [ebp]
mov eax, dword [esp + 0x34]
add esp, 0x18
add eax, edi
movdqu xmmword [esi], xmm0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1002c500
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.100bf140
push ebx
mov ebx, dword [esp + 0x14]
cmp ebx, 0x10
jae 0x1002c519
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov esi, ebx
push dword [esp + 0x2c]
and esi, 0xf
push dword [esp + 0x2c]
sub ebx, esi
push ebx
push ebp
push edi
mov dword [esp + 0x38], ebx
call sym.LIBEAY32.dll_CRYPTO_cbc128_encrypt
add esp, 0x18
test esi, esi
jne 0x1002c552
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
add ebp, ebx
add edi, ebx
mov dword [esp + 0x1c], ebp
xor ebp, ebp
test esi, esi
je 0x1002c5dc
mov edx, dword [esp + 0x28]
cmp esi, 0x10
jb 0x1002c5c1
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, esi
cmp edx, eax
ja 0x1002c57b
cmp ecx, edi
jae 0x1002c5c1
mov eax, esi
mov ecx, esi
and eax, 0xf
mov ebx, edi
sub ecx, eax
sub ebx, edx
mov dword [esp + 0x10], ebx
mov eax, edx
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
jmp 0x1002c5a0
movdqu xmm1, xmmword [edx + eax]
add ebp, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ebp, ecx
jb 0x1002c5a0
mov edx, dword [esp + 0x28]
cmp ebp, esi
jae 0x1002c5dc
lea ecx, [edx + ebp]
sub edi, edx
mov edx, esi
sub edx, ebp
mov edi, edi
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x1002c5d0
push dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
push ebp
push ebp
call dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add esp, 0xc
movdqu xmm0, xmmword [ebp]
pop edi
movdqu xmmword [esi + eax - 0x10], xmm0
lea eax, [esi + ebx]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1002c610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x5c
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x70], ecx
jbe 0x1002c7a0
lea eax, [esp + 0x3c]
sub eax, ebx
push ebp
push esi
mov dword [esp + 0x28], eax
mov esi, ebx
lea eax, [esp + 0x45]
sub esi, eax
lea eax, [ebx + 2]
lea edx, [eax - 1]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
movdqu xmm0, xmmword [ebx]
mov eax, ecx
mov ebp, 7
and eax, 7
mov edx, 1
sub ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x70]
shr eax, 3
mov dword [esp + 0x24], eax
push edi
push ebx
mov al, byte [eax + ecx]
mov ecx, ebp
shl edx, cl
and al, dl
mov dword [esp + 0x48], ebp
neg al
push ebx
sbb al, al
and al, 0x80
mov byte [esp + 0x1f], al
movdqu xmmword [esp + 0x50], xmm0
call dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x88], 0
je 0x1002c6e3
movzx edx, byte [ebx]
movzx eax, byte [esp + 0x13]
xor edx, eax
mov byte [esp + 0x54], dl
jmp 0x1002c6ef
mov al, byte [esp + 0x13]
mov dl, byte [ebx]
mov byte [esp + 0x54], al
xor dl, al
mov dword [esp + 0x18], edx
xor ebp, ebp
mov edx, dword [esp + 0x28]
lea esp, [esp]
lea edi, [esp + 0x45]
add edi, ebp
add esi, edi
mov ah, byte [edi]
movzx ecx, byte [esi + edx]
mov al, ah
mov bl, byte [edi + 1]
add cl, cl
shr al, 7
add ah, ah
or cl, al
mov al, bl
shr al, 7
add bl, bl
mov byte [esi], cl
or al, ah
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov byte [ecx + ebp], al
mov cl, byte [edi + 2]
mov al, cl
add cl, cl
shr al, 7
or al, bl
mov ebx, dword [esp + 0x30]
mov byte [ebx + ebp], al
mov al, byte [edi + 3]
shr al, 7
or al, cl
mov byte [ebx + ebp + 1], al
add ebp, 4
cmp ebp, 0x10
jl 0x1002c700
mov cl, byte [esp + 0x14]
mov al, 1
mov edx, dword [esp + 0x18]
and cl, 7
mov ebx, dword [esp + 0x2c]
and dl, 0x80
mov edi, dword [esp + 0x3c]
shr dl, cl
mov ecx, dword [esp + 0x40]
shl al, cl
mov ecx, dword [esp + 0x24]
not al
and al, byte [ecx + ebx]
or dl, al
mov byte [ecx + ebx], dl
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x78]
jb 0x1002c680
pop esi
pop ebp
mov ecx, dword [esp + 0x60]
pop edi
pop ebx
xor ecx, esp
call fcn.100bf100
add esp, 0x5c
ret
Function at 0x1002cae0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.100bf140
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x2c]
mov esi, dword [esi]
test esi, esi
je 0x1002cb1d
mov ecx, dword [esp + 0x34]
test edi, edi
je 0x1002cb1d
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x1002cb08
mov edx, dword [esp + 0x3c]
cmp edi, 0x10
jb 0x1002cbb2
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x2c], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
jmp 0x1002cb64
mov ecx, dword [esp + 0x34]
push dword [esp + 0x30]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x1002cb95
mov eax, dword [esp + 0x34]
mov edx, 0xf
sub edx, esi
add eax, esi
shr edx, 2
inc edx
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
dec edx
jne 0x1002cb85
mov edx, dword [esp + 0x3c]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x2c]
jne 0x1002cb60
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x1002cbe2
push dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push eax
push eax
call edx
mov eax, dword [esp + 0x40]
add esp, 0xc
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
dec edi
jne 0x1002cbd2
mov eax, dword [esp + 0x38]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1002cbf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.100bf140
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x164]
mov edx, dword [edi + 0x160]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
je 0x1002cc1f
mov eax, 0xfffffffe
pop edi
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [edi + 0x30]
adc ecx, dword [edi + 0x34]
cmp ecx, 0x20000000
ja 0x1002ccd0
jb 0x1002cc44
test eax, eax
jne 0x1002ccd0
push ebx
mov ebx, dword [edi + 0x16c]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
push ebp
mov ebp, dword [esp + 0x1c]
test ebx, ebx
je 0x1002cc86
lea ebx, [ebx]
test esi, esi
je 0x1002cc75
mov al, byte [ebp]
dec esi
xor byte [ebx + edi + 0x40], al
inc ebp
inc ebx
and ebx, 0xf
jne 0x1002cc60
jmp 0x1002cc79
test ebx, ebx
jne 0x1002ccc2
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call edx
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x1002ccaa
push eax
push ebp
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [esp + 0x28]
add ebp, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x1002ccc2
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x1002ccc2
mov al, byte [ecx + ebp]
xor byte [edi + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x1002ccb6
pop ebp
mov dword [edi + 0x16c], ebx
xor eax, eax
pop ebx
pop esi
pop edi
pop ecx
ret
pop esi
or eax, 0xffffffff
pop edi
pop ecx
ret
Function at 0x1002d870
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.100bf140
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x160]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp edi, 0xc
jne 0x1002d91b
mov eax, dword [esp + 0x18]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x1002da31
mov dword [esp + 0xc], edi
push ebp
mov ebp, dword [esp + 0x1c]
cmp edi, 0x10
jb 0x1002d993
mov ebx, ebp
lea ecx, [esi + 0xf]
mov eax, edi
sub ebx, esi
shr eax, 4
mov dword [esp + 0x20], eax
lea esp, [esp]
lea eax, [ebx + ecx]
cmp esi, eax
ja 0x1002d960
cmp ecx, ebp
jb 0x1002d960
mov ecx, esi
mov edx, 0x10
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x1002d952
jmp 0x1002d971
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [ebp]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
lea eax, [esi + 0x60]
push eax
push esi
call dword [esp + 0x20]
add esp, 8
lea ecx, [esi + 0xf]
add ebp, 0x10
add ebx, 0x10
sub edi, 0x10
dec dword [esp + 0x20]
jne 0x1002d940
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x1002da0a
xor edx, edx
test edi, edi
je 0x1002da00
cmp edi, 0x10
jb 0x1002d9e0
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x1002d9b4
cmp ecx, ebp
jae 0x1002d9e0
mov eax, edi
mov ecx, edi
and eax, 0xf
mov ebx, ebp
sub ecx, eax
mov eax, esi
sub ebx, esi
movdqu xmm1, xmmword [eax + ebx]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x1002d9c3
cmp edx, edi
jae 0x1002d9fc
sub ebp, esi
lea ecx, [edx + esi]
sub edi, edx
jmp 0x1002d9f0
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edi
jne 0x1002d9f0
mov ebx, dword [esp + 0x18]
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push eax
bswap ecx
xor dword [esi + 8], ecx
push esi
call ebx
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
pop ebp
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10030e70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [ebx - 1]
mov ecx, dword [ebp + 4]
shr ebx, 0x1f
dec ebx
mov eax, dword [edi + 4]
xor eax, ecx
and eax, ebx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [edi + 4], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp ecx, 9
ja case.default.0x10030ea5
jmp dword [ecx*4 + 0x10030fe8]
mov ecx, 0xa
mov dword [esp + 0x14], ecx
cmp eax, ecx
jle case.0x10030ea5.10
lea esp, [esp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [edi]
mov ecx, dword [edx]
mov esi, dword [eax + esi*4]
xor esi, ecx
and esi, ebx
xor ecx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
xor dword [eax + ecx*4], esi
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x20]
jl 0x10030ec0
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, dword [esi + 0x24]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x24], ecx
mov eax, dword [edi]
xor dword [eax + 0x24], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x20]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x20], ecx
mov eax, dword [edi]
xor dword [eax + 0x20], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, dword [esi + 0x1c]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi]
xor dword [eax + 0x1c], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x18]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x18], ecx
mov eax, dword [edi]
xor dword [eax + 0x18], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, dword [esi + 0x14]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x14], ecx
mov eax, dword [edi]
xor dword [eax + 0x14], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0x10]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi]
xor dword [eax + 0x10], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0xc], ecx
mov eax, dword [edi]
xor dword [eax + 0xc], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, dword [esi + 8]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi]
xor dword [eax + 8], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 4], ecx
mov eax, dword [edi]
xor dword [eax + 4], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [esi]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [edi]
pop edi
pop esi
pop ebp
xor dword [eax], ecx
pop ebx
ret
Function at 0x10037c40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x10037c57
mov edi, ecx
jmp 0x10037c5b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x10037c6b
mov eax, ebx
jmp 0x10037c75
push eax
push ebx
call sym.LIBEAY32.dll_bn_expand2
add esp, 8
test eax, eax
jne 0x10037c7d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x10037c9b
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x10037c85
cmp esi, dword [edi + 4]
jge 0x10037cb0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x10037ca0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x10037cd4
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x10037cd1
dec ecx
test ecx, ecx
jg 0x10037cc3
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1003eab0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x1003eb79
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1003ead1
cmp al, 0x6b
jne 0x1003eb79
inc ecx
cmp al, 0x6b
jne 0x1003eb3b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x1003eaf2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x1003eaf2
cmp dl, 0xbb
jne 0x1003eb1b
inc eax
cmp eax, esi
jl 0x1003eae0
sub esi, eax
test eax, eax
jne 0x1003eb3e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x1003eb67
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x10047fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x10047ff6
mov dword [esp + 4], ecx
jmp fcn.1004ab20
mov dword [esp + 4], ecx
jmp eax
Function at 0x1004e2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1004e2fc
ret
mov dword [esp + 4], eax
jmp sym.LIBEAY32.dll_EC_GROUP_precompute_mult

Function at 0x10056580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100565a5
push 0
sub ecx, edx
mov dword [ebp - 0x18], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x10056610
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x10056603
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x10056610
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x1005668d
lea eax, [esi + esi]
call fcn.100bf110
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x18]
push 0xfde9
call esi
test eax, eax
je 0x100566f1
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056640
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x100566f1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR120.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100566a0
mov esi, dword [sym.imp.MSVCR120.dll__errno]
call esi
cmp dword [eax], 2
je 0x1005668f
call esi
cmp dword [eax], 9
jne 0x100566f1
push ebx
push edi
call dword [sym.imp.MSVCR120.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x100566f1
push 0x10112620
call sym.LIBEAY32.dll_BIO_new
mov edi, eax
add esp, 4
test edi, edi
jne 0x100566c2
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
jmp 0x1005675a
push 0x8000
push edi
call sym.LIBEAY32.dll_BIO_clear_flags
push esi
push 1
push 0x6a
push edi
call sym.LIBEAY32.dll_BIO_ctrl
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bf100
mov esp, ebp
pop ebp
ret
push 0xa8
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call sym.LIBEAY32.dll_ERR_put_error
push 0x100d0fe4
push ebx
push 0x100d0fe8
push edi
push str.fopen_
push 5
call sym.LIBEAY32.dll_ERR_add_error_data
add esp, 0x2c
call dword [sym.imp.MSVCR120.dll__errno]
cmp dword [eax], 2
jne 0x10056742
push 0xab
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x1005674e
push 0xad
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bf100
mov esp, ebp
pop ebp
ret
Function at 0x10059c00
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.1005a130
mov edi, eax
add esp, 8
test edi, edi
jns 0x10059c3b
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10059cfc
call sym.LIBEAY32.dll_BIO_sock_init
cmp eax, 1
jne 0x10059d0c
test edi, edi
jle 0x10059c54
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x10059c91
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10059ce2
cmp word [ecx + 8], 2
je 0x10059cb2
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10059ce2
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
test ebp, ebp
je 0x10059d13
push esi
push 0x100d1034
push 2
call sym.LIBEAY32.dll_ERR_add_error_data
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1005a0a0
Capabilities:
Set socket configuration

Disassembly:
push esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1005a0d8
push 0x22f
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov eax, esi
pop esi
ret

Function at 0x1005a0e0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1005a120
push 0x22f
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret