joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a19d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x100a1a03
push 0x2e
push edi
call fcn.10155430
add esp, 8
test eax, eax
je 0x100a1a01
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x100a5890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x100a5949
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp edx, 0x20
jb 0x100a5923
mov eax, dword [ebp + 8]
mov edi, edx
mov ebx, esi
and edi, 0xffffffe0
xorps xmm3, xmm3
xorps xmm2, xmm2
sub ebx, eax
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x100a58c0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
cmp ecx, edx
jae 0x100a5941
mov edi, dword [ebp + 8]
sub esi, edi
sub edx, ecx
lea eax, [ecx + edi]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x100a5931
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x100aaf10
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x4c
push 0
lea eax, [esi + 0x14]
push eax
call fcn.10155d20
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x100ac420
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x4c
push 0
lea eax, [esi + 0x20]
push eax
call fcn.10155d20
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x100ac760
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x4c
push 0
lea eax, [esi + 0x20]
push eax
call fcn.10155d20
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x100ad820
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x100addb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x100be180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x100be1d0
mov al, byte [esi]
test al, al
je 0x100be1d0
push edi
mov edi, 0x100
nop dword [eax]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x100be1a0
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100ef530
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x101f3040]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100ef55d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x100ef5a7
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x100ef5ad
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100ef60b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x100ef5d0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x100ef637
mov eax, dword [esi + 4]
push 1
push str.6g:copenssl_1.0.2ecrypto_bn_bn_shift.c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x101b148f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100ef610
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101005d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x18], esi
jne 0x1010065a
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x101005e9
cmp al, 0x6b
jne 0x1010065a
inc ecx
cmp al, 0x6b
jne 0x1010062e
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x10100609
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x10100609
cmp dl, 0xbb
jne 0x10100620
inc eax
cmp eax, esi
jl 0x101005f7
sub esi, eax
test eax, eax
jne 0x10100631
push 0x83
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x8a
jmp 0x10100666
push 0x7b
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x8a
jmp 0x10100666
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x10100648
push 0x8b
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x8b
jmp 0x10100666
push esi
push ecx
push dword [ebp + 8]
call fcn.10155e80
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret
push 0x70
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.10099c70
add esp, 0x14
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x10107830
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 4], ecx
test edx, edx
jle 0x1010791a
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
inc edi
nop
movzx eax, byte [edi - 1]
cmp edx, 3
jl 0x101078a3
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
mov cl, byte [ecx + 0x101b46a8]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
inc esi
and ecx, 0x3f
mov ebx, esi
mov cl, byte [ecx + 0x101b46a8]
mov byte [esi], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
mov ch, byte [ecx + 0x101b46a8]
mov cl, byte [eax + 0x101b46a8]
jmp 0x101078ec
shl eax, 0x10
cmp edx, 2
jne 0x101078b3
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
lea ebx, [esi + 1]
shr ecx, 0x12
mov cl, byte [ecx + 0x101b46a8]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
mov esi, ebx
and ecx, 0x3f
mov cl, byte [ecx + 0x101b46a8]
mov byte [ebx], cl
cmp edx, 1
jne 0x101078de
mov cl, 0x3d
jmp 0x101078ea
shr eax, 6
and eax, 0x3f
mov cl, byte [eax + 0x101b46a8]
mov ch, 0x3d
lea eax, [esi + 2]
mov byte [ebx + 1], cl
mov byte [eax], ch
lea esi, [eax + 1]
mov ecx, dword [ebp - 4]
sub edx, 3
add ecx, 4
add edi, 3
mov dword [ebp - 4], ecx
test edx, edx
jg 0x10107850
pop edi
mov byte [esi], 0
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [eax], cl
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x10108b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov esi, dword [esi + 4]
mov dword [ebp - 0x98], esi
sub esi, edi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x88], ebx
cmp dword [ebp + 0x14], edi
jae 0x10108bba
push str.orig_len___md_size
push 0xf8
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5d70
add esp, 0xc
cmp edi, 0x40
jbe 0x10108bd6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5d70
add esp, 0xc
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x84]
neg eax
lea ecx, [ebp - 0x84]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [ebp - 0x9c], ecx
cmp edx, eax
jbe 0x10108c0c
mov ebx, edx
sub ebx, edi
sub ebx, 0x100
mov dword [ebp - 0x88], ebx
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ecx
mov dword [ebp - 0xa4], esi
call fcn.10155d20
add esp, 0xc
mov dword [ebp - 0x8c], 0
cmp ebx, dword [ebp + 0x14]
jae 0x10108d14
mov ecx, dword [ebp - 0x98]
mov eax, ecx
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x88]
shr eax, 0x1f
sub esi, ecx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0xc]
shr edx, 0x1f
mov dword [ebp - 0x90], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [ebp - 0x88], eax
nop dword [eax]
mov eax, dword [ebp - 0x88]
lea ebx, [esi + ecx]
shr ebx, 0x1f
lea ecx, [edi + esi]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, esi
xor cl, bl
shr edx, 0x1f
xor dl, byte [ebp - 0x94]
dec cl
mov dword [ebp - 0xa0], ecx
mov cl, byte [eax + esi]
mov al, bl
xor al, byte [ebp - 0x94]
inc esi
or dl, al
mov eax, dword [ebp - 0x8c]
xor dl, bl
mov ebx, dword [ebp - 0x9c]
neg dl
and dl, cl
and dl, byte [ebp - 0xa0]
or byte [eax + ebx], dl
mov edx, eax
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x90]
lea eax, [esi + ecx]
cmp eax, dword [ebp + 0x14]
jb 0x10108c80
mov esi, dword [ebp - 0xa4]
jmp 0x10108d1a
mov ebx, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x10108d50
mov ecx, dword [ebp - 0xa8]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [ecx + edx], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x10108d20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10109950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x10109a10
mov edx, dword [ebp + 0x10]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x10109a18
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x101099e1
cmp dword [esi + 0x88], 0
jne 0x101099e1
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x101b4890
push eax
call fcn.100a5890
add esp, 0xc
test eax, eax
jne 0x101099d4
test bl, 1
jne 0x101099d4
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x101099e1
test ebx, ebx
je 0x101099e1
dec ebx
mov eax, dword [esi + 0x80]
push dword [eax]
call fcn.10089b20
mov edx, dword [edi + 4]
add esp, 4
mov dword [ebp - 0xc], edx
and eax, 0x200000
je 0x10109a21
sub edx, ebx
mov eax, 1
dec edx
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, ecx
jbe 0x10109992
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, edx
add ecx, ebx
mov esi, 0xff
sub eax, ecx
xor eax, ecx
mov dword [ebp + 0x14], eax
mov eax, edx
xor eax, ecx
mov ecx, dword [ebp + 0x14]
or ecx, eax
lea eax, [edx - 1]
xor ecx, edx
shr ecx, 0x1f
dec ecx
cmp eax, esi
mov dword [ebp + 0x14], ecx
cmovb esi, eax
mov dword [ebp - 8], esi
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10109ab1
mov eax, ebx
shr eax, 0x1f
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
mov edi, ecx
dec eax
add eax, edx
mov dword [ebp - 4], eax
nop dword [eax + eax]
mov al, byte [ebp + 8]
mov edx, ebx
sub edx, esi
mov ecx, esi
shr edx, 0x1f
inc esi
shr ecx, 0x1f
xor dl, cl
xor al, cl
or dl, al
xor dl, byte [ebp + 8]
dec dl
movzx ecx, dl
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
dec edx
xor eax, ebx
mov dword [ebp - 4], edx
and ecx, eax
not ecx
and edi, ecx
cmp esi, dword [ebp - 8]
jb 0x10109a70
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
not ecx
lea eax, [ebx + 1]
movzx ecx, cl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub edx, eax
shl eax, 8
or dword [edi], eax
mov eax, ecx
mov dword [edi + 4], edx
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1010be90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
test ebx, ebx
je 0x1010bee6
cmp ebx, eax
je 0x1010bedd
test ecx, ecx
je 0x1010c092
test edi, edi
js 0x1010c092
mov edx, 1
mov dword [esi], ebx
jmp 0x1010bef0
test eax, eax
je 0x1010c092
mov ebx, eax
test ecx, ecx
je 0x1010bfc4
push ebx
call fcn.100a9f30
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, 0x80
jle 0x1010bf28
push str.j____int_sizeof_ctx__key_
push 0x74
push str.g:copenssl_1.0.2ecryptohmachmac.c
call fcn.100a5d70
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, edi
jge 0x1010bf80
push dword [ebp - 0x88]
lea eax, [esi + 4]
push ebx
push eax
call fcn.10084230
add esp, 0xc
test eax, eax
je 0x1010c092
push edi
push dword [ebp - 0x8c]
lea edi, [esi + 4]
push edi
call fcn.100843d0
add esp, 0xc
test eax, eax
je 0x1010c092
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push edi
call fcn.10084180
add esp, 0xc
test eax, eax
je 0x1010c092
mov edi, dword [esi + 0x4c]
jmp 0x1010bfa2
cmp edi, 0x80
ja 0x1010c092
push edi
push dword [ebp - 0x8c]
lea eax, [esi + 0x50]
push eax
call fcn.10155e80
add esp, 0xc
mov dword [esi + 0x4c], edi
cmp edi, 0x80
je 0x1010bfcc
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x50]
add eax, edi
push 0
push eax
call fcn.10155d20
add esp, 0xc
jmp 0x1010bfcc
test edx, edx
je 0x1010c068
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [ebp + ecx - 0x84], al
inc ecx
cmp ecx, 0x80
jl 0x1010bfd0
push dword [ebp - 0x88]
lea edi, [esi + 0x1c]
push ebx
push edi
call fcn.10084230
add esp, 0xc
test eax, eax
je 0x1010c092
push ebx
call fcn.100a9f30
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.100843d0
add esp, 0x10
test eax, eax
je 0x1010c092
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [ebp + ecx - 0x84], al
inc ecx
cmp ecx, 0x80
jl 0x1010c020
push dword [ebp - 0x88]
lea edi, [esi + 0x34]
push ebx
push edi
call fcn.10084230
add esp, 0xc
test eax, eax
je 0x1010c092
push ebx
call fcn.100a9f30
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.100843d0
add esp, 0x10
test eax, eax
je 0x1010c092
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.100845e0
add esp, 8
test eax, eax
je 0x1010c092
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1010ca00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x18], eax
mov edi, eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
xor esi, esi
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x1010cabf
mov eax, dword [ebp + ecx*4 - 0x14]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [ebp + ecx*4 - 0x14], eax
cmp eax, 0xff
jbe 0x1010ca35
xor esi, esi
call fcn.1010cec0
cmp eax, 1
jne 0x1010cbae
test esi, esi
jne 0x1010cbc1
push 0x8e
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x16
push 9
call fcn.100a5700
mov esi, dword [ebp - 0x18]
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x1010cb2c
push 0x92
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.10099c70
add esp, 0x14
jmp 0x1010cb82
cmp edx, 0x2e
jne 0x1010caf0
test esi, esi
je 0x1010cad3
cmp ecx, 3
je 0x1010ca60
inc ecx
jmp 0x1010ca33
push 0x7b
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.10099c70
mov esi, dword [ebp - 0x18]
add esp, 0x14
jmp 0x1010cb9e
test edx, edx
jne 0x1010ca60
cmp ecx, 3
jne 0x1010ca60
test esi, esi
je 0x1010ca60
movzx eax, byte [ebp - 0x14]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [ebp - 0x10]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0xc]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 8]
mov byte [ebx + 3], al
jmp 0x1010ca62
cmp word [ecx + 8], 2
je 0x1010cb4d
push 0x99
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.10099c70
add esp, 0x14
jmp 0x1010cb82
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], 0
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.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100a5700
add esp, 0x10
cmp dword [ebp - 0x1c], 0
je 0x1010cbc1
push esi
push str.host
push 2
call fcn.10099040
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1010cf40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1010cf7f
push 0x233
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10099c70
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
pop ebp
ret
Function at 0x101173e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x28], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x14], 0
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x10117567
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x101174fe
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.10116060
mov ebx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc dword [ebp - 0x14]
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + esi - 0xc]
inc esi
mov ecx, dword [ebp - 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x101174a6
test ecx, ecx
je 0x10117551
mov edi, dword [ebp - 0x28]
mov eax, ebx
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 3], bl
shr eax, 8
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret