joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45cbfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45cbdc
mov dl, 1
mov eax, dword [0x418754]
call fcn.004035c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45cbcb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00449f1c
test al, al
je 0x45cbbe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45cc0c
lea eax, [ebp - 0x254]
call fcn.0040941c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45cbbe
xor eax, eax
push ebp
push 0x45cbb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45cc44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45cba0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040464c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45cba0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040464c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cbbe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45cac1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041cf98
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cc02
lea eax, [ebp - 0x260]
call fcn.004043e4
ret

Function at 0x45d530
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x496c34]
cmp byte [eax + 0xa5], 0
jne 0x45d5a1
cmp dword [0x496c4c], 0
jne 0x45d562
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d4ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x496c4c], eax
cmp dword [0x496c48], 0
jne 0x45d57d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x496c48], eax
cmp dword [0x496c50], 0
jne 0x45d5a1
push esp
push 0
push 0
push 0x45d490
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x496c50], eax
pop edx
ret
Function at 0x45d6c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45d6df
add esp, 0xfffffff0
call fcn.00403958
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422f40
mov eax, dword [0x49542c]
cmp word [eax + 2], 0
jne 0x45d707
mov eax, dword [0x49542c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045eda4
mov eax, dword [0x495528]
cmp word [eax + 2], 0
jne 0x45d721
mov eax, dword [0x495528]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ef9c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4180f0]
call fcn.004035c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4180f0]
call fcn.004035c4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425428]
call fcn.0042cfe0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45d8a8
mov eax, dword [0x4952f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d3b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45f50c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4952f8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cc44
test eax, eax
je 0x45d816
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d78
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc6c
test eax, eax
je 0x45d82a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040464c
mov eax, dword [0x495158]
cmp byte [eax], 0
jne 0x45d85e
mov eax, ebx
call fcn.0045d9d0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045f6e8
mov eax, ebx
call fcn.00460098
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d89e
call fcn.004039b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dc44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x496c34]
cmp dword [eax + 0x30], 0
je 0x45dcee
cmp dword [ebx + 0x94], 0
jne 0x45dce8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45dbd4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45dce8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45dcae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45dce8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a97c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45dcbd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45e7cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45e801
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044d4
jmp 0x45e80e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404438
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45f8c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f905
mov eax, esi
call fcn.00445614
test al, al
je 0x45f905
mov eax, dword [ebx + 0x84]
call fcn.00445310
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f905
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445310
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x466910
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4669e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x496cc8], 0
jne 0x4669cc
lea eax, [ebp - 4]
mov edx, 0x466a00
call fcn.0040447c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404894
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4669cc
mov eax, ebx
call fcn.00402754
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4669c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4669af
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x466a10
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4669af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x496cc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4669cc
mov eax, dword [ebp - 0xc]
call fcn.00402774
ret
mov ebx, dword [0x496cc8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4669ef
lea eax, [ebp - 4]
call fcn.004043e4
ret

Function at 0x473360
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x496cec], 0
jne 0x473383
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4732d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x496cec], eax
ret
Function at 0x47b504
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47b58d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x496efc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47b577
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040b700
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x47b5a4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4955b4]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c050
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b594
lea eax, [ebp - 0x1c]
call fcn.004043e4
ret

Function at 0x47bc58
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0047bb7c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004037f0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x47bcbc
call fcn.0047b44c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x47bcae
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004037f0
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047ba00
xor eax, eax
push ebp
push 0x47bd5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004043e4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x47bd19
call fcn.00403e6c
jmp 0x47bd66
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x47bd49
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.004045d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd66
mov eax, dword [ebp - 4]
call fcn.0047ba0c
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47bf6c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404894
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402e8c
test ebx, ebx
je 0x47bfb7
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x47c094
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47c0c5
mov ecx, dword [0x4956f0]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c014
call fcn.00403dc0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47c0f2
mov ecx, dword [0x495420]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c014
call fcn.00403dc0
xor eax, eax
push ebp
push 0x47c173
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004037f0
cmp byte [ebp + 8], 0
je 0x47c14d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047bffc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047bbd8
jmp 0x47c169
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047b738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47c190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47c19c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47c1cd
mov ecx, dword [0x4954a0]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c014
call fcn.00403dc0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47c1fa
mov ecx, dword [0x495420]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c014
call fcn.00403dc0
xor eax, eax
push ebp
push 0x47c276
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004037f0
cmp byte [ebp + 8], 0
je 0x47c252
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047bffc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0047bc58
jmp 0x47c26c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047b738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47c293
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c474
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047ba00
xor eax, eax
push ebp
push 0x47c5e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x47c5d0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47c4bf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47c4c9
call fcn.00403e6c
jmp 0x47c5ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d048
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x47c5c5
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x47c577
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47c564
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004037f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047c42c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x47c5f8]
cmp dl, byte [eax + 0x28]
je 0x47c5cc
call fcn.0040befc
jmp 0x47c5cc
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d068
jmp 0x47c5cc
cmp ecx, ebx
jge 0x47c593
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d068
jmp 0x47c4c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d048
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d07c
cmp edx, dword [esp + 4]
jne 0x47c5b4
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47c4c9
push ebp
call fcn.0047c42c
pop ecx
jmp 0x47c5cc
push ebp
call fcn.0047c42c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c5ed
mov eax, dword [ebp - 4]
call fcn.0047ba0c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c5fc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c71e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ba00
xor eax, eax
push ebp
push 0x47c701
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47c64c
call fcn.00403e6c
jmp 0x47c708
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47c6eb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47c6eb
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004037f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47c6eb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b700
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47c738
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4955b4]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c050
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c708
mov eax, dword [ebp - 4]
call fcn.0047ba0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c725
lea eax, [ebp - 0x28]
call fcn.004043e4
ret
Function at 0x47c784
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c8ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ba00
xor eax, eax
push ebp
push 0x47c8b1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47c7e9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47c7e9
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x47c89b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47c7fc
call fcn.00403e6c
jmp 0x47c8b8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47c89b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47c89b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004037f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47c89b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b700
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47c8e8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4955b4]
mov dl, 1
mov eax, dword [0x47a668]
call fcn.0040c050
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c8b8
mov eax, dword [ebp - 4]
call fcn.0047ba0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c8d5
lea eax, [ebp - 0x28]
call fcn.004043e4
ret
Function at 0x47e614
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47e6e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xa50]
test eax, eax
je 0x47e643
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x47e6af
xor eax, eax
push ebp
push 0x47e699
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x47e68f
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.0047eab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e6bd
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.0047eab8
mov eax, dword [ebp - 4]
mov dword [ebx + 0x840], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e6ef
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404408
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7fc
mov esi, edx
mov ebx, eax
xor edi, edi
jmp 0x47e97a
test edi, edi
jle 0x47e925
mov ecx, 0x47ea74
mov dl, 1
mov eax, dword [0x407860]
call fcn.0040bf58
call fcn.00403dc0
jmp 0x47e97a
cmp word [ebx + 0xa42], 0
jne 0x47e947
mov ecx, 0x47ea74
mov dl, 1
mov eax, dword [0x407860]
call fcn.0040bf58
call fcn.00403dc0
jmp 0x47e97a
mov byte [esp], 0
mov edx, esp
mov ecx, esi
mov eax, dword [ebx + 0xa44]
call dword [ebx + 0xa40]
cmp byte [esp], 0
jne 0x47e979
mov ecx, 0x47ea74
mov dl, 1
mov eax, dword [0x407860]
call fcn.0040bf58
call fcn.00403dc0
jmp 0x47e97a
inc edi
mov eax, esi
call fcn.0041d07c
cmp edx, 0
jne 0x47e989
cmp eax, 0
je 0x47e909
mov byte [ebx + 0x870], 0
mov eax, ebx
call fcn.0047e784
cmp dword [ebx + 0x848], 0
jne 0x47e9bc
mov ecx, 0x47ea8c
mov dl, 1
mov eax, dword [0x47e08c]
call fcn.0040bf58
call fcn.00403dc0
mov ecx, 0x47eaa8
mov dl, 2
mov eax, ebx
call fcn.0047ec7c
mov word [ebx + 0x844], 2
mov ax, word [ebx + 0x83c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x846], ax
mov edi, 0x10
push 0
push 0
mov eax, esi
call fcn.0041d068
mov eax, esi
call fcn.0041d07c
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x47ea0c
call fcn.00403534
mov ecx, eax
lea edx, [esp + 1]
mov eax, esi
call fcn.0041d274
push edi
lea eax, [ebx + 0x844]
push eax
push 0
mov eax, esi
call fcn.0041d07c
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x47ea38
call fcn.00403534
push eax
lea eax, [esp + 0x11]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0xa32], 0
je 0x47ea62
mov edx, ebx
mov eax, dword [ebx + 0xa34]
call dword [ebx + 0xa30]
add esp, 0x804
pop edi
pop esi
pop ebx
ret