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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45bdec]
cmp byte [eax + 0xc], 0
je 0x43f251
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f24a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45cb94], 0
jne 0x43f138
push 0x43f258
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f260
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb94], eax
cmp dword [0x45abc0], 0
jne 0x43f233
push 0x43f270
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45abc0], eax
cmp dword [0x45abc0], 0
je 0x43f233
push 0x43f27c
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb98], eax
push 0x43f28c
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb9c], eax
push 0x43f2a0
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cba0], eax
push 0x43f2b8
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cba4], eax
push 0x43f2d0
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cba8], eax
push 0x43f2e4
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbac], eax
push 0x43f2fc
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbb0], eax
push 0x43f314
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbb4], eax
push 0x43f330
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbb8], eax
push 0x43f33c
mov eax, dword [0x45abc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f251
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4430dc
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.00403ee8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44312b
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.00404158
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a868
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a8b8]
test si, 4
je 0x44a87c
or bl, 1
test si, 8
je 0x44a886
or bl, 4
test si, 1
je 0x44a890
or bl, 8
test si, 2
je 0x44a89a
or bl, 0x10
test si, 0x10
je 0x44a8a4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a8b3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44a8bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a8f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a8d5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a8e4
or bl, 4
test esi, 0x20000000
je 0x44a8ef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450f9c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450fae
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ce4
mov eax, dword [0x45bab4]
mov dword [eax + 4], ebx
mov dword [eax], 0x451340
mov eax, dword [0x45bac0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45134c
mov eax, ebx
call fcn.00451358
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
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, 0x44d774
push eax
push 0
push 0
mov eax, dword [0x45bc04]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b740]
call fcn.0041ceb4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b740]
call fcn.0041ceb4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b740]
call fcn.0041ceb4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451778
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451654
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451654
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451654
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4510eb
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451438
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 0x4515e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4515c4
mov dl, 1
mov eax, dword [0x411cdc]
call fcn.004030e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ee8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4515b3
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.0043f444
test al, al
je 0x4515a6
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, 0x4515f4
lea eax, [ebp - 0x254]
call fcn.00408c50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4515a6
xor eax, eax
push ebp
push 0x45159f
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 0x45162c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451588
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404158
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 0x451588
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4515a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4514a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041589c
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 0x4515ea
lea eax, [ebp - 0x260]
call fcn.00403ee8
ret

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

Disassembly:
push ecx
mov eax, dword [0x45cbe0]
cmp byte [eax + 0xa5], 0
jne 0x451f89
cmp dword [0x45cbf8], 0
jne 0x451f4a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451ed4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45cbf8], eax
cmp dword [0x45cbf4], 0
jne 0x451f65
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45cbf4], eax
cmp dword [0x45cbfc], 0
jne 0x451f89
push esp
push 0
push 0
push 0x451e78
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45cbfc], eax
pop edx
ret
Function at 0x452080
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452097
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ce4
mov eax, dword [0x45bbf0]
cmp word [eax + 2], 0
jne 0x4520bf
mov eax, dword [0x45bbf0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453770
mov eax, dword [0x45bc9c]
cmp word [eax + 2], 0
jne 0x4520d9
mov eax, dword [0x45bc9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453968
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4118c0]
call fcn.004030e4
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], 0xff000018
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 [0x41c220]
call fcn.00423598
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452260
mov eax, dword [0x45bb14]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423968
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453f08
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45bb14]
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.0040c320
test eax, eax
je 0x4521ce
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408644
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c348
test eax, eax
je 0x4521e2
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.00404158
mov eax, dword [0x45ba08]
cmp byte [eax], 0
jne 0x452216
mov eax, ebx
call fcn.00452388
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.004540e4
mov eax, ebx
call fcn.00454aa8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452256
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452608
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45cbe0]
cmp dword [eax + 0x30], 0
je 0x4526b2
cmp dword [ebx + 0x94], 0
jne 0x4526ac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452598
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4526ac
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 0x452672
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4526ac
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.00413d0c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452681
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453214
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 0x453249
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.00403fd8
jmp 0x453256
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4542c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454301
mov eax, esi
call fcn.0043aa70
test al, al
je 0x454301
mov eax, dword [ebx + 0x84]
call fcn.0043a76c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454301
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a76c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4551ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x455259
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dl, 1
mov eax, dword [0x411fcc]
call fcn.004030e4
mov esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 8]
cdq
push edx
push eax
mov eax, esi
call fcn.004159d0
mov esi, dword [ebx + 0xc]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
call fcn.0041596c
lea eax, [ebp - 4]
mov edx, 0x455270
call fcn.00403f80
mov eax, dword [ebp - 4]
call fcn.004043a8
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455260
lea eax, [ebp - 4]
call fcn.00403ee8
ret
Function at 0x4552f8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
fmul qword [ebp + 8]
call fcn.0040292c
push eax
push 0
push 0x400
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fmul qword [ebp + 8]
call fcn.0040292c
call fcn.00404d0c
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jge 0x455357
mov eax, 0x10000
mov esp, ebp
pop ebp
ret 8

Function at 0x455360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403ee8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.0040cb38
mov eax, ebx
call fcn.00407a84
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x455433
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
call fcn.0040cb38
mov eax, pe_nt_image_headers32
call fcn.00407a84
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x455416
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x455460
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
call fcn.0040cb38
mov eax, dword [ebp - 0xc]
call fcn.00408608
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00403fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45541d
mov eax, dword [ebp - 8]
call fcn.004026ec
ret
Function at 0x456508
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456650
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x456668
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0045779c
mov eax, dword [ebp - 4]
call fcn.00457198
xor edx, edx
push ebp
push 0x456633
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x4565d2
test si, si
jne 0x456578
mov eax, dword [ebp - 8]
call fcn.00408608
mov esi, eax
cmp esi, 0xffff
jbe 0x456578
call fcn.00403054
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4565d2
cmp eax, 0xffffffff
jle 0x4565a7
sub ebx, eax
jmp 0x4565b6
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004576d0
test ebx, ebx
je 0x4565d2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x4565d2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100bd], 0
je 0x45657b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x45661d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10098], 0
mov ecx, 0x456680
mov dl, 1
mov eax, dword [0x4556c0]
call fcn.0040b550
call fcn.004038a0
mov eax, dword [ebp - 4]
cmp word [eax + 0x1010a], 0
je 0x45661d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1010c]
call dword [ebx + 0x10108]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45663a
mov eax, dword [ebp - 4]
call fcn.004571fc
ret
Function at 0x456c84
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x456e2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x456e44
mov dl, 8
mov eax, ebx
call fcn.0045779c
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0041596c
cmp byte [ebx + 0x10098], 0
jne 0x456ddb
xor eax, eax
mov dword [ebx + 0x10094], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x456ce8
call fcn.00403054
mov dword [ebx + 0x100c4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041594c
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x456d16
call fcn.00403054
cmp eax, 0x10000
jle 0x456d22
mov eax, 0x10000
lea edx, [ebx + 0x30]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x456d49
call fcn.00403054
lea eax, [ebx + eax + 0x30]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x456e19
test eax, eax
jle 0x456d89
sub esi, eax
add dword [ebx + 0x10094], eax
cmp word [ebx + 0x100da], 0
je 0x456d97
mov edx, ebx
mov eax, dword [ebx + 0x100dc]
call dword [ebx + 0x100d8]
jmp 0x456d97
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004576d0
mov eax, dword [0x45bc80]
mov eax, dword [eax]
call fcn.004534c4
test esi, esi
je 0x456db0
cmp byte [ebx + 0x10098], 0
je 0x456d35
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041594c
cmp edx, dword [esp + 4]
jne 0x456dca
cmp eax, dword [esp]
pop edx
pop eax
je 0x456ddb
cmp byte [ebx + 0x10098], 0
je 0x456cee
cmp byte [ebx + 0x10098], 0
je 0x456e19
mov byte [ebx + 0x10098], 0
mov ecx, 0x456e58
mov dl, 1
mov eax, dword [0x4556c0]
call fcn.0040b550
call fcn.004038a0
cmp word [ebx + 0x1010a], 0
je 0x456e19
mov edx, ebx
mov eax, dword [ebx + 0x1010c]
call dword [ebx + 0x10108]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456e36
lea eax, [ebp - 0xc]
call fcn.00403ee8
ret
Function at 0x457230
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457339
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x457350
mov dl, 8
mov eax, ebx
call fcn.0045779c
test byte [ebx + 0x1c], 0x10
setne al
xor al, 1
and al, byte [0x45cc14]
je 0x457323
xor eax, eax
push ebp
push 0x457303
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x457299
call fcn.00403054
mov word [ebx + 0x10110], si
mov word [ebp - 4], 0
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xff7f
movzx eax, si
push eax
call sub.wsock32.dll_setsockopt
cmp word [ebx + 0x10110], 0xffff
jne 0x4572de
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004576d0
push 0x3f
push 0x465
mov eax, dword [ebx + 0x10114]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457323
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457340
lea eax, [ebp - 8]
call fcn.00403ee8
ret

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

Disassembly:
push ebx
push esi
mov ebx, eax
mov ecx, 0x4576b8
mov dl, 4
mov eax, ebx
call fcn.0045779c
mov byte [ebx + 0x10118], 0
mov ax, word [ebx + 0x10110]
cmp ax, 0xffff
je 0x4576aa
movzx eax, ax
push eax
call sub.wsock32.dll_closesocket
test byte [ebx + 0x1c], 8
jne 0x457669
cmp word [ebx + 0x1005a], 0
je 0x457669
mov edx, ebx
mov eax, dword [ebx + 0x1005c]
call dword [ebx + 0x10058]
cmp byte [ebx + 0x10099], 0
jne 0x4576aa
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x45768c
call fcn.00403054
mov word [ebx + 0x10110], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10114]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
pop esi
pop ebx
ret
Function at 0x457844
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100b8]
cmp dword [eax + 4], 0
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x457908
push 2
push 1
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10110]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x457895
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.004575c8
jmp 0x457908
test eax, eax
jne 0x457908
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x4578d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10118], 0
je 0x4578c7
mov eax, dword [ebp - 4]
call fcn.00457914
mov eax, dword [ebp - 4]
call fcn.0045761c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4578db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10034]
call fcn.00426160
mov eax, dword [ebp - 4]
cmp word [eax + 0x1005a], 0
je 0x457908
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1005c]
call dword [ebx + 0x10058]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x45791b
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x457968
mov dl, 8
mov eax, ebx
call fcn.0045779c
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret