joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48023c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040a564
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0047a274
test ebx, ebx
jne 0x48028f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004800b8
mov ebx, eax
test ebx, ebx
je 0x480385
cmp esi, ebx
je 0x4802b8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4802cd
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x480305
add eax, 0xffffff5f
sub eax, 2
jb 0x48031d
dec eax
sub eax, 2
jb 0x480331
dec eax
sub eax, 2
jb 0x480327
jmp 0x48033b
add eax, 0xfffffdff
sub eax, 2
jb 0x48031d
dec eax
sub eax, 2
jb 0x480331
dec eax
sub eax, 2
jb 0x480327
jmp 0x48033b
mov byte [esp + 0x120], 0
jmp 0x480343
mov byte [esp + 0x120], 2
jmp 0x480343
mov byte [esp + 0x120], 1
jmp 0x480343
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0049e224
mov esi, eax
call fcn.00476ab0
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0047bc34
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x480387
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x49dd2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x49dd4d
test edi, 0x40000
je 0x49dd67
test bl, bl
jne 0x49dde8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x49dde8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x49dd9a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x49ddaf
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x49ddbe
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x49ddcf
cmp byte [esp + 2], 0
je 0x49dde8
cmp byte [esp + 2], 0
je 0x49dde0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x49dde8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x49e094
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x49e0ba
mov eax, esp
push eax
push 0x49e05c
call sub.user32.dll_EnumWindows
jmp 0x49e0cd
mov eax, esp
push eax
push 0x49e03c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x49e190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x49e1e0]
test bl, 4
je 0x49e1a4
or si, 1
test bl, 8
je 0x49e1ad
or si, 4
test bl, 1
je 0x49e1b6
or si, 8
test bl, 2
je 0x49e1bf
or si, 0x10
test bl, 0x10
je 0x49e1c8
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49e1d8
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x49e1e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x49e220]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49e1ff
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49e20f
or bx, 4
test esi, 0x20000000
je 0x49e21b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4a6de4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a6df6
add esp, 0xfffffff0
call fcn.004052d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043c28c
mov eax, dword [0x4de530]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a7240
mov eax, dword [0x4de53c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a724c
mov eax, ebx
call fcn.004a7258
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4a1b8c
push eax
push 0
push 0
mov eax, dword [0x4de75c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x446acc]
call fcn.0044bad4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x446acc]
call fcn.0044bad4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x446acc]
call fcn.0044bad4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x446acc]
call fcn.0044bad4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x446acc]
call fcn.0044bad4
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004a77b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a7620
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a7620
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a7620
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a7620
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a7620
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a6f71
call fcn.00405330
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a73c0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a756d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a754e
mov dl, 1
mov eax, dword [0x427e8c]
call fcn.00433d04
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406a28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a753d
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.00489ae8
test al, al
je 0x4a7530
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4a757c
lea eax, [ebp - 0x394]
call fcn.004121cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a7530
xor eax, eax
push ebp
push 0x4a7529
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a75ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a7512
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406c10
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4a7512
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7530
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a7433
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00433c40
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7574
lea eax, [ebp - 0x3a0]
call fcn.00406a18
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e4280]
cmp byte [eax + 0xad], 0
jne 0x4a813e
cmp dword [0x4e4298], 0
jne 0x4a80fe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4dcecc]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4e4298], eax
cmp dword [0x4e4294], 0
jne 0x4a8119
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4e4294], eax
cmp dword [0x4e429c], 0
jne 0x4a813e
push esp
push 0
push 0
mov eax, dword [0x4dcec8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e429c], eax
pop edx
ret
Function at 0x4a8464
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a847b
add esp, 0xfffffff0
call fcn.004052d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043c28c
mov eax, dword [0x4de40c]
cmp byte [eax], 0
jne 0x4a84a8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4de734]
cmp word [eax + 2], 0
jne 0x4a84c2
mov eax, dword [0x4de734]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aa55c
mov eax, dword [0x4de85c]
cmp word [eax + 2], 0
jne 0x4a84dc
mov eax, dword [0x4de85c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aa76c
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x446acc]
call fcn.0044bad4
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4aad1c
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44a164]
call fcn.004528cc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a86bc
mov eax, dword [0x4de5dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00452d60
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ab004
mov dl, 1
mov eax, dword [0x42578c]
call fcn.00404d8c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4de5dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00411f84
test eax, eax
je 0x4a85ed
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00411d68
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00411f68
test eax, eax
je 0x4a8605
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406c10
push ebx
push 0x4a9f2c
call fcn.0049e174
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4de40c]
cmp byte [eax], 0
jne 0x4a8656
mov eax, ebx
call fcn.004a8830
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004ab230
mov eax, ebx
call fcn.004abe64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a86b3
call fcn.00405330
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8b04
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a8ba6
cmp dword [ebx + 0x94], 0
jne 0x4a8ba0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a8a50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a8ba0
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_GetWindowLongW
test al, 8
je 0x4a8b66
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a8ba0
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.00430698
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a8b75
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a8dc4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4e4280]
cmp dword [eax + 0x170], 0
je 0x4a8f29
test bl, bl
jne 0x4a8e77
cmp dword [esi + 0x9c], 0
jne 0x4a8e6c
mov eax, esi
call fcn.004abcb4
push eax
push 0x4a8cd0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a8e3d
mov eax, dword [0x4e4280]
cmp byte [eax + 0xd3], 0
je 0x4a8e3d
mov eax, dword [esi + 0xd8]
call fcn.00408034
mov edi, eax
cmp edi, 0
jl 0x4a8e3d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a8e26
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a8e6c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00430698
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a8e4c
inc dword [esi + 0x9c]
jmp 0x4a8f29
cmp dword [esi + 0x9c], 0
jle 0x4a8f29
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a8f29
cmp dword [esi + 0x44], 0
je 0x4a8ed4
mov eax, dword [0x4e4280]
cmp byte [eax + 0xd3], 0
je 0x4a8ed4
mov eax, dword [esi + 0xd8]
call fcn.00408034
mov edi, eax
cmp edi, 0
jl 0x4a8ed4
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a8ebd
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a8f03
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00430698
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a8ee3
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49c04c]
call fcn.004081f4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a9b78
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a9be3
cmp byte [ebx + 0xd3], 0
jne 0x4a9be3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406b64
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a9bd0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a9bf0
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406a28
jmp 0x4a9bf0
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406a28
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ab418
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ab486
mov eax, esi
call fcn.00483a3c
test al, al
je 0x4ab486
mov eax, dword [ebx + 0x84]
call fcn.00483690
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ab486
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4ab47a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00483690
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0047a664
jmp 0x4ab486
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ab250
pop esi
pop ebx
ret

Function at 0x4cf590
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x34], 0
jne 0x4cf610
movzx eax, word [ebx + 0x42]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [eax*4 + 0x4de3d0]
push eax
movzx eax, byte [ebx + 0x40]
mov eax, dword [eax*4 + 0x4de370]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
mov dword [ebx + 0x44], esi
inc esi
setne al
mov byte [ebx + 0x34], al
test al, al
je 0x4cf610
cmp byte [ebx + 0x35], 1
jne 0x4cf5fb
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov si, 0xfff0
call fcn.00405048
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
ret
Function at 0x4cf82c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x4cf9ae
cmp dword [ebp - 8], 0
je 0x4cf87d
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.004ac594
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ac584
jmp 0x4cf87f
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x4cf8a9
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.004ac594
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ac584
jmp 0x4cf8ab
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x4cf8d8
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.004ac594
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ac584
jmp 0x4cf8dd
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x4cf909
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x4cf90e
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4cf94e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cf95a
cmp dword [ebp - 8], 0
je 0x4cf976
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ac56c
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x4cf992
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ac56c
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x4cf9ae
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ac56c
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 0xffffffff
je 0x4cf9f9
add dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4cfe30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4cff13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406064
test ebx, ebx
je 0x4cfef1
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4cfe87
mov eax, ebx
call fcn.0040658c
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4cfefd
mov eax, esi
mov edx, ebx
call fcn.004060b8
jmp 0x4cfefd
mov eax, ebx
call fcn.0040658c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4cfefd
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x4cff30
call fcn.00412254
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.00406c54
jmp 0x4cfefd
mov eax, esi
mov edx, 0x4cff54
call fcn.004060b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cff1a
lea eax, [ebp - 4]
call fcn.00406a18
ret

Function at 0x4d0084
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406064
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x4d00c3
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
push 0
call fcn.004063bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4d0cc0
Capabilities:
Initialize winsock library

Disassembly:
push 0x4e4494
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x4d0ce6
mov ecx, 0x4d0cf4
mov dl, 1
mov eax, dword [0x4cd6dc]
call fcn.004161b0
call fcn.0040587c
ret