joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c490
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x1002c4c3
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1002c4c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.1002c470
xor eax, eax
ret
mov eax, 1
ret

Function at 0x1002c9d0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10068cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x1002ca16
mov eax, 0x8009
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
lea esi, [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebx
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [edi + 0x140]
cmp ecx, ebx
je 0x1002ca9f
cmp dword [0x10084e1c], ebx
je 0x1002ca9f
push 1
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1002ca9f
lea esp, [esp]
mov eax, dword [0x10084e1c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x1002ca70
cmp dword [edi + 8], 1
jne 0x1002cb24
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1002cb1d
cmp dword [edi + 0xc], ebx
je 0x1002cae8
call fcn.1003c930
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [edi + 4]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
push ebx
push ebx
push ebx
push 0x4004667f
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x1002cb0c
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x24], 1
mov word [esp + 0x26], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x10085e20], ebx
jne 0x1002cb31
call fcn.1002c760
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], ebx
je 0x1002cb53
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x1002cdc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret

Function at 0x1002cdf0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, dword [0x10084e1c]
push esi
mov esi, eax
mov eax, 1
add ebp, 0x70
call fcn.1002c490
test eax, eax
jne 0x1002ce10
pop esi
xor eax, eax
pop ebp
ret
test ebx, ebx
je 0x1002ce21
mov eax, dword [esi + 4]
push 0x10
push ebx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 4]
push 0x10
push edi
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1002ce0b
cmp dword [ebp + 4], 1
jne 0x1002ce42
call fcn.1003c930
test eax, eax
je 0x1002ce0b
call fcn.1002cc80
test eax, eax
je 0x1002ce0b
call fcn.1002cb70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x12c], eax
mov edx, dword [edi]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 4]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x5c], edx
pop esi
mov eax, 1
pop ebp
ret

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

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x1002d951
sub eax, 1
jne 0x1002d95b
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x1002d94a
mov eax, 6
pop esi
pop ecx
ret
call fcn.1002bee0
jmp 0x1002d95b
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1002d9e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x1002d9a3
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x1002d9c9
cmp eax, 8
je 0x1002d9c9
cmp eax, 0x2747
je 0x1002d9c9
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.1001e9a0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
Function at 0x1002e020
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x1002e042
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x1002e05d
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.10046c50
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.1002bee0
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x1002e0cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1002e0cc
cmp eax, 0x2733
je 0x1002e0c3
cmp eax, 8
je 0x1002e0c3
cmp eax, 0x2747
je 0x1002e0c3
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x1002ec00
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
call fcn.1002c490
test eax, eax
jne 0x1002ec16
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1002ec0f
mov dword [esi + 0x50], bind
mov dword [0x10085e3c], 0
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x100305c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1006d8fd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.IFile.0
xor ebx, ebx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x24]
lea eax, [esi + 0x30]
push ecx
push eax
mov dword [esp + 0x18], eax
call fcn.100347f0
mov byte [esp + 0x1c], 2
lea edx, [esi + 0x58]
push edx
call fcn.10028a90
mov byte [esp + 0x1c], 3
or eax, 0xffffffff
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x10030660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006c7ad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.10030970
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.10019210
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea eax, [esi + 0x30]
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], bl
push eax
call fcn.10033140
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x100306dc
mov eax, dword [esi + 0x18]
push eax
call fcn.100446e8
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x10030bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006d883
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
lea edi, [ebx + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
xor esi, esi
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
call eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], esi
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x10]
lea esi, [ebx + 0x30]
push edx
call fcn.10034880
mov edx, dword [esp + 0xc]
test edx, edx
mov ecx, dword [ebx + 0x38]
lea eax, [ebx + 0x34]
je 0x10030d3f
cmp edx, eax
jne 0x10030d3f
cmp dword [esp + 0x10], ecx
sete al
test al, al
sete al
test al, al
je 0x10030cb8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x1c], 0
je 0x10030ca1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 4
call fcn.10044b88
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x10030cd7
mov dword [eax], 0
jmp 0x10030cd9
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
mov dword [eax], 0
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x18], ecx
call fcn.100331e0
add dword [ebx + 0x94], 1
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x1c], 0
je 0x10030d29
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.10035ef0
int3
Function at 0x10031a50
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x1006e7a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
lea esi, [ebx + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
xor edi, edi
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
call eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.10031050
mov edi, eax
test edi, edi
je 0x10031aca
mov dword [esp + 0x28], 0xffffffff
jmp 0x10031bc1
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
test eax, eax
jne 0x10031bae
mov eax, dword [ebx + 4]
cmp eax, 1
jne 0x10031af0
mov ecx, 0x40000000
lea edx, [eax + 1]
lea edi, [eax + 0x7f]
jmp 0x10031aff
mov ecx, bind
mov edx, 3
mov edi, 0x8000000
cmp dword [ebp + 0x18], 0x10
jb 0x10031b0a
mov eax, dword [ebp + 4]
jmp 0x10031b0d
lea eax, [ebp + 4]
push 0
push edi
push edx
push 0
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebp, 0xffffffff
cmp eax, ebp
mov dword [ebx + 0x98], eax
jne 0x10031b53
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x1c], 0
je 0x10031b49
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffff3
jmp 0x10031bde
cmp dword [ebx + 4], 1
push 0
jne 0x10031b8c
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ecx
push eax
mov dword [ebx + 0x10], ecx
call edi
mov eax, dword [ebx + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebx + 0x98]
push 0
push 0
push 0
push ecx
call edi
jmp 0x10031bb1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x10031bb1
mov dword [esp + 0x28], ebp
lea esi, [esp + 0x14]
call fcn.10019190
mov eax, 0xfffffffd
jmp 0x10031bde
or ebp, 0xffffffff
mov edx, dword [esp + 0x38]
push edx
call fcn.10030bf0
mov edi, eax
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x1c], 0
je 0x10031bdc
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc

Function at 0x10031c50
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, ecx
jne 0x10031c63
pop edi
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
call fcn.10031c00
test eax, eax
je 0x10031c5c
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x98]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
call fcn.10031c30
mov eax, dword [esp + 0x14]
pop edi
pop esi
ret 0xc
Function at 0x10031cb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10031cbb
ret 0xc
mov ecx, dword [ecx + 0x98]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0xc]
ret 0xc
Function at 0x10031f90
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x1006e778
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
lea esi, [ebx + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
xor edi, edi
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
call eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.10031050
mov edi, eax
test edi, edi
je 0x1003200a
mov dword [esp + 0x28], 0xffffffff
jmp 0x10032166
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
test eax, eax
jne 0x10032153
mov eax, dword [ebx + 4]
cmp eax, 1
jne 0x1003203a
mov edi, 4
mov eax, 0x10000000
mov dword [esp + 0x30], 2
lea ecx, [edi + 0x7c]
jmp 0x10032051
mov eax, bind
mov edi, 2
mov dword [esp + 0x30], 4
mov ecx, 0x8000000
cmp dword [ebp + 0x18], 0x10
jb 0x1003205c
mov edx, dword [ebp + 4]
jmp 0x1003205f
lea edx, [ebp + 4]
push 0
push ecx
push 4
push 0
push 1
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebp, 0xffffffff
cmp eax, ebp
mov dword [ebx + 0x98], eax
jne 0x100320a6
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x1c], 0
je 0x1003209c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffff3
jmp 0x10032183
cmp dword [ebx + 4], 1
jne 0x100320fd
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x98]
push 0
push ecx
push 0
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 0x9c], eax
jne 0x10032121
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x1c], eax
je 0x100320f3
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffffc
jmp 0x10032183
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x100320b3
mov dword [esp + 0x28], ebp
lea esi, [esp + 0x14]
call fcn.10019190
mov eax, 0xfffffffd
jmp 0x10032183
mov ecx, dword [esp + 0x30]
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x1003214b
mov dword [esp + 0x28], ebp
lea esi, [esp + 0x14]
call fcn.10019190
mov eax, 0xfffffffb
jmp 0x10032183
mov dword [ebx + 0xa0], eax
jmp 0x10032156
or ebp, 0xffffffff
mov edx, dword [esp + 0x38]
push edx
call fcn.10030bf0
mov edi, eax
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x1c], 0
je 0x10032181
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x10032aa0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006d658
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100810a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea edi, [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
xor esi, esi
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
call eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], esi
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea esi, [ebx + 0x40]
call fcn.10034df0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x48]
add ebx, 0x44
test edx, edx
je 0x10032bc5
cmp edx, ebx
jne 0x10032bc5
mov ecx, dword [esp + 0x14]
cmp ecx, eax
sete al
test al, al
je 0x10032b7e
mov eax, dword [ebp + 8]
push eax
push str.CFileSystem::GetFile____
push 0x1000000
call fcn.1001e9a0
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0
je 0x10032b67
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, dword [edx + 4]
jne 0x10032b88
call fcn.100365d0
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0
je 0x10032bae
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10035120
int3

Function at 0x100393a0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x100393c5
test esi, esi
je 0x100393c0
cmp esi, dword [esp + 0x1c]
je 0x100393c5
call fcn.100445ea
cmp edi, dword [esp + 0x20]
je 0x10039431
cmp esi, 0xfffffffe
mov ebx, edi
je 0x100393f7
test esi, esi
jne 0x100393db
call fcn.100445ea
cmp dword [esi + 0x18], 0x10
jb 0x100393e6
mov eax, dword [esi + 4]
jmp 0x100393e9
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x100393f7
call fcn.100445ab
add edi, 1
cmp esi, 0xfffffffe
je 0x10039424
test esi, esi
jne 0x10039408
call fcn.100445ea
cmp dword [esi + 0x18], 0x10
jb 0x10039413
mov eax, dword [esi + 4]
jmp 0x10039416
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x10039424
call fcn.100445ab
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x100393b1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x1003ad60
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x1003ada5
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1003ada5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
pop esi
xor eax, eax
pop ebp
ret 4
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x1003ade3
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x1003ae1b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.1003b050
test eax, eax
je 0x1003ad9e
mov eax, esi
call fcn.1003b080
pop esi
mov eax, 1
pop ebp
ret 4

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

Disassembly:
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0x8c]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [edi + 0x50]
jne 0x1003b75f
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x1003b77a
sub eax, ecx
push ebx
mov ebx, eax
mov eax, dword [esi + 0x34]
push ebx
add ecx, eax
push ecx
push eax
call fcn.10046c50
add esp, 0xc
mov dword [esi + 0x38], ebx
xor ebp, ebp
pop ebx
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.1002bee0
push ebp
push esi
lea eax, [edi + 0xc8]
push eax
mov dword [eax], 0x10
lea edx, [edi + 0xb8]
push edx
mov edx, dword [edi + 0x70]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 4]
push edx
lea eax, [edi + 0x74]
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x1003b7f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1003b7f7
cmp eax, 0x2733
je 0x1003b7ee
cmp eax, 8
je 0x1003b7ee
cmp eax, 0x2747
je 0x1003b7ee
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x1003ba90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x1003baa3
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x1003bada
push edi
mov edi, dword [ecx]
shl edi, 8
movzx edx, byte [esi]
mov eax, dword [ecx + 4]
xor edx, eax
and edx, 0xff
add edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x10085e48]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x1003bab4
pop edi
movzx edx, word [ecx + 6]
movzx ecx, word [ecx + 4]
push ebx
mov bl, dh
mov al, ch
add al, bl
pop ebx
add al, dl
pop esi
add al, cl
pop ebp
ret 4