joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d04
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 0x462d2a
mov eax, esp
push eax
push 0x462ccc
call sub.user32.dll_EnumWindows
jmp 0x462d3d
mov eax, esp
push eax
push 0x462cac
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 0x462e00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x462e54]
test si, 4
je 0x462e15
or bl, 1
test si, 8
je 0x462e1f
or bl, 4
test si, 1
je 0x462e29
or bl, 8
test si, 2
je 0x462e33
or bl, 0x10
test si, 0x10
je 0x462e3d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462e4c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x462e58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x462e94]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462e72
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462e81
or bl, 4
test esi, 0x20000000
je 0x462e8c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46b2d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46b2ea
add esp, 0xfffffff0
call fcn.00404100
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425894
mov eax, dword [0x489c58]
mov dword [eax + 4], ebx
mov dword [eax], 0x46b6ec
mov eax, dword [0x489c64]
mov dword [eax + 4], ebx
mov dword [eax], 0x46b6f8
mov eax, ebx
call fcn.0046b704
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x74], 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, 0x46661c
push eax
push 0
push 0
mov eax, dword [0x489e00]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42a1e4]
call fcn.0042c06c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x42a1e4]
call fcn.0042c06c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x42a1e4]
call fcn.0042c06c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x42a1e4]
call fcn.0042c06c
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.0046bbfc
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46bad4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46bad4
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46bad4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46bad4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b43d
call fcn.00404158
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46b874
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 0x46ba21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46ba02
mov dl, 1
mov eax, dword [0x41c7b8]
call fcn.00420c48
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.0040578c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46b9f1
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.0045b6a4
test al, al
je 0x46b9e4
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, 0x46ba30
lea eax, [ebp - 0x394]
call fcn.0040c640
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x46b9e4
xor eax, eax
push ebp
push 0x46b9dd
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 0x46baa0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46b9c6
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040598c
mov edx, dword [ebp - 0x3a0]
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 0x46b9c6
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040598c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b9e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46b8e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00420a34
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 0x46ba28
lea eax, [ebp - 0x3a0]
call fcn.0040577c
ret

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

Disassembly:
push ecx
mov eax, dword [0x49016c]
cmp byte [eax + 0xa9], 0
jne 0x46c482
cmp dword [0x490184], 0
jne 0x46c442
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x489550]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x490184], eax
cmp dword [0x490180], 0
jne 0x46c45d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x490180], eax
cmp dword [0x490188], 0
jne 0x46c482
push esp
push 0
push 0
mov eax, dword [0x48954c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x490188], eax
pop edx
ret
Function at 0x46c698
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x46c6af
add esp, 0xfffffff0
call fcn.00404100
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425894
mov eax, dword [0x489b84]
cmp byte [eax], 0
jne 0x46c6dc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x489de4]
cmp word [eax + 2], 0
jne 0x46c6f6
mov eax, dword [0x489de4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046e5f8
mov eax, dword [0x489eb0]
cmp word [eax + 2], 0
jne 0x46c710
mov eax, dword [0x489eb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046e808
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x42a1e4]
call fcn.0042c06c
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x46ec9c
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x42ae44]
call fcn.00433b50
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x46c8ec
mov eax, dword [0x489cd0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00433f54
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46ef4c
mov dl, 1
mov eax, dword [0x41c340]
call fcn.00403c80
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x489cd0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040c478
test eax, eax
je 0x46c81e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040c278
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040c460
test eax, eax
je 0x46c836
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 + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040598c
push ebx
push 0x46dfc8
call fcn.00462de4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x489b84]
cmp byte [eax], 0
jne 0x46c887
mov eax, ebx
call fcn.0046ca60
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0046f174
mov eax, ebx
call fcn.0046fd38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46c8e4
call fcn.00404158
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46cd34
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x46cdd6
cmp dword [ebx + 0x90], 0
jne 0x46cdd0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46cc80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x46cdd0
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 0x46cd96
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46cdd0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0041e960
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46cda5
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49016c]
cmp dword [eax + 0x170], 0
je 0x46d159
test bl, bl
jne 0x46d0a7
cmp dword [esi + 0x98], 0
jne 0x46d09c
mov eax, esi
call fcn.0046fb88
push eax
push 0x46cf00
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x46d06d
mov eax, dword [0x49016c]
cmp byte [eax + 0xcf], 0
je 0x46d06d
mov eax, dword [esi + 0xd4]
call fcn.00406e30
mov edi, eax
cmp edi, 0
jl 0x46d06d
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46d056
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46d09c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041e960
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46d07c
inc dword [esi + 0x98]
jmp 0x46d159
cmp dword [esi + 0x98], 0
jle 0x46d159
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x46d159
cmp dword [esi + 0x40], 0
je 0x46d104
mov eax, dword [0x49016c]
cmp byte [eax + 0xcf], 0
je 0x46d104
mov eax, dword [esi + 0xd4]
call fcn.00406e30
mov edi, eax
cmp edi, 0
jl 0x46d104
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46d0ed
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46d133
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041e960
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46d113
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4627ec]
call fcn.00406ff0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46dd14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x46dd7f
cmp byte [ebx + 0xcf], 0
jne 0x46dd7f
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.004058c8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x46dd6c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46dd8c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040578c
jmp 0x46dd8c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040578c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x46f348
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x46f3b6
mov eax, esi
call fcn.00455fa0
test al, al
je 0x46f3b6
mov eax, dword [ebx + 0x80]
call fcn.00455bf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46f3b6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x46f3aa
push 0
mov eax, dword [ebx + 0x80]
call fcn.00455bf4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0044d290
jmp 0x46f3b6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0046f194
pop esi
pop ebx
ret
Function at 0x470768
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x4090a4]
call fcn.00406480
xor eax, eax
push ebp
push 0x470929
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x489590], 0
jne 0x4707bc
mov ecx, dword [0x489b98]
mov dl, 1
mov eax, dword [0x409a10]
call fcn.0040fd74
call fcn.004046a4
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.004035bc
mov eax, ebx
call fcn.00405638
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x470938
lea edi, [ebp - 0x3c]
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 esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.004077d8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x470803
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4708cf
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4708bb
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.0040598c
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004059f4
mov eax, dword [ebp - 4]
test eax, eax
je 0x47085e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47085e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040509c
mov ebx, eax
test ebx, ebx
je 0x470869
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x470886
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x470886
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.0040509c
mov edi, eax
test edi, edi
je 0x470891
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00405818
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00405818
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x4708bd
xor eax, eax
test al, al
je 0x4708c8
mov ebx, 0x15
jmp 0x4708d4
mov ebx, 0x10
jmp 0x4708d4
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x489590]
call fcn.004705d4
mov eax, dword [ebp - 0xc]
call fcn.004705d4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.004077f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470930
lea eax, [ebp - 0x14]
mov edx, dword [0x4090a4]
call fcn.00406558
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405784
ret
Function at 0x47424c
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.00473c84
test byte [ebx + 0x295], 4
jne 0x4742e1
mov edx, esp
mov eax, ebx
call fcn.0044cc0c
push esp
mov eax, ebx
call fcn.004559e4
push eax
push 0
mov eax, ebx
test eax, eax
je 0x474281
sub eax, 0xfffffd24
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x270]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x284], 0
jne 0x4742b2
mov ecx, dword [0x489d7c]
mov dl, 1
mov eax, dword [0x470220]
call fcn.0040fd74
call fcn.004046a4
mov eax, ebx
call fcn.0047479c
cmp byte [ebx + 0x57], 0
jne 0x4742e8
mov eax, ebx
call fcn.00455bf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4742e8
push 0
mov eax, ebx
call fcn.00455bf4
push eax
call sub.user32.dll_ShowWindow
jmp 0x4742e8
mov eax, ebx
call fcn.00451b28
add esp, 0x10
pop ebx
ret

Function at 0x483648
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, edx
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
mov eax, esp
call fcn.0040c560
mov eax, dword [ebx]
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x208]
test eax, eax
je 0x48367e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x483694
mov eax, ebx
mov edx, 0x4836a8
call fcn.00405ba0
add esp, 0x20c
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4e53114d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x4add3982
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405ef4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004041ec
xor eax, eax
push ebp
push 0x406016
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c69c
mov dl, 1
mov al, 2
call fcn.00404fb0
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x40c698], eax
cmp dword [0x40c698], 0xffffffff
je 0x405ffb
mov word [0x40c688], 2
push 0x1a0b
call sub.wsock32.dll_htons
mov word [0x40c68a], ax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405d84
mov eax, dword [ebp - 0xc]
call fcn.004041fc
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x40c68c], eax
push pe_nt_image_headers32
push 0x40c688
mov eax, dword [0x40c698]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x405ff6
lea eax, [ebp - 8]
call fcn.0040567c
push 0x40602c
push dword [ebp - 8]
push 0x40603c
push dword [ebp - 8]
push 0x406048
push dword [ebp - 8]
push 0x406064
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.004040bc
mov eax, dword [ebp - 0x10]
call fcn.004052f0
push 0x406070
push dword [ebp - 8]
push 0x406064
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004040bc
mov eax, dword [ebp - 0x14]
call fcn.004052f0
call fcn.0040574c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40601d
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403e9c
ret

Function at 0x4064b0
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
cmp eax, 0x40
jge 0x4064ee
mov dword [esp + eax*4 + 0xc], ebx
inc dword [esp + 8]
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x406508
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x14], 1
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40660a
lea eax, [ebp - 0x28]
mov edx, pe_nt_image_headers32
call fcn.00404fc4
mov word [ebp - 0x28], 2
push 0x35
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004041fc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov dword [ebp - pe_nt_image_headers32], 0x10
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.wsock32.dll_sendto
inc eax
jne 0x40659d
push ebx
call sub.wsock32.dll_closesocket
jmp 0x40660a
cmp dword [ebp - 0x14], 0
jle 0x406602
mov ecx, 0xbb8
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004064b0
test eax, eax
jle 0x406602
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
push ebx
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4065ce
cmp dword [ebp - 0x14], 0
jle 0x406602
mov eax, dword [ebp - 0x14]
add eax, esi
cmp eax, dword [ebp + 8]
jle 0x4065dd
add esi, dword [ebp - 0x14]
jmp 0x406602
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
call sub.wsock32.dll_recvfrom
mov edi, eax
add esi, edi
add dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], 0
jg 0x4065a3
mov edi, esi
push ebx
call sub.wsock32.dll_closesocket
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4069ec
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
test dl, dl
je 0x406a03
add esp, 0xfffffff0
call fcn.00403680
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004041ec
xor eax, eax
push ebp
push 0x406a74
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x406138]
call fcn.004061a0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov edx, dword [ebp - 4]
call fcn.00403ecc
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.00406324
mov eax, esi
call fcn.00406860
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a7b
lea eax, [ebp - 4]
call fcn.00403e78
ret