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

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x7f564c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x56a21b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x56a26a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x56a272
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x56a2e6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x56a2a0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x56a315
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x73b058
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x73b059
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x56a2f0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x56a320
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00462980
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x7f564c]
mov esi, eax
add esp, 8
test esi, esi
je 0x56a4a2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x56a3a2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi + 8]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x56a416
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x56a3d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x56a445
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x73b058
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x73b059
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x56a420
push dword [esp + 0x30]
call fcn.00462980
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebp, dword [esi]
test edi, edi
jne 0x56a470
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
call eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebp + 8]
push edi
call eax
push esi
call dword [0x7f5650]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x5ab650
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.005f88e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.006e2000
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x5ab709
call fcn.005cc9b0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.005ccab0
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.005ccb60
add esp, 0x14
call fcn.006f5dc9
cmp dword [eax], 2
je 0x5ab6d9
call fcn.006f5dc9
cmp dword [eax], 6
je 0x5ab6d9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x5ab6e1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.005cc9b0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.005ccab0
push 0
push esi
push 0x20
call fcn.005ccb60
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x7478e0
call fcn.005aa690
mov esi, eax
add esp, 4
test esi, esi
jne 0x5ab72b
push edi
call fcn.006ec162
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call fcn.005a9f60
push edi
push ebx
push 0x6a
push esi
call fcn.005a9f90
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x5ae710
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.006df660
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
test byte [eax + 0x10], 4
mov ebx, dword [eax]
mov ebp, dword [ecx]
push esi
je 0x5ae7d1
mov edx, dword [ecx + 4]
cmp dword [eax + 4], edx
jne 0x5ae7d1
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
test edx, edx
jle 0x5ae7c7
sub ebx, ebp
nop dword [eax]
mov edx, dword [ebx + ebp]
lea ebp, [ebp + 4]
mov ecx, dword [ebp - 4]
mov esi, edx
sub esi, ecx
mov eax, edx
xor esi, ecx
xor eax, ecx
or esi, eax
xor esi, edx
shr esi, 0x1f
neg esi
mov dword [esp + 0x14], esi
not esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
and eax, edi
mov edi, dword [esp + 0x14]
mov edx, dword [ebp - 4]
or edi, eax
mov ecx, dword [ebx + ebp - 4]
mov esi, edx
sub esi, ecx
mov eax, edx
xor esi, ecx
xor eax, ecx
or esi, eax
mov eax, dword [esp + 0x20]
xor esi, edx
shr esi, 0x1f
neg esi
mov dword [esp + 0x10], esi
not esi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
and ecx, edi
mov edi, dword [esp + 0x10]
and edi, 1
or edi, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [eax + 4]
jl 0x5ae750
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [eax + 4]
mov eax, edx
sub eax, dword [ecx + 4]
jne 0x5ae803
lea ecx, [edx - 1]
test ecx, ecx
js 0x5ae801
lea eax, [ecx*4]
add eax, ebp
sub ebx, ebp
nop dword [eax]
mov edx, dword [eax + ebx]
mov esi, dword [eax]
cmp esi, edx
jne 0x5ae80a
sub eax, 4
sub ecx, 1
jns 0x5ae7f0
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
sbb eax, eax
pop esi
and eax, 2
pop ebp
dec eax
pop ebx
add esp, 8
ret
Function at 0x5c37f0
Capabilities:
Terminate process

Disassembly:
mov eax, 8
call fcn.006df660
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
xor edi, edi
call fcn.005a96d0
add esp, 4
test eax, eax
jle 0x5c39ca
push edi
push ebx
call fcn.005a9920
mov esi, eax
mov dword [esp + 0x18], 0
push 0x9c
push esi
xor ebp, ebp
call fcn.006213c0
add esp, 0x10
test eax, eax
je 0x5c3841
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
push 0x9d
push esi
call fcn.006213c0
add esp, 8
test eax, eax
je 0x5c3856
mov ebp, dword [eax + 4]
push esi
call fcn.006214b0
add eax, 0xffffff6a
add esp, 4
cmp eax, 5
ja case.0x5c386d.153
jmp dword [eax*4 + 0x5c39ec]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x5c386d.153
cmp dword [ebp], 0
jne case.0x5c386d.153
push esi
call fcn.006213e0
push eax
call fcn.005b7dc0
add esp, 8
mov dword [ebp], eax
jmp 0x5c39b4
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x5c386d.153
cmp dword [ebp], 0
jne case.0x5c386d.153
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.006214c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5c39e0
push esi
call fcn.005b7dc0
push esi
mov dword [ebp], eax
call fcn.0060cfd0
add esp, 8
cmp dword [ebp], 0
jmp 0x5c39b6
cmp dword [esp + 0x2c], 0
je case.0x5c386d.153
push esi
call fcn.00621470
add esp, 4
cmp eax, 0x9e
jne case.0x5c386d.153
push esi
call fcn.00621420
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5c39e0
test ebp, ebp
je 0x5c393a
push dword [ebp]
push dword [ebp + 8]
push ebx
call fcn.006163b0
add esp, 0xc
test eax, eax
je 0x5c39d7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c397b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005b01f0
add esp, 8
test eax, eax
js 0x5c397b
push eax
push dword [esp + 0x18]
push ebx
call fcn.00616320
push 0xec
push str.cryptopkcs12p12_kiss.c
push dword [esp + 0x28]
mov esi, eax
call fcn.005a9ba0
add esp, 0x18
test esi, esi
je 0x5c39d7
push ebx
push dword [esp + 0x30]
call fcn.005a9760
add esp, 8
test eax, eax
je 0x5c39d7
mov ebx, dword [esp + 0x1c]
jmp case.0x5c386d.153
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.00621400
add esp, 4
push eax
call fcn.005c37f0
add esp, 0x14
test eax, eax
je 0x5c39e0
push ebx
inc edi
call fcn.005a96d0
add esp, 4
cmp edi, eax
jl 0x5c3815
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.005bd0d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x5cc820
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.006df660
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x5cc8a0
mov cl, byte [edi]
test cl, cl
je 0x5cc8a0
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x5cc850
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x5cc920
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.006df660
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x5cc9a3
mov al, byte [ebx]
test al, al
je 0x5cc9a3
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.005f8ff0
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x5cc947
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5f4260
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.006df660
mov edx, dword [esp + 0x18]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
or ecx, 0xffffffff
push ebp
mov ebp, dword [esp + 0x34]
cmp ebp, 1
push esi
mov esi, dword [edx]
setne al
add eax, ebx
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x5f4299
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ebp, 1
je 0x5f4364
mov ecx, dword [esp + 0x2c]
dec ecx
add ecx, esi
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], ecx
mov cl, byte [ecx]
mov byte [esp + 0xf], cl
movzx ebp, cl
je 0x5f42d0
sub esi, ebp
mov eax, 1
sub esi, ebx
dec esi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [eax + ebp]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
push edi
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x5f4347
mov esi, dword [esp + 0x14]
mov edx, ebp
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, ebp
lea esi, [esi - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x13]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x5f4307
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
not ebx
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x3c]
movzx ecx, bl
mov ebx, dword [esp + 0x40]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edx], esi
pop edi
push dword [esp + 0x44]
push ecx
push ebx
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
call fcn.005f3f40
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5f5b60
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.006df660
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x7ff9d8], 0
mov dword [esp], 0x764188
mov dword [esp + 4], 0x5f5550
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x5f5910
mov dword [esp + 0x10], 0x7641a0
mov dword [esp + 0x14], 0x5f5500
jne 0x5f5cbb
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5f5cb1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.006f934c
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.006f93a6
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x5f5c2f
push 0x764188
push edi
call ebx
test eax, eax
jne 0x5f5c76
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.006f934c
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.006f93a6
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x5f5cad
push 0x764188
push edi
call ebx
test eax, eax
je 0x5f5caa
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x5f5caa
inc esi
cmp esi, 3
jl 0x5f5c78
mov eax, dword [esp + 0x14]
mov dword [0x7f8e00], eax
mov eax, dword [esp + 0x1c]
mov dword [0x7f8e08], eax
mov eax, dword [esp + 0x24]
mov dword [0x7f8e10], eax
jmp 0x5f5cad
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7ff9d8], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x7f8e00]
call fcn.006def69
add esp, 0x230
ret 4
Function at 0x5f5cf0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.006df660
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.006e1410
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.006e1410
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.006f94c0
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x5f5ebf
cmp word [ebx + 8], 2
jne 0x5f5de2
cmp word [ebx + 0xa], 4
jne 0x5f5de2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x5f5de2
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.005f5f20
mov dword [edi], eax
test eax, eax
je 0x5f5eb8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x5f5db0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.006f94c0
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x5f5e70
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f5e06
sub ecx, edx
je case.0x5f5ecf.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5f5e40
test dl, dl
je 0x5f5e3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5f5e40
add eax, 2
add ecx, 2
test dl, dl
jne 0x5f5e20
xor eax, eax
jmp 0x5f5e45
sbb eax, eax
or eax, 1
test eax, eax
je case.0x5f5ecf.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x5f5ecf.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x5f5d72
cmp dword [esp + 0x844], esi
je 0x5f5ee9
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f5e80
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.006ebdd0
mov edi, eax
add esp, 8
test edi, edi
je 0x5f5ea8
push ebp
push ebx
push edi
call fcn.006f934c
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x5f5ee9
mov esi, 8
jmp 0x5f5ee9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x5f5ecf.11001
jmp dword [eax*4 + 0x5f5f08]
mov esi, 0x2afa
jmp 0x5f5ee9
mov esi, 0x2afb
jmp 0x5f5ee9
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x820
ret 0x18
Function at 0x5f86d0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x7ffc78], 0
jne 0x5f8769
push 0x190
push 0
push 0x7ffc80
mov dword [0x7ffc78], 1
call fcn.006e1410
add esp, 0xc
push 0x7ffc80
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5f8769
call fcn.005cc9b0
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.005ccab0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005ccb60
call fcn.005cc9b0
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.005ccab0
push 0
push 0x7a
push 0x20
call fcn.005ccb60
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x5f8770
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 0x5f87c5
call fcn.005cc9b0
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.005ccab0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.005ccb60
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x5f87d0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.006df660
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0xffffffff
jne 0x5f8816
or eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006def69
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0x128]
test esi, esi
jne 0x5f883d
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006def69
add esp, 0x110
ret
push 0
call fcn.006ee397
add esp, 4
cmp esi, eax
jge 0x5f8865
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.006def69
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebx, ebx
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebx, ebx
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x118]
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x110
ret
Function at 0x600cd0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.006df660
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x600d0c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.006def69
add esp, 0x40
ret
test esi, esi
je 0x600e1b
cmp dword [esp + 0x54], 0x30
jne 0x600e1b
push 0x30
push edi
push esi
call fcn.00600bf0
add esp, 0xc
test eax, eax
jle 0x600e1b
movaps xmm0, xmmword [str.6666666666666666_]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.00600bf0
add esp, 0xc
test eax, eax
je 0x600e1b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00600a50
add esp, 8
test eax, eax
je 0x600e1b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.006e1410
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.00600bf0
add esp, 0x18
test eax, eax
jle 0x600e1b
movaps xmm0, xmmword [0x763e80]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.00600bf0
add esp, 0xc
test eax, eax
je 0x600e1b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00600bf0
add esp, 0xc
test eax, eax
je 0x600e1b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00401320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.006def69
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.006def69
add esp, 0x40
ret

Function at 0x603110
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x603124
mov dword [esp + 4], eax
jmp fcn.005ae3e0
or eax, 0xffffffff
ret