joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b20
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x409b62
mov dword [esi + 0x74], 2
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp word [edi + 8], 2
je 0x409b84
pop edi
mov dword [esi + 0x74], 3
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x58], 0x10
movzx eax, ax
mov word [ebp - 0x102], ax
mov word [ebp - 0x104], 0x104
mov eax, dword [edi + 0xc]
mov edi, dword [esi + 0x54]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x100], eax
lea eax, [esi + 0x44]
jb 0x409bbb
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0056f220
lea eax, [edi + 8]
add esp, 0xc
cmp eax, 0x100
jae 0x409c5f
mov ecx, dword [esi + 8]
mov byte [ebp + eax - 0x104], 0
cmp ecx, 0xffffffff
je 0x409c06
push 0
lea eax, [edi + 9]
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x409b4e
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x409b4e
push 0
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 8
jne 0x409b4e
cmp byte [ebp - 0x104], 0
jne 0x409b4e
mov al, byte [ebp - 0x103]
cmp al, 0x5a
jne 0x409b4e
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
call fcn.0056948c
int3
Function at 0x409c70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push dword [ebp + 0xc]
mov word [ebp - 0x104], 0x104
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebx + 0x58], 0x10
mov edi, dword [ebx + 0x54]
mov word [ebp - 0x102], ax
lea eax, [ebx + 0x44]
mov word [ebp - 0xff], 0
mov byte [ebp - 0x100], 0
mov byte [ebp - 0xfd], 1
jb 0x409cc9
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0056f220
lea eax, [edi + 8]
add esp, 0xc
cmp eax, 0x100
jae 0x409dca
mov ecx, esi
mov byte [ebp + eax - 0x104], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409cf5
sub ecx, edx
lea eax, [ebp - 0xfb]
push ecx
add eax, edi
push esi
push eax
call fcn.0056f220
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d16
sub ecx, edx
lea eax, [edi + 9]
add eax, ecx
cmp eax, 0x100
jae 0x409dca
mov byte [ebp + eax - 0x104], 0
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x409d40
sub esi, ecx
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x409d80
push 0
lea eax, [edi + 0xa]
add eax, esi
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x409d80
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x409d6b
push 0
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 8
jne 0x409d6b
cmp byte [ebp - 0x104], 0
jne 0x409d6b
mov al, byte [ebp - 0x103]
cmp al, 0x5a
jne 0x409d6b
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
call fcn.0056948c
int3
Function at 0x409dd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov word [ebp - 0x108], 0x105
mov byte [ebp - 0x106], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x409e2c
push 0
push 3
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x409e2c
mov dword [esi + 0x74], 0x300
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x409fef
push 0
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jne 0x409fef
cmp byte [ebp - 0x104], 5
je 0x409e77
mov dword [esi + 0x74], 0x500
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x103]
cmp al, 0xff
jne 0x409e99
mov dword [esi + 0x74], 0x600
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
test al, al
je 0x409fde
cmp al, 1
je 0x409fc6
cmp al, 2
je 0x409ec5
mov dword [esi + 0x74], 0x700
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x58], 0x10
mov al, byte [esi + 0x54]
mov byte [ebp - 0x103], al
lea eax, [esi + 0x44]
push ebx
push edi
mov edi, dword [esi + 0x54]
mov byte [ebp - 0x104], 1
jb 0x409ee5
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x102]
push eax
call fcn.0056f220
mov al, byte [esi + 0x6c]
add esp, 0xc
mov ebx, dword [esi + 0x6c]
mov byte [ebp + edi - 0x102], al
lea eax, [esi + 0x5c]
add edi, 3
cmp dword [eax + 0x14], 0x10
jb 0x409f11
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x104]
add eax, edi
push eax
call fcn.0056f220
add esp, 0xc
lea eax, [ebx + edi]
mov ecx, esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00405110
pop edi
pop ebx
test eax, eax
jne 0x409f54
add dword [esi + 0x74], 0x900
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.00405140
cmp eax, 2
je 0x409f84
mov dword [esi + 0x74], 0xa00
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x104], 1
je 0x409fa5
mov dword [esi + 0x74], 0xb00
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x103], 0
je 0x409fde
mov dword [esi + 0x74], 0xc00
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x74], 0x800
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
mov dword [esi + 0x74], 0x400
xor ecx, ebp
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
Function at 0x40a620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590278
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5f9e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x30]
call fcn.00404e90
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], vtable.base_hash_obj_unsigned_int_.0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push 0xa
call dword [eax]
add eax, 8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [esi + eax*8]
call fcn.0040a7f0
mov eax, dword [esi + 0x38]
dec dword [eax + 0xc]
mov eax, dword [esi + 0x38]
cmp dword [eax + 0xc], 0
jle 0x40a695
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x40a6b6
mov dword [eax + 8], 0
mov eax, dword [esi + 0x38]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jle 0x40a6b6
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40aac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59031e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f9e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [0x605358], 0
jne 0x40ab25
push 0x68
call fcn.00427083
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40ab17
mov ecx, eax
call fcn.004090e0
jmp 0x40ab19
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x605358], eax
cmp dword [0x605354], 0
jne 0x40ab5d
push 0x2c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40ab4f
mov ecx, eax
call fcn.00408430
jmp 0x40ab51
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x605354], eax
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebx + 0xec]
mov dword [ebx + 0x128], ebx
mov dword [ebx + 0x224], eax
add ebx, 0x1f8
push dword [ebx + 0x38]
lea esi, [ebx + 0x30]
call edi
push esi
push 0
push ebx
push 0x40bd70
push 0
push 0
call fcn.00577ea6
mov ebx, dword [ebp - 0x10]
add esp, 0x18
add ebx, 0x194
mov dword [esi + 4], eax
lea esi, [ebx + 0x3c]
push dword [esi + 8]
call edi
push esi
push 0
push ebx
push 0x40c3b0
push 0
push 0
call fcn.00577ea6
mov dword [esi + 4], eax
add esp, 0x18
mov esi, dword [ebp - 0x10]
lea eax, [esi + 0x1f8]
mov dword [esi + 0x190], ebx
lea edi, [esi + 0x10]
mov dword [esi + 0x18c], eax
mov ecx, edi
call fcn.0040cb30
test al, al
jne 0x40abfb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0xe4], esi
lea eax, [esi + 0x17c]
mov dword [esi + 0xe8], eax
sub esp, 8
mov dword [esi + 4], edi
mov ecx, edi
mov edx, dword [esi + 0xe8]
mov dword [edx + 4], edi
mov dword [edi + 0x14], 0x40b710
mov eax, dword [edx + 4]
mov dword [eax + 0x1c], edx
call fcn.0040cba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40add0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi], vtable.CUDPProxySocket.0
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x40ae37
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x9c], 0xffffffff
mov byte [esi + 0x98], 1
test eax, eax
je 0x40ae20
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x40ae37
push eax
call edi
mov dword [esi + 0xa0], 0
mov byte [esi + 0xac], 8
mov byte [esi + 0xb4], 0
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x94], vtable.base_sock.0
cmp eax, 0xffffffff
je 0x40ae89
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xa0]
mov dword [esi + 0x9c], 0xffffffff
mov byte [esi + 0x98], 1
test eax, eax
je 0x40ae89
push eax
call edi
mov dword [esi + 0xa0], 0
mov eax, dword [esi + 0x90]
lea edi, [esi + 0x7c]
cmp eax, 0x10
jb 0x40aea2
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004023e0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40aeb8
mov edi, dword [edi]
mov byte [edi], 0
mov ecx, esi
pop edi
pop esi
jmp fcn.00409330

Function at 0x40aed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590348
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x38]
push eax
call fcn.00405270
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
cmp byte [esi + 0x25], 0
movzx ebx, ax
je 0x40afbd
cmp dword [esi + 0x40], 0x10
lea eax, [esi + 0x2c]
jb 0x40af46
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov eax, 2
mov word [ebp - 0x20], ax
movzx eax, word [esi + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push ecx
push 6
lea ecx, [esi + 0x94]
mov word [ebp - 0x1e], ax
call fcn.00406120
test al, al
je 0x40afb9
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x94]
call fcn.004061e0
test al, al
je 0x40afb9
cmp byte [esi + 0x26], 5
jne 0x40afb9
mov ecx, esi
call fcn.0040b4b0
test al, al
je 0x40afb9
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push ebx
cmovae eax, dword [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0040b2d0
mov bl, al
mov byte [esi + 0x24], bl
jmp 0x40afbf
xor bl, bl
jmp 0x40afbf
mov bl, 1
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x40afd4
inc ecx
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.004023e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
Function at 0x40b000
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x40b078
mov word [esi + 0x24], 0
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x40b06a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x9c], 0xffffffff
mov byte [esi + 0x98], 1
test eax, eax
je 0x40b04f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x40b06a
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xa0], 0
mov byte [esi + 0xac], 8
mov byte [esi + 0xb4], 0
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x608
mov eax, dword [0x5f9e74]
xor eax, esp
mov dword [esp + 0x604], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x25], 0
je 0x40b157
cmp byte [esi + 0x24], 0
je 0x40b157
push eax
mov dword [esp + 0x2c], 0x1000000
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0xc]
mov edx, 0x5d8
push 4
push eax
call fcn.00407f20
add esp, 8
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], eax
mov edx, 0x5d4
lea eax, [esp + 0xc]
push 2
push eax
call fcn.00407f20
push dword [ebp + 0xc]
mov edx, 0x5d2
lea ecx, [esp + 0x3e]
push edi
call fcn.00407f20
lea ecx, [esi + 0x7c]
add esp, 0x10
cmp dword [ecx + 0x14], 0x10
jb 0x40b128
mov ecx, dword [ecx]
movzx eax, word [esi + 0x7a]
push eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xa
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00405170
pop edi
pop esi
mov ecx, dword [esp + 0x604]
xor ecx, esp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 0x10
xorps xmm0, xmm0
mov ecx, 2
movaps xmmword [esp + 0x10], xmm0
push eax
mov word [esp + 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x14]
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x60c]
pop edi
pop esi
xor ecx, esp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b2d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov edi, ecx
mov dword [ebp - 0x208], 0x1000305
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x204]
lea eax, [ebp - 0x224]
mov edx, 5
push 4
push eax
call fcn.00407f20
add esp, 8
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x200], ax
mov eax, dword [edi + 0x9c]
cmp eax, 0xffffffff
je 0x40b48d
push 0
push 0xa
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x40b48d
mov eax, dword [edi + 0x9c]
cmp eax, 0xffffffff
je 0x40b472
push 0
push 0x200
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40b472
cmp eax, 0xa
jge 0x40b3a2
mov dword [edi + 0x74], 0xf00
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x208], 5
jne 0x40b457
cmp byte [ebp - 0x206], 0
jne 0x40b457
cmp byte [ebp - 0x207], 0
jne 0x40b494
mov al, byte [ebp - 0x205]
mov byte [edi + 0x79], al
cmp al, 3
jne 0x40b40f
movzx esi, byte [ebp - 0x204]
lea eax, [ebp - 0x203]
push esi
push eax
lea ecx, [ebp - 0x220]
call fcn.00403420
push eax
lea ecx, [edi + 0x7c]
call fcn.00401f60
lea ecx, [ebp - 0x220]
call fcn.00401f20
movzx eax, word [ebp + esi - 0x203]
push eax
jmp 0x40b435
cmp al, 1
jne 0x40b443
push dword [ebp - 0x204]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [edi + 0x7c]
call fcn.00401ee0
mov ax, word [ebp - 0x200]
push dword [ebp - 0x200]
mov word [edi + 0x7a], ax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 0x7a], ax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x74], 0x1000
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
add dword [edi + 0x74], 0x1b00
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
add dword [edi + 0x74], 0x1a00
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
Function at 0x40ca30
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x40ca79
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x14]
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 8], 1
test eax, eax
je 0x40ca64
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40ca79
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x10], 0
mov byte [esi + 0x1c], 8
mov byte [esi + 0x24], 0
mov eax, dword [esi + 0xd8]
mov dword [eax + 4], 0
mov eax, dword [esi + 0xdc]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
cmp byte [esi + 0xbc], 0
je 0x40cab8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [esi + 0xbc], 0
mov al, 1
pop esi
ret

Function at 0x40cba0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5904b7
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xb8], 0
jne 0x40cbdd
xor al, al
jmp 0x40cce4
push ecx
push 0x11
call fcn.00406120
cmp byte [esi + 0x25], 0
mov bl, al
je 0x40cbf9
cmp byte [esi + 0x24], 0
je 0x40cbf9
movzx eax, word [esi + 0x7a]
jmp 0x40cc1d
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov word [esi + 0xba], ax
test bl, bl
je 0x40cbd6
push ecx
mov ecx, esi
call fcn.00405090
test al, al
je 0x40cbd6
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0040cd10
mov edi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x25], 0
je 0x40cc5a
cmp byte [esi + 0x24], 0
je 0x40cc5a
movzx esi, word [esi + 0x7a]
jmp 0x40cc7e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
cmp dword [edi + 0x14], 0x10
jb 0x40cc86
mov edi, dword [edi]
mov ecx, dword [0x605350]
test ecx, ecx
jne 0x40ccb8
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40ccb0
mov ecx, eax
call fcn.004048d0
mov ecx, eax
jmp 0x40ccb2
xor ecx, ecx
mov dword [0x605350], ecx
movzx eax, si
push eax
push edi
push str.ip:_s_port_d_n
push 1
push ecx
call fcn.00404c70
mov eax, dword [ebp - 0x24]
add esp, 0x14
cmp eax, 0x10
jb 0x40cce2
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.004023e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
Function at 0x40e9d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590603
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f9e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x60535c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x60535c
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5d3500
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0040d750
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41386b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x413927
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
sub edi, 1
jne 0x413880
pop edi
test esi, esi
je 0x41394a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4270]
sub esi, 1
jne 0x413930
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x414060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4140a3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414095
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4140b4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0056f220
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret