joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590228
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x438c7c]
call fcn.0040a818
xor eax, eax
push ebp
push 0x5903ab
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x60d668], 0
jne 0x59027c
mov ecx, dword [0x60e42c]
mov dl, 1
mov eax, dword [0x41a83c]
call fcn.004274b4
call fcn.00408a24
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00407100
mov eax, ebx
call fcn.00409e58
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x5903bc
lea edi, [ebp - 0x34]
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 - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040cba8
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x5902c3
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x590318
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x590311
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.0040a0c8
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.0040a08c
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004211b0
test eax, eax
jne 0x590311
mov ebx, 0x15
jmp 0x59031d
mov ebx, 0x10
jmp 0x59031d
mov ebx, 0x15
xor eax, eax
push ebp
push 0x590368
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x60ede0]
movzx eax, word [eax]
or ax, 8
call fcn.00406c1c
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x60d668]
call fcn.00590058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59036f
call fcn.00406c0c
ret

Function at 0x599d70
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 0x599d91
test edi, 0x40000
je 0x599dab
test bl, bl
jne 0x599e2c
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x599e2c
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 0x599dde
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x599df3
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x599e02
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x599e13
cmp byte [esp + 2], 0
je 0x599e2c
cmp byte [esp + 2], 0
je 0x599e24
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x599e2c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x59a0d4
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 0x59a0fa
mov eax, esp
push eax
push 0x59a09c
call sub.user32.dll_EnumWindows
jmp 0x59a10d
mov eax, esp
push eax
push 0x59a07c
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 0x59a1d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x59a220]
test bl, 4
je 0x59a1e4
or si, 1
test bl, 8
je 0x59a1ed
or si, 4
test bl, 1
je 0x59a1f6
or si, 8
test bl, 2
je 0x59a1ff
or si, 0x10
test bl, 0x10
je 0x59a208
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59a218
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x59a224
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x59a260]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59a23f
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59a24f
or bx, 4
test esi, 0x20000000
je 0x59a25b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5a30a8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5a30ba
add esp, 0xfffffff0
call fcn.00407cb0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c24e8
mov eax, dword [0x60e61c]
mov dword [eax + 4], ebx
mov dword [eax], 0x5a3570
mov eax, dword [0x60e630]
mov dword [eax + 4], ebx
mov dword [eax], 0x5a357c
mov eax, ebx
call fcn.005a3588
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x59ddcc
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4f5bf0]
call fcn.004fbfb8
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4f5bf0]
call fcn.004fbfb8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4f5bf0]
call fcn.004fbfb8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4f5bf0]
call fcn.004fbfb8
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4f5bf0]
call fcn.004fbfb8
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005a3b64
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a3994
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a3994
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a3994
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a3994
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a3994
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5a323a
call fcn.00407d08
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5a3734
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 0x5a38df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5a38c0
mov dl, 1
mov eax, dword [0x48df70]
call fcn.004b1778
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409328
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5a38af
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.005db42c
test al, al
je 0x5a38a2
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, 0x5a38f0
lea eax, [ebp - 0x394]
call fcn.0042290c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5a38a2
xor eax, eax
push ebp
push 0x5a389b
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 0x5a3960
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5a3884
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a08c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5a3884
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a08c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a38a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5a37a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b16c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a38e6
lea eax, [ebp - 0x3a0]
call fcn.00409328
ret

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

Disassembly:
push ecx
mov eax, dword [0x614cc4]
cmp byte [eax + 0xc5], 0
jne 0x5a44fe
cmp dword [0x614ce8], 0
jne 0x5a44be
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x60d78c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x614ce8], eax
cmp dword [0x614ce4], 0
jne 0x5a44d9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x614ce4], eax
cmp dword [0x614cec], 0
jne 0x5a44fe
push esp
push 0
push 0
mov eax, dword [0x60d788]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x614cec], eax
pop edx
ret
Function at 0x5a4920
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5a4937
add esp, 0xfffffff0
call fcn.00407cb0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c24e8
mov eax, dword [0x60e3f4]
cmp byte [eax], 0
jne 0x5a4964
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x60e8f4]
cmp word [eax + 2], 0
jne 0x5a497e
mov eax, dword [0x60e8f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005a6bf4
mov eax, dword [0x60ead4]
cmp word [eax + 2], 0
jne 0x5a4998
mov eax, dword [0x60ead4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005a6df8
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4f5bf0]
call fcn.004fbfb8
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5a7370
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4fa890]
call fcn.005058ec
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5a4b80
mov eax, dword [0x60e708]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00505d7c
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5a7658
mov dl, 1
mov eax, dword [0x48a7b4]
call fcn.0040767c
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x60e708]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042270c
test eax, eax
je 0x5a4ab2
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00422548
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004226f0
test eax, eax
je 0x5a4aca
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 + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a08c
push ebx
push 0x5a65d0
call fcn.0059a1b4
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x60e3f4]
cmp byte [eax], 0
jne 0x5a4b1b
mov eax, ebx
call fcn.005a4d64
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005a7890
mov eax, ebx
call fcn.005a84fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5a4b78
call fcn.00407d08
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a50a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5a514a
cmp dword [ebx + 0xac], 0
jne 0x5a5144
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5a4fe4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5a5144
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 0x5a510a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5a5144
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004acfac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5a5119
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x614cc4]
cmp dword [eax + 0x188], 0
je 0x5a5502
test bl, bl
jne 0x5a544d
cmp dword [esi + 0xb4], 0
jne 0x5a5442
mov eax, esi
call fcn.005a834c
push eax
push 0x5a527c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5a5413
mov eax, dword [0x614cc4]
cmp byte [eax + 0xeb], 0
je 0x5a5413
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5a53f4
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5a5413
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5a53fc
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5a5442
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004acfac
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5a5422
inc dword [esi + 0xb4]
jmp 0x5a5502
cmp dword [esi + 0xb4], 0
jle 0x5a5502
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5a5502
cmp dword [esi + 0x58], 0
je 0x5a54b7
mov eax, dword [0x614cc4]
cmp byte [eax + 0xeb], 0
je 0x5a54b7
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5a5498
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5a54b7
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5a54a0
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5a54e6
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004acfac
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5a54c6
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x597018]
call fcn.0040b5e0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5a615c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5a61b9
cmp byte [ebx + 0xeb], 0
jne 0x5a61b9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004094b0
mov eax, dword [esi]
test eax, eax
je 0x5a61a6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5a61c6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409708
jmp 0x5a61c6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409708
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5a7a78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5a7ae9
mov eax, esi
call fcn.005d51bc
test al, al
je 0x5a7ae9
mov eax, dword [ebx + 0x98]
call fcn.005d4dec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5a7ae9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x5a7ada
push 0
mov eax, dword [ebx + 0x98]
call fcn.005d4dec
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.005cbaac
jmp 0x5a7ae9
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005a78b0
pop esi
pop ebx
ret
Function at 0x5ac3d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5ac44a
mov eax, dword [ebx + 8]
call fcn.005d4dec
mov ecx, eax
mov dl, 1
mov eax, dword [0x51a678]
call fcn.005cf174
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0051ee2c
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5abcc8
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005d4dec
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005d4dec
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5ac4c0
mov eax, dword [ebx + 8]
call fcn.005d4dec
mov ecx, eax
mov dl, 1
mov eax, dword [0x51a678]
call fcn.005cf174
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0051ee2c
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5abd14
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005d4dec
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005d4dec
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5ac52c
mov eax, dword [ebx + 8]
call fcn.005d4dec
mov ecx, eax
mov dl, 1
mov eax, dword [0x51b0ec]
call fcn.005cf174
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.005d4dec
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.005d4dec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5b5bf8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00409328
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x5b5c4a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x5b5c43
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040a08c
jmp 0x5b5c4a
mov eax, esi
call fcn.00409328
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5bb51c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5bb67b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x60d91c], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4eff84]
call fcn.004f10d0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5bb651
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004f11b8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a08c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5bb694
call fcn.0040a23c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004f1444
test al, al
je 0x5bb63b
lea ecx, [ebp - 4]
mov edx, 0x5bb708
mov eax, dword [ebp - 0xc]
call fcn.004f1cec
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00429efc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5bb63b
xor edx, edx
push ebp
push 0x5bb634
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5bb720
mov eax, dword [ebp - 8]
push eax
call fcn.00411788
test eax, eax
je 0x5bb61d
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5bb61d
call fcn.005bb4a8
test eax, eax
je 0x5bb60d
mov eax, dword [ebx + 0x50]
jmp 0x5bb610
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x60d91c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb63b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb658
mov eax, dword [ebp - 0xc]
call fcn.004076ac
ret

Function at 0x5bb784
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5bb7cb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5bb7ae
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5bb7bf
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5bb7cb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x5c9074
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x614d60], 0
je 0x5c91b5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x60ea7c]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x5c91b5
mov eax, dword [0x614d64]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x614d60]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5c9184
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x614d60]
call fcn.004acfac
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5c917c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x5c917c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x5c917c
mov eax, dword [ebp - 0x14]
call fcn.005d4dec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c917c
push ebp
call fcn.005c9030
pop ecx
test al, al
jne 0x5c917c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00407a00
test al, al
je 0x5c917c
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407a00
cmp byte [ebp - 9], 0
je 0x5c917c
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040f998
test al, al
je 0x5c917c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x614d64]
call fcn.005c8778
inc edi
dec ebx
jne 0x5c90d9
mov eax, dword [0x614d64]
cmp dword [eax + 8], 0
jle 0x5c919c
mov eax, dword [0x614d64]
call fcn.005c882c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5c91b5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.005c8e98
pop ecx
test al, al
jne 0x5c91b5
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret