joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510b60
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 0x510b93
push 0x2e
push edi
call fcn.005fd850
add esp, 8
test eax, eax
je 0x510b91
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x514a20
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 0x514ad9
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp edx, 0x20
jb 0x514ab3
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 0x514a50
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 0x514ad1
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 0x514ac1
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x51a0a0
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.005feb40
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 0x51b5b0
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.005feb40
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 0x51b8f0
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.005feb40
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 0x51c9b0
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 0x51cf40
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 0x52d310
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 0x52d360
mov al, byte [esi]
test al, al
je 0x52d360
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 0x52d330
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 0x55e6b0
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 [0x6c400c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x55e6dd
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 0x55e727
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 0x55e72d
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 0x55e78b
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 0x55e750
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x55e7b7
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 0x66d6ef
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x55e790
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x56f740
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x18], esi
jne 0x56f7ca
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x56f759
cmp al, 0x6b
jne 0x56f7ca
inc ecx
cmp al, 0x6b
jne 0x56f79e
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x56f779
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x56f779
cmp dl, 0xbb
jne 0x56f790
inc eax
cmp eax, esi
jl 0x56f767
sub esi, eax
test eax, eax
jne 0x56f7a1
push 0x83
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x8a
jmp 0x56f7d6
push 0x7b
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x8a
jmp 0x56f7d6
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x56f7b8
push 0x8b
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_x931.c
push 0x8b
jmp 0x56f7d6
push esi
push ecx
push dword [ebp + 8]
call fcn.005fe040
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.0050ab50
add esp, 0x14
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x5769a0
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 0x576a8a
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 0x576a13
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 + 0x670908]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
inc esi
and ecx, 0x3f
mov ebx, esi
mov cl, byte [ecx + 0x670908]
mov byte [esi], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
mov ch, byte [ecx + 0x670908]
mov cl, byte [eax + 0x670908]
jmp 0x576a5c
shl eax, 0x10
cmp edx, 2
jne 0x576a23
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
lea ebx, [esi + 1]
shr ecx, 0x12
mov cl, byte [ecx + 0x670908]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
mov esi, ebx
and ecx, 0x3f
mov cl, byte [ecx + 0x670908]
mov byte [ebx], cl
cmp edx, 1
jne 0x576a4e
mov cl, 0x3d
jmp 0x576a5a
shr eax, 6
and eax, 0x3f
mov cl, byte [eax + 0x670908]
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 0x5769c0
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 0x577cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x6ce488]
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 0x577d2a
push str.orig_len___md_size
push 0xf8
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.00514f00
add esp, 0xc
cmp edi, 0x40
jbe 0x577d46
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.00514f00
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 0x577d7c
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.005feb40
add esp, 0xc
mov dword [ebp - 0x8c], 0
cmp ebx, dword [ebp + 0x14]
jae 0x577e84
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 0x577df0
mov esi, dword [ebp - 0xa4]
jmp 0x577e8a
mov ebx, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x577ec0
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 0x577e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret
Function at 0x578ac0
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 0x578b80
mov edx, dword [ebp + 0x10]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x578b88
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 0x578b51
cmp dword [esi + 0x88], 0
jne 0x578b51
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x670af0
push eax
call fcn.00514a20
add esp, 0xc
test eax, eax
jne 0x578b44
test bl, 1
jne 0x578b44
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x578b51
test ebx, ebx
je 0x578b51
dec ebx
mov eax, dword [esi + 0x80]
push dword [eax]
call fcn.004faa00
mov edx, dword [edi + 4]
add esp, 4
mov dword [ebp - 0xc], edx
and eax, 0x200000
je 0x578b91
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 0x578b02
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 0x578c21
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 0x578be0
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 0x57b000
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x6ce488]
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 0x57b056
cmp ebx, eax
je 0x57b04d
test ecx, ecx
je 0x57b202
test edi, edi
js 0x57b202
mov edx, 1
mov dword [esi], ebx
jmp 0x57b060
test eax, eax
je 0x57b202
mov ebx, eax
test ecx, ecx
je 0x57b134
push ebx
call fcn.005190c0
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, 0x80
jle 0x57b098
push str.j____int_sizeof_ctx__key_
push 0x74
push str.g:copenssl_1.0.2ecryptohmachmac.c
call fcn.00514f00
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, edi
jge 0x57b0f0
push dword [ebp - 0x88]
lea eax, [esi + 4]
push ebx
push eax
call fcn.004f5110
add esp, 0xc
test eax, eax
je 0x57b202
push edi
push dword [ebp - 0x8c]
lea edi, [esi + 4]
push edi
call fcn.004f52b0
add esp, 0xc
test eax, eax
je 0x57b202
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push edi
call fcn.004f5060
add esp, 0xc
test eax, eax
je 0x57b202
mov edi, dword [esi + 0x4c]
jmp 0x57b112
cmp edi, 0x80
ja 0x57b202
push edi
push dword [ebp - 0x8c]
lea eax, [esi + 0x50]
push eax
call fcn.005fe040
add esp, 0xc
mov dword [esi + 0x4c], edi
cmp edi, 0x80
je 0x57b13c
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x50]
add eax, edi
push 0
push eax
call fcn.005feb40
add esp, 0xc
jmp 0x57b13c
test edx, edx
je 0x57b1d8
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 0x57b140
push dword [ebp - 0x88]
lea edi, [esi + 0x1c]
push ebx
push edi
call fcn.004f5110
add esp, 0xc
test eax, eax
je 0x57b202
push ebx
call fcn.005190c0
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004f52b0
add esp, 0x10
test eax, eax
je 0x57b202
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 0x57b190
push dword [ebp - 0x88]
lea edi, [esi + 0x34]
push ebx
push edi
call fcn.004f5110
add esp, 0xc
test eax, eax
je 0x57b202
push ebx
call fcn.005190c0
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004f52b0
add esp, 0x10
test eax, eax
je 0x57b202
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.004f54c0
add esp, 8
test eax, eax
je 0x57b202
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
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.005c358e
mov esp, ebp
pop ebp
ret
Function at 0x57bb70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6ce488]
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 0x57bc2f
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 0x57bba5
xor esi, esi
call fcn.0057c030
cmp eax, 1
jne 0x57bd1e
test esi, esi
jne 0x57bd31
push 0x8e
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x16
push 9
call fcn.00514890
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 0x57bc9c
push 0x92
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.0050ab50
add esp, 0x14
jmp 0x57bcf2
cmp edx, 0x2e
jne 0x57bc60
test esi, esi
je 0x57bc43
cmp ecx, 3
je 0x57bbd0
inc ecx
jmp 0x57bba3
push 0x7b
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.0050ab50
mov esi, dword [ebp - 0x18]
add esp, 0x14
jmp 0x57bd0e
test edx, edx
jne 0x57bbd0
cmp ecx, 3
jne 0x57bbd0
test esi, esi
je 0x57bbd0
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 0x57bbd2
cmp word [ecx + 8], 2
je 0x57bcbd
push 0x99
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.0050ab50
add esp, 0x14
jmp 0x57bcf2
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.00514890
add esp, 0x10
cmp dword [ebp - 0x1c], 0
je 0x57bd31
push esi
push 0x65de60
push 2
call fcn.00509f20
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
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.005c358e
mov esp, ebp
pop ebp
ret
Function at 0x57c0b0
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 0x57c0ef
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.0050ab50
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
pop ebp
ret
Function at 0x586550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6ce488]
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 0x5866d7
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x58666e
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.005851d0
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 0x586616
test ecx, ecx
je 0x5866c1
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.005c358e
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.005c358e
mov esp, ebp
pop ebp
ret