joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6fa0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7192
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4a7180
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4a7180
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a7180
cmp dword [esp + 8], 0x10
jl 0x4a7180
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4a7180
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4a7180
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4a7180
push 1
push esi
call fcn.004b13b0
add esp, 8
test eax, eax
js 0x4a7180
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.004a2aa0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4a7180
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a7180
cmp dword [esp + 8], 0x10
jl 0x4a7180
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x4a7180
cmp dword [esp + 8], 0x10
jl 0x4a7180
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x4a7180
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x4a7180
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x4a7180
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b75b2
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004b75b2
add esp, 0x34
ret

Function at 0x4a7770
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.004cbbe6
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x4a7796
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x4a77e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x4a788b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.0048d3d0
add esp, 0xc
cmp eax, 4
jne 0x4a7846
cmp byte [0x7076d4], 0
jne 0x4a7852
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x4a788d
mov eax, dword [esp + 0x1c]
jmp 0x4a786f
imul eax, dword [0x7076d0], 0x41c64e6d
add eax, 0x3039
mov dword [0x7076d0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x4a7883
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x4a7873
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4a7800
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4a78a0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x4a7a09
test dl, 1
je 0x4a7a09
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x4a79b3
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.0048d3d0
add esp, 0xc
cmp eax, 4
jne 0x4a7959
cmp byte [0x7076d4], 0
jne 0x4a7969
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x4a79f0
mov eax, dword [esp + 0x10]
jmp 0x4a7986
imul eax, dword [0x7076d0], 0x41c64e6d
add eax, 0x3039
mov dword [0x7076d0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4a79a0
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x4a7990
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4a7910
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x4a79f0
test edx, edx
je 0x4a79ea
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x668220]
mov byte [ebp], al
movzx eax, byte [ecx + 0x668220]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x4a79c0
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004b75b2
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x8c
ret
Function at 0x4ad700
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x700008]
mov edi, eax
add esp, 8
test edi, edi
je 0x4ad757
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4ad76f
cmp esi, ebx
je 0x4ad76f
cmp esi, 0x8000
ja 0x4ad76f
cmp esi, ebx
jb 0x4ad768
push esi
push edi
call dword [0x700008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ad720
push ebp
call dword [0x700004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x700004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4aee30
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov al, byte [esi]
test al, al
jne 0x4aee6c
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004b75b2
add esp, 0x4c
ret
cmp al, 0x5b
jne 0x4af00c
push ebp
push edi
cmp ebx, 4
jb 0x4aeff4
inc esi
sub ebx, 2
cmp byte [ebx + esi], 0x5d
jne 0x4aeff4
push str.0123456789abcdefABCDEF:.
push esi
call fcn.004cbcc0
add esp, 8
cmp ebx, eax
je 0x4aef5e
mov ebx, eax
add eax, esi
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x4aeff4
push 2
lea edi, [eax + 1]
xor ebp, ebp
push 0x669ac0
push edi
call fcn.004c83c0
add esp, 0xc
test eax, eax
jne 0x4aeedd
mov cl, byte [edi + 2]
lea eax, [edi + 2]
test cl, cl
je 0x4aeedd
cmp cl, 0x5d
cmovne edi, eax
mov al, byte [edi]
test al, al
je 0x4aefdc
lea ecx, [esp + 0x18]
sub ecx, edi
nop dword [eax]
cmp al, 0x5d
je 0x4aef05
cmp ebp, 0xf
jge 0x4aef05
mov byte [ecx + edi], al
inc ebp
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4aeef0
test ebp, ebp
je 0x4aefdc
cmp byte [edi], 0x5d
jne 0x4aefdc
cmp ebp, 0x10
jae 0x4af039
lea eax, [esp + 0x18]
mov byte [esp + ebp + 0x18], 0
push eax
call dword [0x70000c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x4aef55
pop edi
pop ebp
pop esi
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004b75b2
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [ebx + esi], 0
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x4aeff4
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x4aefc3
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4aef93
sub edx, ecx
cmp edx, ebx
jae 0x4aefc3
lea ecx, [esp + 0x28]
mov edi, esi
mov eax, ecx
sub edi, eax
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x4aefb0
mov byte [edx + esi + 1], al
mov ebx, edx
pop edi
pop ebp
mov byte [ebx + esi], 0x5d
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004b75b2
add esp, 0x4c
ret
pop edi
pop ebp
pop esi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004b75b2
add esp, 0x4c
ret
pop edi
pop ebp
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004b75b2
add esp, 0x4c
ret
push str.__r_n_t_:____________
push esi
call fcn.004c0ef0
xor ecx, ecx
add esp, 8
cmp ebx, eax
mov edx, 0x15
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x50]
pop esi
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x4c
ret
call fcn.004b7743
int3
Function at 0x4b5e80
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.00494f00
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 [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x4b6002
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 0x4b5f02
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 [esi + 8]
add eax, dword [ebp + 0xc]
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 0x4b5f73
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 0x4b5f30
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4b5fa5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x66a505
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x66a506
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4b5f80
push dword [esp + 0x30]
call fcn.00494f00
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 ebx, dword [esi]
test edi, edi
jne 0x4b5fd0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x700004]
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 0x4d653a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d63b0

Function at 0x4d9880
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d93d3
Function at 0x525020
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.00572fe0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.004b9210
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x5250d9
call fcn.00544bd0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00544cd0
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.00544d80
add esp, 0x14
call fcn.004c0461
cmp dword [eax], 2
je 0x5250a9
call fcn.004c0461
cmp dword [eax], 6
je 0x5250a9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x5250b1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00544bd0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00544cd0
push 0
push esi
push 0x20
call fcn.00544d80
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x68290c
call fcn.005259c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5250fb
push edi
call fcn.004c5582
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00525270
push edi
push ebx
push 0x6a
push esi
call fcn.005252a0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x528bc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.004b7f70
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x528c67
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x528c50
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.00528c90
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x528c03
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x528c73
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.00528c90
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x53c5b0
Capabilities:
Terminate process

Disassembly:
mov eax, 8
call fcn.004b7f70
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
xor edi, edi
call fcn.00523740
add esp, 4
test eax, eax
jle 0x53c78a
push edi
push ebx
call fcn.00523990
mov esi, eax
mov dword [esp + 0x18], 0
push 0x9c
push esi
xor ebp, ebp
call fcn.0059adc0
add esp, 0x10
test eax, eax
je 0x53c601
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
push 0x9d
push esi
call fcn.0059adc0
add esp, 8
test eax, eax
je 0x53c616
mov ebp, dword [eax + 4]
push esi
call fcn.0059aeb0
add eax, 0xffffff6a
add esp, 4
cmp eax, 5
ja case.0x53c62d.153
jmp dword [eax*4 + 0x53c7ac]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x53c62d.153
cmp dword [ebp], 0
jne case.0x53c62d.153
push esi
call fcn.0059ade0
push eax
call fcn.0058e880
add esp, 8
mov dword [ebp], eax
jmp 0x53c774
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x53c62d.153
cmp dword [ebp], 0
jne case.0x53c62d.153
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.0059aec0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53c7a0
push esi
call fcn.0058e880
push esi
mov dword [ebp], eax
call fcn.0058e750
add esp, 8
cmp dword [ebp], 0
jmp 0x53c776
cmp dword [esp + 0x2c], 0
je case.0x53c62d.153
push esi
call fcn.0059ae70
add esp, 4
cmp eax, 0x9e
jne case.0x53c62d.153
push esi
call fcn.0059ae20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x53c7a0
test ebp, ebp
je 0x53c6fa
push dword [ebp]
push dword [ebp + 8]
push ebx
call fcn.0058ff80
add esp, 0xc
test eax, eax
je 0x53c797
mov eax, dword [esp + 0x10]
test eax, eax
je 0x53c73b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0052a7c0
add esp, 8
test eax, eax
js 0x53c73b
push eax
push dword [esp + 0x18]
push ebx
call fcn.0058fe70
push 0xec
push str.cryptopkcs12p12_kiss.c
push dword [esp + 0x28]
mov esi, eax
call fcn.005247e0
add esp, 0x18
test esi, esi
je 0x53c797
push ebx
push dword [esp + 0x30]
call fcn.005237d0
add esp, 8
test eax, eax
je 0x53c797
mov ebx, dword [esp + 0x1c]
jmp case.0x53c62d.153
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.0059ae00
add esp, 4
push eax
call fcn.0053c5b0
add esp, 0x14
test eax, eax
je 0x53c7a0
push ebx
inc edi
call fcn.00523740
add esp, 4
cmp edi, eax
jl 0x53c5d5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.00535d20
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x56f0a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.004b7f70
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x708a10], 0
mov dword [esp], 0x69f184
mov dword [esp + 4], 0x56eaa0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x56ee50
mov dword [esp + 0x10], 0x69f19c
mov dword [esp + 0x14], 0x56ea50
jne 0x56f1fb
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x56f1f1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004d295a
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0065d9cc
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 0x56f16f
push 0x69f184
push edi
call ebx
test eax, eax
jne 0x56f1b6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004d295a
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0065d9cc
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x56f1ed
push 0x69f184
push edi
call ebx
test eax, eax
je 0x56f1ea
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x56f1ea
inc esi
cmp esi, 3
jl 0x56f1b8
mov eax, dword [esp + 0x14]
mov dword [0x703ea0], eax
mov eax, dword [esp + 0x1c]
mov dword [0x703ea8], eax
mov eax, dword [esp + 0x24]
mov dword [0x703eb0], eax
jmp 0x56f1ed
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x708a10], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x703ea0]
call fcn.004b75b2
add esp, 0x230
ret 4
Function at 0x56f230
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.004b7f70
mov eax, dword [0x7000a8]
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.004b9340
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.004b9340
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.004deb54
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 0x56f3ff
cmp word [ebx + 8], 2
jne 0x56f322
cmp word [ebx + 0xa], 4
jne 0x56f322
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x56f322
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.0056f450
mov dword [edi], eax
test eax, eax
je 0x56f3f8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x56f2f0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.004deb54
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x56f3af
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56f346
sub ecx, edx
je case.0x56f40f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x56f380
test dl, dl
je 0x56f37c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x56f380
add eax, 2
add ecx, 2
test dl, dl
jne 0x56f360
xor eax, eax
jmp 0x56f385
sbb eax, eax
or eax, 1
test eax, eax
je case.0x56f40f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x56f40f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x56f2b2
mov esi, 0x2afb
jmp 0x56f422
cmp dword [esp + 0x844], esi
je 0x56f422
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56f3c0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.004c0ebb
mov edi, eax
add esp, 8
test edi, edi
je 0x56f3e8
push ebp
push ebx
push edi
call fcn.004d295a
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 0x56f422
mov esi, 8
jmp 0x56f422
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x56f40f.11001
jmp dword [eax*4 + 0x56f440]
mov esi, 0x2afa
jmp 0x56f422
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x820
ret 0x18