joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c2a4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43c2c0
cmp dword [esi + 4], 0
je 0x43c2ed
test byte [ebx + 0x55], 1
jne 0x43c2df
mov eax, ebx
call fcn.0043aefc
test eax, eax
jne 0x43c2df
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43c3fd
mov edx, esi
mov eax, ebx
call fcn.0043bdc4
jmp 0x43c3fd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43c3f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e074
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00438ba8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c2a4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e074
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c3fd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442924
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x463cc0]
cmp byte [eax + 0xc], 0
je 0x442a91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442a8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x464be8], 0
jne 0x442978
push 0x442a98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442aa0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464be8], eax
cmp dword [0x462a8c], 0
jne 0x442a73
push 0x442ab0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x462a8c], eax
cmp dword [0x462a8c], 0
je 0x442a73
push 0x442abc
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464bec], eax
push 0x442acc
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464bf0], eax
push 0x442ae0
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464bf4], eax
push 0x442af8
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464bf8], eax
push 0x442b10
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464bfc], eax
push 0x442b24
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464c00], eax
push 0x442b3c
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464c04], eax
push 0x442b54
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464c08], eax
push 0x442b70
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464c0c], eax
push 0x442b7c
mov eax, dword [0x462a8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464c10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442a91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446b5c
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.00404564
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446bab
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.004047cc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e9ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ea3c]
test si, 4
je 0x44ea00
or bl, 1
test si, 8
je 0x44ea0a
or bl, 4
test si, 1
je 0x44ea14
or bl, 8
test si, 2
je 0x44ea1e
or bl, 0x10
test si, 0x10
je 0x44ea28
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ea37
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44ea40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ea78]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ea59
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ea68
or bl, 4
test esi, 0x20000000
je 0x44ea73
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45507c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45508e
add esp, 0xfffffff0
call fcn.00403ad8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c0b8
mov eax, dword [0x4639bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x455420
mov eax, dword [0x4639c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45542c
mov eax, ebx
call fcn.00455438
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
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, 0x451900
push eax
push 0
push 0
mov eax, dword [0x463afc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dad0]
call fcn.0041f1a4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dad0]
call fcn.0041f1a4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dad0]
call fcn.0041f1a4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455858
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455734
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455734
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455734
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4551cb
call fcn.00403b30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455518
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 0x4556c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4556a4
mov dl, 1
mov eax, dword [0x412060]
call fcn.00403744
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404564
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455693
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.00442c84
test al, al
je 0x455686
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, 0x4556d4
lea eax, [ebp - 0x254]
call fcn.00409354
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455686
xor eax, eax
push ebp
push 0x45567f
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 0x45570c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455668
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047cc
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 0x455668
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455686
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455589
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041621c
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 0x4556ca
lea eax, [ebp - 0x260]
call fcn.00404564
ret

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

Disassembly:
push ecx
mov eax, dword [0x464c2c]
cmp byte [eax + 0xa5], 0
jne 0x456069
cmp dword [0x464c44], 0
jne 0x45602a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455fb4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x464c44], eax
cmp dword [0x464c40], 0
jne 0x456045
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x464c40], eax
cmp dword [0x464c48], 0
jne 0x456069
push esp
push 0
push 0
push 0x455f58
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x464c48], eax
pop edx
ret
Function at 0x456160
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456177
add esp, 0xfffffff0
call fcn.00403ad8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c0b8
mov eax, dword [0x463aec]
cmp word [eax + 2], 0
jne 0x45619f
mov eax, dword [0x463aec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004577ac
mov eax, dword [0x463b80]
cmp word [eax + 2], 0
jne 0x4561b9
mov eax, dword [0x463b80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004579a4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403744
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 [0x41e550]
call fcn.00425a14
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456340
mov eax, dword [0x463a18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425de4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457f14
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x463a18]
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.0040ad3c
test eax, eax
je 0x4562ae
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c9c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ad64
test eax, eax
je 0x4562c2
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.004047cc
mov eax, dword [0x463918]
cmp byte [eax], 0
jne 0x4562f6
mov eax, ebx
call fcn.00456468
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.004580f0
mov eax, ebx
call fcn.00458a30
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456336
call fcn.00403b30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4566dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464c2c]
cmp dword [eax + 0x30], 0
je 0x456786
cmp dword [ebx + 0x94], 0
jne 0x456780
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45666c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456780
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 0x456746
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456780
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.0041426c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456755
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457264
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 0x457299
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.00404654
jmp 0x4572a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045b8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4582cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45830d
mov eax, esi
call fcn.0043e378
test al, al
je 0x45830d
mov eax, dword [ebx + 0x84]
call fcn.0043e074
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45830d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e074
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4598f4
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 0x459a30
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x459a48
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0045ae90
mov eax, dword [ebp - 4]
call fcn.0045a720
xor edx, edx
push ebp
push 0x459a13
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x4599b2
test si, si
jne 0x459964
mov eax, dword [ebp - 8]
call fcn.00408c60
mov esi, eax
cmp esi, 0xffff
jbe 0x459964
call fcn.004036b4
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 + 0x10290]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4599b2
cmp eax, 0xffffffff
jle 0x459993
sub ebx, eax
jmp 0x4599a2
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0045adc4
test ebx, ebx
je 0x4599b2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x459967
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x4599fd
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x459a60
mov dl, 1
mov eax, dword [0x458d74]
call fcn.0040a244
call fcn.00403f40
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x4599fd
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a1a
mov eax, dword [ebp - 4]
call fcn.0045a778
ret
Function at 0x459b74
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x459d0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x459d24
lea edx, [ebp - 0xc]
movzx eax, si
call fcn.00408840
push dword [ebp - 0xc]
push 0x459d34
lea eax, [ebp - 8]
mov edx, 3
call fcn.004048dc
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.0045ae90
test si, si
jne 0x459c15
push 2
push 0x10000
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
jne 0x459c04
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, ebx
call fcn.0045adc4
mov eax, dword [ebp - 4]
call fcn.00404564
jmp 0x459c6b
mov esi, eax
cmp esi, 0xffff
jbe 0x459c6b
call fcn.004036b4
jmp 0x459c6b
push 2
push 0x10000
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
movzx edx, si
cmp eax, edx
jge 0x459c6b
test eax, eax
jne 0x459c45
mov eax, dword [ebp - 4]
call fcn.00404564
jmp 0x459cf3
inc eax
jne 0x459c56
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, ebx
call fcn.0045adc4
mov eax, dword [0x463b6c]
mov eax, dword [eax]
call fcn.00457500
cmp byte [ebx + 0x10090], 0
je 0x459c15
cmp byte [ebx + 0x10090], 0
jne 0x459cbe
movzx edi, si
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00404b58
push 0
push edi
mov eax, dword [ebp - 4]
call fcn.00404a6c
mov edx, 1
dec edx
test eax, eax
je 0x459c9b
cmp edx, dword [eax - 4]
jb 0x459ca0
call fcn.004036b4
inc edx
lea eax, [eax + edx - 1]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.00404b58
jmp 0x459cf3
mov byte [ebx + 0x10090], 0
mov ecx, 0x459d40
mov dl, 1
mov eax, dword [0x458d74]
call fcn.0040a244
call fcn.00403f40
cmp word [ebx + 0x1028a], 0
je 0x459cf3
mov edx, ebx
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459d15
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404588
ret
Function at 0x45a140
Capabilities:
Receive data
Receive 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 0x45a2fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x45a314
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0045ae90
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.0045a720
xor eax, eax
push ebp
push 0x45a2df
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x45a241
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x45a27e
test ebx, ebx
jle 0x45a206
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00416530
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x45a1fc
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100c4]
call dword [ebx + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.0045a720
jmp 0x45a230
inc ebx
jne 0x45a230
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x45a27e
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0045adc4
mov eax, dword [0x463b6c]
mov eax, dword [eax]
call fcn.00457500
cmp esi, 0xffffffff
je 0x45a27e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x45a27e
cmp esi, 0xffffffff
je 0x45a198
mov eax, dword [ebp - 8]
call fcn.00416300
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x45a276
cmp eax, dword [esp]
pop edx
pop eax
ja 0x45a198
jmp 0x45a27e
pop edx
pop eax
jg 0x45a198
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x45a2c9
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x45a32c
mov dl, 1
mov eax, dword [0x458d74]
call fcn.0040a244
call fcn.00403f40
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x45a2c9
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a2e6
mov eax, dword [ebp - 4]
call fcn.0045a778
ret
Function at 0x45accc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x45ad98
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x45adac
mov dl, 4
mov eax, ebx
call fcn.0045ae90
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x45ad82
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x45ad74
test byte [ebx + 0x1c], 8
jne 0x45ad31
cmp word [ebx + 0x10052], 0
je 0x45ad31
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x45ad82
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x45ad54
call fcn.004036b4
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x45ad82
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.0045adc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ad9f
lea eax, [ebp - 4]
call fcn.00404564
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x45af74
mov dl, 8
mov eax, ebx
call fcn.0045ae90
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x45af66
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x45eb1c
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 0x45eba5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x464ce0
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45eb8f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004099f0
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, 0x45ebbc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x463bd8]
mov dl, 1
mov eax, dword [0x45e3d0]
call fcn.0040a33c
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ebac
lea eax, [ebp - 0x1c]
call fcn.00404564
ret

Function at 0x45f24c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045f170
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403970
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45f2b0
call fcn.0045ea64
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45f2a2
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.00403970
pop esi
pop ebx
ret