joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459f40
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 0x459f66
mov eax, esp
push eax
push 0x459f08
call sub.user32.dll_EnumWindows
jmp 0x459f79
mov eax, esp
push eax
push 0x459ee8
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 0x45a004
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45a058]
test si, 4
je 0x45a019
or bl, 1
test si, 8
je 0x45a023
or bl, 4
test si, 1
je 0x45a02d
or bl, 8
test si, 2
je 0x45a037
or bl, 0x10
test si, 0x10
je 0x45a041
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a050
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a05c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45a098]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a076
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a085
or bl, 4
test esi, 0x20000000
je 0x45a090
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x462120
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x462132
add esp, 0xfffffff0
call fcn.00404528
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fc94
mov eax, dword [0x529c14]
mov dword [eax + 4], ebx
mov dword [eax], 0x4624c4
mov eax, dword [0x529c20]
mov dword [eax + 4], ebx
mov dword [eax], 0x4624d0
mov eax, ebx
call fcn.004624dc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
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, 0x45d968
push eax
push 0
push 0
mov eax, dword [0x529e94]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424b30]
call fcn.00426424
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424b30]
call fcn.00426424
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424b30]
call fcn.00426424
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00462954
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462824
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462824
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462824
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46226f
call fcn.00404580
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x462608
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 0x4627b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462794
mov dl, 1
mov eax, dword [0x4171e4]
call fcn.004041d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405030
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x462783
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.00453d5c
test al, al
je 0x462776
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, 0x4627c4
lea eax, [ebp - 0x254]
call fcn.0040a81c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462776
xor eax, eax
push ebp
push 0x46276f
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 0x4627fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462758
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004052a0
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 0x462758
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004052a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462776
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x462679
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041baac
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 0x4627ba
lea eax, [ebp - 0x260]
call fcn.00405030
ret

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

Disassembly:
push ecx
mov eax, dword [0x52fcd0]
cmp byte [eax + 0xad], 0
jne 0x46319d
cmp dword [0x52fcec], 0
jne 0x46315e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4630e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x52fcec], eax
cmp dword [0x52fce8], 0
jne 0x463179
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x52fce8], eax
cmp dword [0x52fcf0], 0
jne 0x46319d
push esp
push 0
push 0
push 0x46308c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x52fcf0], eax
pop edx
ret
Function at 0x4633a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4633b7
add esp, 0xfffffff0
call fcn.00404528
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fc94
mov eax, dword [0x529e70]
cmp word [eax + 2], 0
jne 0x4633df
mov eax, dword [0x529e70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00465100
mov eax, dword [0x529fe4]
cmp word [eax + 2], 0
jne 0x4633f9
mov eax, dword [0x529fe4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046530c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416c34]
call fcn.004041d4
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 [0x4256e0]
call fcn.0042dad4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4635b0
mov eax, dword [0x529cc8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042dea8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4659e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x529cc8]
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.0040e310
test eax, eax
je 0x463500
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a1c0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e344
test eax, eax
je 0x463514
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004052a0
mov byte [ebx + 0xd4], 0
push ebx
push 0x464b74
call fcn.00420e10
mov dword [ebx + 0xc8], eax
mov eax, dword [0x529a88]
cmp byte [eax], 0
jne 0x463565
mov eax, ebx
call fcn.004636f4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00465bf4
mov eax, ebx
call fcn.00466758
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4635a5
call fcn.00404580
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463974
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x463a13
cmp dword [ebx + 0x94], 0
jne 0x463a0d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4638fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463a0d
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 0x4639d3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463a0d
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.00419164
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4639e2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x52fcd0]
cmp dword [eax + 0x30], 0
je 0x463d89
test bl, bl
jne 0x463cda
cmp dword [esi + 0x9c], 0
jne 0x463ccf
mov eax, esi
call fcn.004665d4
push eax
push 0x463b58
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x463ca0
mov eax, dword [0x52fcd0]
call fcn.00466cb4
test al, al
je 0x463ca0
mov eax, dword [0x52fcf4]
call fcn.004062f0
mov edi, eax
cmp edi, 0
jl 0x463ca0
push 0
mov eax, dword [0x52fcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x463c8a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x463ccf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419164
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x463caf
inc dword [esi + 0x9c]
jmp 0x463d89
cmp dword [esi + 0x9c], 0
jle 0x463d89
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x463d89
cmp dword [esi + 0x44], 0
je 0x463d35
mov eax, dword [0x52fcd0]
call fcn.00466cb4
test al, al
je 0x463d35
mov eax, dword [0x52fcf4]
call fcn.004062f0
mov edi, eax
cmp edi, 0
jl 0x463d35
push 5
mov eax, dword [0x52fcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x463d1f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x463d64
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419164
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x463d44
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x52fcf4
mov ecx, 1
mov edx, dword [0x463b38]
call fcn.004064a4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x464870
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4648da
mov eax, ebx
call fcn.00466cb4
test al, al
jne 0x4648da
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.00405120
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4648c7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4648e7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405084
jmp 0x4648e7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405084
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x465dd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465e46
mov eax, esi
call fcn.0044e98c
test al, al
je 0x465e46
mov eax, dword [ebx + 0x84]
call fcn.0044e5ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465e46
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x465e3a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e5ec
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00446424
jmp 0x465e46
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00465c14
pop esi
pop ebx
ret
Function at 0x468314
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.004054b0
xor eax, eax
push ebp
push 0x468510
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4684d6
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0046815c
pop ecx
push 0
push 0
push 0
push 0
push 0x46851c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x18]
call fcn.004054c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 8], eax
mov eax, 0x468528
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x80000000
mov eax, 0x46852c
mov dword [ebp - 0x38], eax
push 0
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0x46853c
mov eax, dword [ebp - 0x1c]
call fcn.004054c0
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x400
mov eax, dword [ebp - 0x24]
call fcn.00402f08
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 5
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
cmp byte [ebp - 0x39], 0
je 0x4684ae
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
call fcn.00405030
mov eax, dword [0x529f9c]
mov eax, dword [eax]
call fcn.00464d24
lea eax, [ebp - 0x40]
push eax
push 0x401
lea eax, [ebp - 0x449]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x46849b
cmp dword [ebp - 0x40], 0
je 0x46849b
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x449]
mov ecx, 0x401
call fcn.004052a0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
call fcn.00405750
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
call fcn.004052fc
mov eax, dword [ebp - 0x40]
add dword [ebp - 0x44], eax
jmp 0x46843b
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.00405750
cmp dword [ebp - 0x44], 0
setne byte [ebp - 0x39]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4684dd
mov eax, dword [ebp - 0x20]
call fcn.00402f24
push ebp
call fcn.004682e8
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
call fcn.00405084
ret
Function at 0x46b8dc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407f74]
call fcn.00405ae8
xor eax, eax
push ebp
push 0x46ba7d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x520468], 0
jne 0x46b937
mov ecx, dword [0x529aa4]
mov dl, 1
mov eax, dword [0x408580]
call fcn.0040d558
call fcn.00404a78
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403984
mov eax, ebx
call fcn.00405998
mov dword [ebp - 0x24], eax
mov esi, 0x46ba8c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406b94
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004059a8
test eax, eax
jle 0x46ba20
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46ba0c
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004052a0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46b9b2
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004052b8
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46b9c8
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004052b8
mov eax, dword [ebp - 0x54]
call fcn.004054c0
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004052a0
mov eax, dword [ebp - 0x58]
call fcn.004054c0
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46ba0e
xor eax, eax
test al, al
je 0x46ba19
mov ebx, 0x15
jmp 0x46ba25
mov ebx, 0x10
jmp 0x46ba25
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x520468]
call fcn.0046b75c
mov eax, dword [ebp - 4]
call fcn.0046b75c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ba84
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405054
lea eax, [ebp - 0xc]
mov edx, dword [0x407f74]
call fcn.00405bb8
ret
Function at 0x474aa4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x474ad2
mov eax, ebx
call fcn.00475558
cmp dword [ebx + 0x40], 0
je 0x474acb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x474b43
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x474b35
cmp dword [ebx + 8], 0
je 0x474af4
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 0x474b06
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x474b35
cmp dword [ebx + 8], 0
je 0x474ae7
cmp eax, 3
je 0x474b19
dec eax
jne 0x474ae7
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 0x474ae7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x474ae7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x474b61
cmp dword [ebx + 0x14], 0xcc
je 0x474b61
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.00474b6c
pop ebx
ret

Function at 0x4858b8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x485947
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52fd64
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x485931
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040cc58
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
mov eax, 0x48595c
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x1c]
push eax
push 2
mov ecx, dword [0x52a10c]
mov dl, 1
mov eax, dword [0x485098]
call fcn.0040d594
call fcn.00404a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48594e
lea eax, [ebp - 0x20]
call fcn.00405030
ret

Function at 0x485fe4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [0x486060]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
je 0x486016
mov dword [ebp - 8], 0x401
mov eax, dword [ebp - 4]
call fcn.0048618c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov al, byte [0x486060]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
jne 0x486059
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
mov esp, ebp
pop ebp
ret
Function at 0x486104
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00485fe4
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404400
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x486184
call fcn.004857ec
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 0
mov eax, dword [ebp - 4]
test byte [eax + 0x28], 0x10
jne 0x486175
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404400
pop esi
pop ecx
pop ebp
ret

Function at 0x48626c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004054c0
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 4
call fcn.00403984
cmp dword [ebp - 0x10], 0
je 0x4862db
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 1]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 2]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret