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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45aae8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45aac9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45aad8
or bl, 4
test esi, 0x20000000
je 0x45aae3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4610ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4610fe
add esp, 0xfffffff0
call fcn.00403a98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ee84
mov eax, dword [0x4a12b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x461490
mov eax, dword [0x4a12c0]
mov dword [eax + 4], ebx
mov dword [eax], 0x46149c
mov eax, ebx
call fcn.004614a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
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, 0x45d970
push eax
push 0
push 0
mov eax, dword [0x4a1428]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4208f4]
call fcn.00422068
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4208f4]
call fcn.00422068
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4208f4]
call fcn.00422068
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00461910
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4617ec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4617ec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4617ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46123b
call fcn.00403af0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4615d0
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 0x46177b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46175c
mov dl, 1
mov eax, dword [0x41498c]
call fcn.00403704
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404524
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46174b
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.0044eba4
test al, al
je 0x46173e
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, 0x46178c
lea eax, [ebp - 0x254]
call fcn.00409aac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46173e
xor eax, eax
push ebp
push 0x461737
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 0x4617c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461720
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
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 0x461720
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46173e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461641
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418f48
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 0x461782
lea eax, [ebp - 0x260]
call fcn.00404524
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a2c38]
cmp byte [eax + 0xa5], 0
jne 0x462121
cmp dword [0x4a2c50], 0
jne 0x4620e2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46206c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a2c50], eax
cmp dword [0x4a2c4c], 0
jne 0x4620fd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a2c4c], eax
cmp dword [0x4a2c54], 0
jne 0x462121
push esp
push 0
push 0
push 0x462010
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a2c54], eax
pop edx
ret
Function at 0x462248
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46225f
add esp, 0xfffffff0
call fcn.00403a98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ee84
mov eax, dword [0x4a1410]
cmp word [eax + 2], 0
jne 0x462287
mov eax, dword [0x4a1410]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046387c
mov eax, dword [0x4a14c8]
cmp word [eax + 2], 0
jne 0x4622a1
mov eax, dword [0x4a14c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463a74
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414328]
call fcn.00403704
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 [0x421414]
call fcn.00428e34
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x462428
mov eax, dword [0x4a131c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429204
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463ff4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a131c]
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.0040d1fc
test eax, eax
je 0x462396
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004093f4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d224
test eax, eax
je 0x4623aa
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.0040478c
mov eax, dword [0x4a11cc]
cmp byte [eax], 0
jne 0x4623de
mov eax, ebx
call fcn.00462550
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.004641d0
mov eax, ebx
call fcn.00464b10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46241e
call fcn.00403af0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4627c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a2c38]
cmp dword [eax + 0x30], 0
je 0x46286e
cmp dword [ebx + 0x94], 0
jne 0x462868
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462754
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462868
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 0x46282e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462868
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.00416bb4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46283d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46334c
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 0x463381
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.00404614
jmp 0x46338e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404578
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4643ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4643ed
mov eax, esi
call fcn.0044a298
test al, al
je 0x4643ed
mov eax, dword [ebx + 0x84]
call fcn.00449f94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4643ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449f94
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46744c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x413984]
call fcn.00404f4c
xor eax, eax
push ebp
push 0x467590
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a0ee8], 0
jne 0x46749f
mov ecx, dword [0x4a11e0]
mov dl, 1
mov eax, dword [0x407c14]
call fcn.0040c528
call fcn.00403f00
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ff0
mov eax, ebx
call fcn.00404d9c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4675a0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004063e8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404dac
test eax, eax
jle 0x467537
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x467530
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047a4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040478c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408ac0
test eax, eax
jne 0x467530
mov ebx, 0x15
jmp 0x46753c
mov ebx, 0x10
jmp 0x46753c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4a0ee8]
call fcn.004673a4
mov eax, dword [ebp - 8]
call fcn.004673a4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467597
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404548
lea eax, [ebp - 0x10]
mov edx, dword [0x413984]
call fcn.0040501c
ret

Function at 0x46f7f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046f45c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004049d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46f856
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a1430]
mov dl, 1
mov eax, dword [0x46f354]
call fcn.0040c564
call fcn.00403f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46f860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004049d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46f8b8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a166c]
mov dl, 1
mov eax, dword [0x46f354]
call fcn.0040c564
call fcn.00403f00
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046f48c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x478624
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4786fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a2d10], 0
jne 0x4786e0
lea eax, [ebp - 4]
mov edx, 0x478714
call fcn.004045bc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004049d4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4786e0
mov eax, ebx
call fcn.00402794
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4786d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4786c3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x478724
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4786c3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4a2d10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4786e0
mov eax, dword [ebp - 0xc]
call fcn.004027b4
ret
mov ebx, dword [0x4a2d10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478703
lea eax, [ebp - 4]
call fcn.00404524
ret

Function at 0x486508
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4a2d34], 0
jne 0x48652b
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48647c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a2d34], eax
ret
Function at 0x490dec
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebx
push esi
add esp, 0xfffffe3c
mov esi, eax
mov ecx, 0x32
mov eax, 0x4a1148
lea edx, [esp + 0x190]
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x490e07
cmp byte [esi + 0x48], 0
jne 0x490ec4
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x490f23
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [0x4a2da8], eax
cmp dword [0x4a2da8], 0xffffffff
jne 0x490e56
mov eax, dword [0x4a2da8]
push eax
call sub.wsock32.dll_closesocket
jmp 0x490f23
mov word [0x4a2dac], 2
xor eax, eax
mov dword [0x4a2db0], eax
push 0x1a6f
call sub.wsock32.dll_htons
mov word [0x4a2dae], ax
push 0x10
push 0x4a2dac
mov eax, dword [0x4a2da8]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x490e95
mov byte [esi + 0x48], 0
jmp 0x490f23
mov byte [esi + 0x48], 1
push 1
push 0x401
mov eax, dword [esi + 0x44]
push eax
mov eax, dword [0x4a2da8]
push eax
call sub.wsock32.dll_WSAAsyncSelect
push 0x490f2c
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a2da4], eax
mov eax, dword [esi + 0x30]
call fcn.004049d4
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x4a2dc0], eax
mov word [0x4a2dbc], 2
push 0x89
call sub.wsock32.dll_htons
mov word [0x4a2dbe], ax
push 0x10
push 0x4a2dbc
push 0
push 0x32
lea eax, [esp + 0x1a0]
push eax
mov eax, dword [0x4a2da8]
push eax
call sub.wsock32.dll_sendto
cmp eax, 0xffffffff
je 0x490f23
cmp eax, 0x32
jne 0x490f23
mov eax, dword [0x4a2da4]
push eax
call sub.kernel32.dll_ResetEvent
add esp, 0x1c4
pop esi
pop ebx
ret

Function at 0x495858
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov edi, eax
push 0x14
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x495734]
call fcn.00405c10
add esp, 4
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4958bb
push 0
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x495734]
call fcn.00405c10
add esp, 4
cmp word [edi + 0x42], 0
je 0x4958fb
mov edx, 0x49590c
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
jmp 0x4958fb
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4958d8
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [edi + 0x4c]
lea eax, [eax + ebx*4]
call fcn.00404714
inc ebx
mov ebp, dword [esi + ebx*4]
test ebp, ebp
je 0x4958e4
cmp ebx, 0x14
jl 0x4958c2
push ebx
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x495734]
call fcn.00405c10
add esp, 4
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x495920
Capabilities:
Create raw socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov ebx, eax
lea ebp, [esp + 8]
mov eax, dword [ebx + 0x4c]
call fcn.00405a5c
inc eax
je 0x495a24
mov eax, dword [ebx + 0x4c]
call fcn.00405a5c
inc eax
push eax
lea eax, [ebx + 0x48]
mov ecx, 1
mov edx, dword [0x495714]
call fcn.00405c10
add esp, 4
mov eax, dword [ebx + 0x4c]
call fcn.00405a5c
mov edi, eax
test edi, edi
jl 0x495a24
inc edi
xor esi, esi
push 0
push 3
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebx + 0x48]
mov dword [edx + esi*4], eax
mov word [ebp], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp + 2], ax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + esi*4]
call fcn.004049d4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp + 4], eax
push 0x10
push ebp
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
push eax
call sub.wsock32.dll_bind
mov edx, eax
mov eax, ebx
call fcn.00495f18
mov dword [esp], 1
xor eax, eax
mov dword [esp + 4], eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0x2c
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 0x98000001
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
push eax
call dword [ebx + 0x6c]
mov edx, eax
mov eax, ebx
call fcn.00495f18
push 0x21
lea eax, [esi + 0x4c8]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov edx, eax
mov eax, ebx
call fcn.00495f18
inc esi
dec edi
jne 0x495971
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x498594
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x49863e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a2e44]
mov eax, dword [eax + 0x314]
call fcn.00480950
test eax, eax
je 0x498623
push 5
push 0
push 0
push 0x498654
mov eax, dword [0x4a2e44]
mov eax, dword [eax + 0x314]
call fcn.00480950
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0xc]
call fcn.00408b30
push dword [ebp - 0xc]
push 0x498660
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040489c
mov eax, dword [ebp - 8]
call fcn.004049d4
push eax
push 0
mov eax, dword [0x4a2e44]
call fcn.00449f94
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498645
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404548
ret
Function at 0x499c9c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x499d4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x1d4]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x499d35
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x499cfa
call sub.wsock32.dll_WSACleanup
jmp 0x499d35
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x499d24
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.00404714
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
je 0x499d30
cmp ebx, 0x14
jl 0x499d01
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499d55
lea eax, [ebp - 0x1d8]
call fcn.00404524
ret

Function at 0x499d5c
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebx
add esp, 0xfffffe0c
mov ebx, eax
lea eax, [esp + 0x64]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x499d8f
push 0x64
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
call sub.wsock32.dll_WSACleanup
mov edx, ebx
mov eax, esp
call fcn.004095b0
add esp, 0x1f4
pop ebx
ret

Function at 0x49a1e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x49a263
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.004049d4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
push 2
push 4
lea eax, [ebp - 0x10]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x49a246
mov edx, esi
mov eax, dword [ebx]
call fcn.004095b0
jmp 0x49a24d
mov eax, esi
call fcn.00404524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a26a
lea eax, [ebp - 4]
call fcn.00404524
ret
Function at 0x49a270
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x49a3c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x49a39a
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409450
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x49a383
mov edx, dword [eax + 0xc]
test edx, edx
je 0x49a37d
mov ebx, dword [edx]
test ebx, ebx
je 0x49a377
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x49a3dc
call fcn.00409b2c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404578
mov byte [ebp - 5], 1
jmp 0x49a387
mov byte [ebp - 5], 0
jmp 0x49a387
mov byte [ebp - 5], 0
jmp 0x49a387
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a3a1
call sub.wsock32.dll_WSACleanup
ret