joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb605
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0xc], ecx
xor ecx, ecx
mov dword [edi + 8], eax
mov al, byte [esi + 2]
mov word [edi], cx
mov byte [ebp + 0x17], al
cmp byte [esi + 1], cl
je 0x4eb6a4
lea eax, [esi + 0x20]
push eax
lea ecx, [edi + 0x24]
call fcn.0049f062
lea eax, [esi + 0x2c]
lea ecx, [edi + 0x60]
cmp eax, ecx
je 0x4eb651
push dword [eax + 4]
push dword [eax]
call fcn.004a6905
movzx eax, byte [esi + 4]
mov ecx, edi
push eax
push 0x800
call fcn.004eb76c
mov eax, dword [esi + 0x10]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ecx
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], ecx
mov al, byte [esi + 3]
mov byte [edi + 0x88], al
mov al, byte [ebp + 0x17]
xor edx, edx
mov dword [edi + 0x40], 0x3f
test al, al
mov byte [edi + 5], dl
lea eax, [ebx + 0x6c]
jne 0x4eb6c4
mov dword [ebp - 4], eax
cmp byte [eax], dl
je 0x4eb6c4
mov byte [ebp + 0xc], 1
jmp 0x4eb6ca
mov byte [ebp + 0xc], dl
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
mov ecx, edi
push 1
call fcn.004eb76c
push dword [ebp + 0x10]
mov ecx, edi
push 8
call fcn.004eb76c
cmp byte [ebp + 0x17], 0
je 0x4eb701
xor eax, eax
mov byte [edi + 4], 0x14
mov word [edi + 2], ax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x30]
call fcn.004a6774
lea ecx, [edi + 0x50]
mov byte [edi + 0x3e], 0
call fcn.004a6774
xor ecx, ecx
mov byte [edi + 0x5e], cl
cmp byte [ebp + 0x17], cl
je 0x4eb73a
xor eax, eax
mov byte [edi + 4], 0x14
mov word [edi + 2], ax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x1c], ecx
jmp 0x4eb767
mov eax, dword [ebp - 4]
cmp byte [eax], cl
je 0x4eb767
cmp byte [ebx + 0x58], cl
je 0x4eb767
cmp dword [ebx + 0x64], ecx
jne 0x4eb750
push 8
pop eax
jmp 0x4eb755
mov eax, dword [ebx + 0x60]
mov al, byte [eax]
movzx eax, al
push eax
movzx eax, byte [ebx + 0x59]
push eax
push edi
call fcn.004eaf59
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ed6c7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 8
mov eax, 0x69e18a
call fcn.0048a7b2
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x4ed6f5
mov eax, dword [ecx]
push 3
push dword [esi + 8]
push 1
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x4ed860
cmp byte [esi + 1], 0
je 0x4ed7a8
mov ebx, dword [ebp + 0x18]
mov al, byte [ebx]
shr al, 3
test al, 1
je 0x4ed715
mov eax, 0x80004001
jmp 0x4ed860
lea eax, [esi + 0x2c]
lea ecx, [ebx + 0x60]
cmp eax, ecx
je 0x4ed729
push dword [eax + 4]
push dword [eax]
call fcn.004a6905
lea eax, [esi + 0x20]
push eax
lea ecx, [ebx + 0x24]
call fcn.0049f062
mov al, byte [esi + 4]
mov ecx, ebx
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
push 0x800
call fcn.004eb76c
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [ebx + 0x7c], ecx
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov dword [ebx + 0x84], ecx
lea ecx, [ebx + 0x50]
mov dword [ebx + 0x80], eax
mov al, byte [esi + 3]
mov byte [ebx + 0x88], al
call fcn.004eb575
lea ecx, [ebx + 0x30]
call fcn.004eb575
push 0
push ebx
mov ecx, edi
call fcn.004f4490
mov ecx, ebx
call fcn.004eb11b
mov ebx, eax
jmp 0x4ed7ca
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x4c], edx
call fcn.004eb11b
mov ecx, dword [ebp + 0x10]
mov ebx, eax
add ebx, dword [ecx + 0x70]
adc edx, 0
and dword [ebp + 0x20], 0
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x20]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 1]
push eax
push dword [ebp + 0x10]
call fcn.004a7297
mov esi, eax
mov eax, dword [ebp + 0x20]
test esi, esi
jne 0x4ed84d
test eax, eax
jne 0x4ed7fd
mov esi, 0x80004001
jmp 0x4ed84d
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp - 0x10]
add dword [eax], ebx
adc dword [eax + 4], esi
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004f3e03
push dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x20]
call fcn.004a3261
add esp, 0x14
mov esi, eax
add dword [edi + 0x38], ebx
mov eax, dword [ebp - 0x10]
adc dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test eax, eax
je 0x4ed84a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], 5
test eax, eax
je 0x4ed85e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.0048a780
ret
Function at 0x4f4eed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0049f163
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0048a267
leave
ret

Function at 0x4f4f75
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4f55c2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret

Function at 0x4f6790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xbc
mov eax, 0x69ead4
call fcn.0048a7e5
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x14]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f6884
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4f6884
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4f6884
push dword [ebp - 0xc4]
lea ecx, [ebp - 0x28]
call fcn.0040a380
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004f6952
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a330
lea eax, [ebp - 0x40]
push eax
push 1
lea ecx, [ebp - 0x5c]
call fcn.0041d460
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.005887d1
push ebx
push esi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.00498aa7
lea eax, [ebp - 0x5c]
push eax
push 0
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc0]
call fcn.00588c5b
neg eax
lea ecx, [ebp - 0xc0]
sbb esi, esi
call fcn.00588807
lea ecx, [ebp - 0x58]
call fcn.00401db0
lea ecx, [ebp - 0x40]
call fcn.00401db0
lea eax, [esi + 1]
jmp 0x4f6886
xor eax, eax
call fcn.0048a794
ret 0x10
Function at 0x50a900
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x75d580]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.0050ae50
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x50a9af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x50a97d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x50a9af
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00535840
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0050a560
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048a267
add esp, 0x104
ret

Function at 0x50ae50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x560]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x50af08
cmp dword [ebx + ecx*4 + 0x438], 0x50a820
jne 0x50af08
cmp dword [esi], 0
je 0x50ae9c
test edi, edi
je 0x50af08
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00518550
add esp, 0x14
cmp eax, 0xffffffff
je 0x50af08
test al, 1
je 0x50af08
cmp dword [esi], 0
jne 0x50aef1
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x75d950]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x50aef1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x50af08
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x50bce0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x75d580]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x50bf1a
cmp byte [esi + 0x516], 0
jne 0x50bf1a
cmp byte [esi + 0x529], 0
jne 0x50bf1a
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x50bd91
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.00535840
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0050a560
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048a267
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.0053fb70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x50be05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.00535840
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0050a560
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048a267
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.0050af10
add esp, 0x10
test al, al
jne 0x50be76
call fcn.00549684
mov esi, eax
call fcn.00549684
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.00535840
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0050a560
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048a267
add esp, 0x20c
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0050af10
add esp, 0x10
test al, al
jne 0x50bf1a
call fcn.00549684
mov esi, eax
call fcn.00549684
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.00535840
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0050a560
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048a267
add esp, 0x20c
ret
push esi
call fcn.0050b920
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048a267
add esp, 0x20c
ret
Function at 0x50cd90
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x6b5374
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x50cdaa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x6b5388
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x6b5398
push esi
call fcn.0055cfe3
add esp, 8
test eax, eax
je 0x50cdf2
test ebp, ebp
je 0x50cde3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x50ce18
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50ce18
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x50cee7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50ce35
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x75d950]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x50cedd
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x50cedd
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50ce76
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50ce91
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x50cea5
test ebp, ebp
je 0x50ced4
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x75d954]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x75d954]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x511330
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x568], 2
jne 0x511346
mov dword [esp + 4], eax
jmp fcn.005112e0
mov al, 1
ret

Function at 0x511d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x511d36
mov dword [esp + 4], eax
jmp fcn.00537ab0
mov dword [esp + 4], eax
jmp fcn.00500590
Function at 0x516d00
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
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x75d580]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x516ee5
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x516ed3
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x516ed3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x516ed3
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x516ed3
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x516ed3
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x516ed3
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x516ed3
push ebx
push 0x6b6ca8
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00519bf0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x516e31
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x516ed3
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x516ed3
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x516e86
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x516e8b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x516e75
cmp esi, 0xfffffffc
je 0x516eb8
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x516ed3
cmp esi, 0xfffffffd
je 0x516eb8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x516ed3
cmp esi, 0xfffffffe
je 0x516eb8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x516ed3
cmp esi, 0xffffffff
je 0x516eb8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x516ed3
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048a267
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048a267
add esp, 0x34
ret
Function at 0x51ce20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x75d580]
xor eax, esp
mov dword [esp + 0x1c8], eax
cmp byte [0x76ce28], 0
push ebx
mov ebx, dword [esp + 0x1d4]
mov dword [esp + 0x18], ebx
jne 0x51ce59
call fcn.005d2f50
test eax, eax
je 0x51ce71
mov byte [0x76ce28], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0048a267
add esp, 0x1cc
ret
mov eax, dword [ebx + 0xa00]
test eax, eax
je 0x51ce92
push 0x400
push eax
call fcn.005d3a40
add esp, 8
call fcn.005d2f50
test eax, eax
jne 0x51ce59
push ebp
push esi
push edi
nop word [eax + eax]
mov esi, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x98]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.00510af0
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
call fcn.00518790
movups xmm1, xmmword [esp + 0x44]
add esp, 0xc
lea ecx, [esi - 1]
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push ecx
call fcn.0048aec0
imul esi, dword [esp + 0x30]
mov ebx, eax
lea eax, [esp + 0x58]
mov ebp, edx
push eax
mov dword [esp + 0x20], esi
call fcn.00510af0
mov eax, dword [eax + 8]
cdq
mov esi, eax
mov edi, edx
lea eax, [esp + 0x6c]
push eax
call fcn.00510af0
mov edx, dword [esp + 0x18]
add esp, 8
inc edx
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
push 0
push edx
adc eax, edi
push eax
push ecx
call fcn.0048aec0
shld edx, eax, 8
shl eax, 8
xor ebp, edx
xor ebx, eax
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0x78]
mov dword [esp + 0x28], ebx
push eax
call fcn.00510af0
lea esi, [eax + 8]
lea eax, [esp + 0x8c]
push eax
call fcn.00510af0
add esp, 8
mov ecx, dword [eax]
add ecx, dword [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
add eax, 2
imul ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
shl ecx, 0x10
xor eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [esp + 0x28]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x51cec0
movsd xmm0, qword [0x6b94a8]
lea eax, [esp + 0x98]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005d2d80
add esp, 0x10
call fcn.005d2f50
test eax, eax
je 0x51cea0
lea eax, [esp + 0xd8]
mov byte [esp + 0xd8], 0
push 0x100
push eax
call fcn.005d3880
add esp, 8
cmp byte [esp + 0xd8], 0
pop edi
pop esi
pop ebp
je 0x51d039
lea eax, [esp + 0xcc]
push 0x400
push eax
call fcn.005d3a40
add esp, 8
call fcn.005d2f50
test eax, eax
jne 0x51ce59
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x1c]
call fcn.0050a640
add esp, 8
call fcn.005d2f50
mov ecx, dword [esp + 0x1cc]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.0048a267
add esp, 0x1cc
ret
Function at 0x521b90
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 [0x75d958]
mov edi, eax
add esp, 8
test edi, edi
je 0x521b67
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 0x521b7f
cmp esi, ebx
je 0x521b7f
cmp esi, 0x8000
ja 0x521b7f
cmp esi, ebx
jb 0x521b78
push esi
push edi
call dword [0x75d958]
mov edi, eax
add esp, 8
test edi, edi
jne 0x521b30
push ebp
call dword [0x75d954]
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 [0x75d954]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x521b10

Function at 0x5247b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5247fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0050a560
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.005240b0
add esp, 0x10
pop edi
pop esi
pop ebx
ret