joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cfad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x8234cc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x8234c8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [0x83078c]
jb 0x4cfb1b
ja 0x4cfb11
cmp eax, dword [0x830788]
jbe 0x4cfb1b
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x830724], cl
je 0x4cfc34
cmp dword [0x8234d4], 0xffffffff
je 0x4cfc34
mov eax, dword [0x830780]
or eax, dword [0x830784]
je 0x4cfc34
push 0x830608
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
push esi
push dword [0x830780]
call fcn.005789a0
mov eax, dword [0x8234cc]
add esp, 0xc
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x8234d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cfbb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4cfbb8
push 0x830608
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4cfbdd
push eax
push dword [0x8234c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4cfbfe
push dword [0x8234d4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x830608
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x8234d4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4cfbe9
mov esi, dword [ebp - 4]
neg esi
push 0x830608
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d00d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x8234d4], 0xffffffff
je 0x4d014f
cmp dword [0x8234d8], 0xffffffff
jne 0x4d014f
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d014f
push dword [0x8234c8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x8304e0], eax
call esi
push dword [0x8234c4]
call esi
push dword [0x8234c0]
call esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4d0db0
push 0
push 0
call fcn.005adc9b
add esp, 0x18
test eax, eax
jne 0x4d0164
push dword [0x8234c4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x8234d8], 0xffffffff
push 0x8305f0
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [0x8234c0]
mov dword [0x8234d8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8305f0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f2706
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4f272a
cmp dword [esi + 8], edi
jge 0x4f2722
push esi
call fcn.004ef288
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4f2753
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4f2736
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4f276d
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4f275e
xor dl, dl
jmp 0x4f2763
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4f2755
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4f27a1
mov dword [0x831138], str.zlib_corrupt
xor eax, eax
jmp 0x4f27e3
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4f27b6
mov dword [0x831138], str.read_past_buffer
jmp 0x4f279d
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4f27cd
push edi
push esi
call fcn.004f5067
pop ecx
pop ecx
test eax, eax
je 0x4f279d
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005789a0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4fd480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.00405580
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4fd4af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4fd4af
xor al, al
jmp 0x4fd4b1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x502720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x82384c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x502745
xor eax, eax
jmp 0x5027cd
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x502760
mov dword [ebp - 0x10], 0x400000
jmp 0x502766
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x5027bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5027cd
cmp dword [ebp - 8], 0
jne 0x5027c5
jmp 0x5027cb
cmp dword [ebp - 0xc], 0
ja 0x50274e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb522
mov esp, ebp
pop ebp
ret

Function at 0x5028b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x82384c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x5028d5
xor eax, eax
jmp 0x50295d
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x5028f0
mov dword [ebp - 0x10], 0x400000
jmp 0x5028f6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x50294d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x50295d
cmp dword [ebp - 8], 0
jne 0x502955
jmp 0x50295b
cmp dword [ebp - 0xc], 0
ja 0x5028de
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb522
mov esp, ebp
pop ebp
ret
Function at 0x5029e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x5029f8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x502a4a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x502a19
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x502a3b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x502a10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x845820], ecx
jmp 0x5029ef
mov dword [ebp - 4], 0x100
jmp 0x502a5c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x502a94
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x845420]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x845820]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x845820], eax
jmp 0x502a53
mov dword [0x847828], 0x5044c0
mov dword [0x847820], 0x5044c0
mov dword [0x847824], 0x5045d0
call fcn.00504160
test eax, eax
jne 0x502ac5
mov dword [0x847820], 0x5045d0
mov esp, ebp
pop ebp
ret
Function at 0x505630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffc
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 4
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jb 0x50566a
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 8]
jmp 0x505750
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 1
imul ecx, eax, 0xfffffffc
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x40
jne 0x50569e
mov ecx, 1
imul edx, ecx, 0xfffffffd
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
and ecx, 0xc0
je 0x5056c8
mov edx, 1
imul eax, edx, 0xfffffffc
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
cmp edx, 0x7f
jne 0x5056ca
mov eax, 1
imul ecx, eax, 0xfffffffd
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xc0
jl 0x5056ca
jmp 0x5056cc
jmp 0x505657
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 4]
bswap edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x5056f7
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
jmp 0x505708
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0x1ffffff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 0x1000000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor eax, 0xff000000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x40000000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
bswap eax
mov ecx, dword [ebp - 8]
mov dword [ecx - 4], eax
jmp 0x505657
mov esp, ebp
pop ebp
ret
Function at 0x51edc0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x51ee04
push esi
push 1
push edi
call fcn.0050f070
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0050f070
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x51ee3d
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x7667b8
push 2
push eax
call fcn.005a9a03
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.005a9a03
add esp, 0x20
xor eax, eax
pop edi
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x82384c]
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.0051f740
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 0x51f29f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x51f26d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x51f29f
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0054c000
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0051ee50
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.004fb522
add esp, 0x104
ret

Function at 0x51f740
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 0x51f7f8
cmp dword [ebx + ecx*4 + 0x438], 0x51f110
jne 0x51f7f8
cmp dword [esi], 0
je 0x51f78c
test edi, edi
je 0x51f7f8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0052d5f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x51f7f8
test al, 1
je 0x51f7f8
cmp dword [esi], 0
jne 0x51f7e1
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x823874]
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 0x51f7e1
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 0x51f7f8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5205d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x82384c]
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 0x52080a
cmp byte [esi + 0x516], 0
jne 0x52080a
cmp byte [esi + 0x529], 0
jne 0x52080a
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 0x520681
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0054c000
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0051ee50
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fb522
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.005796b0
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 0x5206f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0054c000
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0051ee50
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fb522
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.0051f800
add esp, 0x10
test al, al
jne 0x520766
call fcn.0059615b
mov esi, eax
call fcn.0059615b
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0054c000
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0051ee50
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fb522
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.0051f800
add esp, 0x10
test al, al
jne 0x52080a
call fcn.0059615b
mov esi, eax
call fcn.0059615b
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0054c000
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0051ee50
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fb522
add esp, 0x20c
ret
push esi
call fcn.00520210
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fb522
add esp, 0x20c
ret
Function at 0x5217a0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x766c2c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x5217ba
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x766c40
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x766c50
push esi
call fcn.005b649f
add esp, 8
test eax, eax
je 0x521802
test ebp, ebp
je 0x5217f3
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 0x521828
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x521828
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 0x5218f7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x521845
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x823874]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5218ed
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5218ed
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x521886
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 0x5218a1
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 0x5218b5
test ebp, ebp
je 0x5218e4
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x823878]
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 [0x823878]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x5262d0
Capabilities:
Create udp socket

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

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x526cd6
mov dword [esp + 4], eax
jmp fcn.0054e3f0
mov dword [esp + 4], eax
jmp fcn.005142f0
Function at 0x52bda0
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 [0x82384c]
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 0x52bf85
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 0x52bf73
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x52bf73
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 0x52bf73
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x52bf73
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x52bf73
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x52bf73
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x52bf73
push ebx
push 0x7f2264
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0052ece0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x52bed1
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 0x52bf73
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 0x52bf73
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x52bf26
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x52bf2b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x52bf15
cmp esi, 0xfffffffc
je 0x52bf58
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x52bf73
cmp esi, 0xfffffffd
je 0x52bf58
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x52bf73
cmp esi, 0xfffffffe
je 0x52bf58
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x52bf73
cmp esi, 0xffffffff
je 0x52bf58
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x52bf73
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.004fb522
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.004fb522
add esp, 0x34
ret