joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cb68
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x50e48c]
cmp byte [eax + 0xc], 0
je 0x44ccd5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ccce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50fb34], 0
jne 0x44cbbc
push 0x44ccdc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44cce4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb34], eax
cmp dword [0x4fecf8], 0
jne 0x44ccb7
push 0x44ccf4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4fecf8], eax
cmp dword [0x4fecf8], 0
je 0x44ccb7
push 0x44cd00
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb38], eax
push 0x44cd10
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb3c], eax
push 0x44cd24
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb40], eax
push 0x44cd3c
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb44], eax
push 0x44cd54
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb48], eax
push 0x44cd68
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb4c], eax
push 0x44cd80
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb50], eax
push 0x44cd98
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb54], eax
push 0x44cdb4
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb58], eax
push 0x44cdc0
mov eax, dword [0x4fecf8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x50fb5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ccd5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x450bf8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404c90
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x450c47
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458500
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x458550]
test si, 4
je 0x458514
or bl, 1
test si, 8
je 0x45851e
or bl, 4
test si, 1
je 0x458528
or bl, 8
test si, 2
je 0x458532
or bl, 0x10
test si, 0x10
je 0x45853c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45854b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x458554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45858c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45856d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45857c
or bl, 4
test esi, 0x20000000
je 0x458587
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4585dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00458590
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x45ec70
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45ec82
add esp, 0xfffffff0
call fcn.0040419c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042082c
mov eax, dword [0x50dc18]
mov dword [eax + 4], ebx
mov dword [eax], 0x45f014
mov eax, dword [0x50dc34]
mov dword [eax + 4], ebx
mov dword [eax], 0x45f020
mov eax, ebx
call fcn.0045f02c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417c8c]
call fcn.00403e34
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417c8c]
call fcn.00403e34
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417c8c]
call fcn.00403e34
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417c8c]
call fcn.00403e34
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417c8c]
call fcn.00403e34
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45b444
push eax
push 0
push 0
mov eax, dword [0x50df70]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422344]
call fcn.00423b7c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422344]
call fcn.00423b7c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422344]
call fcn.00423b7c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f47c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f344
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f344
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f344
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45edbf
call fcn.004041f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45f128
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 0x45f2d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f2b4
mov dl, 1
mov eax, dword [0x4180a8]
call fcn.00403e34
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c90
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f2a3
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.0044cec8
test al, al
je 0x45f296
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, 0x45f2e4
lea eax, [ebp - 0x254]
call fcn.0040a9f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f296
xor eax, eax
push ebp
push 0x45f28f
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 0x45f31c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f278
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
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 0x45f278
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f296
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45f199
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c21c
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 0x45f2da
lea eax, [ebp - 0x260]
call fcn.00404c90
ret

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

Disassembly:
push ecx
mov eax, dword [0x50fb80]
cmp byte [eax + 0xa5], 0
jne 0x45fc8d
cmp dword [0x50fb98], 0
jne 0x45fc4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45fbd8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x50fb98], eax
cmp dword [0x50fb94], 0
jne 0x45fc69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x50fb94], eax
cmp dword [0x50fb9c], 0
jne 0x45fc8d
push esp
push 0
push 0
push 0x45fb7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x50fb9c], eax
pop edx
ret
Function at 0x460320
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x50fb80]
cmp dword [eax + 0x30], 0
je 0x4603ca
cmp dword [ebx + 0x94], 0
jne 0x4603c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4602b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4603c4
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 0x46038a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4603c4
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.0041a12c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460399
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460f28
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 0x460f5d
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.00404d80
jmp 0x460f6a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ce4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4620a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4620e5
mov eax, esi
call fcn.00448440
test al, al
je 0x4620e5
mov eax, dword [ebx + 0x84]
call fcn.0044813c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4620e5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044813c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4645c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417204]
call fcn.00405670
xor eax, eax
push ebp
push 0x464704
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fef34], 0
jne 0x464613
mov ecx, dword [0x50da04]
mov dl, 1
mov eax, dword [0x4083e0]
call fcn.0040d9dc
call fcn.00404604
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004036c0
mov eax, ebx
call fcn.0040553c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x464714
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004067e8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040554c
test eax, eax
jle 0x4646ab
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4646a4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404f18
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404f00
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004092e8
test eax, eax
jne 0x4646a4
mov ebx, 0x15
jmp 0x4646b0
mov ebx, 0x10
jmp 0x4646b0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4fef34]
call fcn.00464438
mov eax, dword [ebp - 8]
call fcn.00464438
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46470b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404cb4
lea eax, [ebp - 0x10]
mov edx, dword [0x417204]
call fcn.00405740
ret

Function at 0x46bff8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046bbc4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405150
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46c056
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50df88]
mov dl, 1
mov eax, dword [0x46ba50]
call fcn.0040da18
call fcn.00404604
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46c060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405150
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46c0b8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50e4a4]
mov dl, 1
mov eax, dword [0x46ba50]
call fcn.0040da18
call fcn.00404604
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046bbf4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x480e2c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x480e5a
mov eax, ebx
call fcn.004818e0
cmp dword [ebx + 0x40], 0
je 0x480e53
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x480ecb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x480ebd
cmp dword [ebx + 8], 0
je 0x480e7c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x480e8e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480ebd
cmp dword [ebx + 8], 0
je 0x480e6f
cmp eax, 3
je 0x480ea1
dec eax
jne 0x480e6f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x480e6f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x480e6f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x480ee9
cmp dword [ebx + 0x14], 0xcc
je 0x480ee9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00480ef4
pop ebx
ret

Function at 0x491d00
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 0x491d89
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50fd04
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x491d73
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040d0d8
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, 0x491da0
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x50e214]
mov dl, 1
mov eax, dword [0x491500]
call fcn.0040da18
call fcn.00404604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491d90
lea eax, [ebp - 0x1c]
call fcn.00404c90
ret
Function at 0x492444
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00492360
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040406c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x4924ac
mov eax, ebx
call fcn.00491c44
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49249e
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.0040406c
pop esi
pop ebx
ret

Function at 0x49257c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405150
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004036c0
test ebx, ebx
je 0x4925c7
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 0x4926a4
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 0x4926d5
mov ecx, dword [0x50e014]
mov dl, 1
mov eax, dword [0x491500]
call fcn.0040d9dc
call fcn.00404604
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 0x492702
mov ecx, dword [0x50df14]
mov dl, 1
mov eax, dword [0x491500]
call fcn.0040d9dc
call fcn.00404604
xor eax, eax
push ebp
push 0x49277e
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.0040406c
cmp byte [ebp + 8], 0
je 0x49275a
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.0049260c
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.00492444
jmp 0x492774
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.00491f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49279b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x492988
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.004921f8
xor eax, eax
push ebp
push 0x492af9
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 0x492ae3
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4929d3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4929dd
call fcn.004046b0
jmp 0x492b00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c2f0
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 + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x492ad8
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 0x492a8b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x492a78
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040406c
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.00492940
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x492b0c]
cmp dl, byte [eax + 0x28]
je 0x492adf
call fcn.0040d8f4
jmp 0x492adf
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c310
jmp 0x492adf
cmp ecx, ebx
jge 0x492aa7
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.0041c310
jmp 0x4929dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c2f0
cmp edx, dword [esp + 4]
jne 0x492ac7
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4929dd
push ebp
call fcn.00492940
pop ecx
jmp 0x492adf
push ebp
call fcn.00492940
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492b00
mov eax, dword [ebp - 4]
call fcn.00492204
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492b10
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x492ca8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004921f8
xor edx, edx
push ebp
push 0x492c8b
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x492b61
call fcn.004046b0
jmp 0x492c92
cmp byte [ebp + 8], 0
jne 0x492b7c
push 0
push esi
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
jmp 0x492be9
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
cmp esi, ebx
jle 0x492be9
mov eax, edi
add eax, ebx
push 0
mov edx, esi
sub edx, ebx
push edx
push eax
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 0x492bc0
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x492be9
push 0xa
call sub.kernel32.dll_Sleep
jmp 0x492bc3
add ebx, dword [ebp - 8]
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, 0xea60
jae 0x492be9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x492be5
call fcn.004046b0
jmp 0x492c92
cmp esi, ebx
jg 0x492b8a
cmp dword [ebp - 8], 0xffffffff
jne 0x492c75
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x492c75
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040406c
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 0x492c75
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040d0d8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x492cc4
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x50e214]
mov dl, 1
mov eax, dword [0x491500]
call fcn.0040da18
call fcn.00404604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492c92
mov eax, dword [ebp - 4]
call fcn.00492204
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492caf
lea eax, [ebp - 0x2c]
call fcn.00404c90
ret