joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3218
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e33d3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409be0
mov eax, dword [ebp - 4]
call fcn.004e2b68
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4e326a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a704
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004e3e60
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e3349
xor eax, eax
push ebp
push 0x4e3342
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004e2e08
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004e3408
test al, al
je 0x4e3320
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409940
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4e3320
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040a2f8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004e2d68
test al, al
je 0x4e331a
mov eax, dword [ebp - 8]
call fcn.0040a2f8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a360
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004e3218
dec ebx
cmp ebx, 0xffffffff
jne 0x4e32c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3349
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004e2e08
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5e349c], 0
je 0x4e3389
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004e2df4
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004e2d68
mov ebx, eax
jmp 0x4e33b0
mov eax, dword [ebp - 4]
call fcn.0040a2f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004e2df4
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004e2d68
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e33da
lea eax, [ebp - 0x3c]
call fcn.004097b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409818
ret
Function at 0x4e3d3c
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
movzx eax, byte [ebp + 8]
call fcn.004e2b80
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.0040a2f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004e2d68
test al, al
jne 0x4e3da4
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5dcd2c]
mov dl, 1
mov eax, dword [0x4e194c]
call fcn.00426a08
call fcn.00408e34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e3db0
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.0040a2f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004e2d68
test al, al
jne 0x4e3e11
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5dd07c]
mov dl, 1
mov eax, dword [0x4e194c]
call fcn.00426a08
call fcn.00408e34
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e2bb0
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 0x4e4410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e4538
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004e2e08
xor eax, eax
push ebp
push 0x4e4513
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e3408
test al, al
je 0x4e44f7
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004e42f0
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409940
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4e44f7
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2f8
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e2d68
test al, al
je 0x4e44f3
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2f8
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040a360
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004e42f0
pop ecx
inc edi
dec ebx
jne 0x4e449b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e451a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004e2e08
ret
Function at 0x4e4548
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e4796
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004e2e08
xor eax, eax
push ebp
push 0x4e476c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e3408
test al, al
je 0x4e4750
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409940
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4e4750
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2f8
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e2d68
test al, al
je 0x4e4744
mov eax, dword [ebp - 4]
call fcn.0040a2f8
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040a360
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e3e60
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4e4744
xor eax, eax
push ebp
push 0x4e473d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.004e2e08
xor eax, eax
push ebp
push 0x4e471f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a2f8
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040a360
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e2e0c
mov eax, dword [ebp - 4]
call fcn.0040a2f8
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040a360
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004e3e60
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4e46fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004e4410
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004e4548
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4703
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4e45d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4773
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004e2e08
ret
Function at 0x4ecfb4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4ecfba
ret
Function at 0x523044
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040989c
xor eax, eax
push ebp
push 0x523181
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x523154
xor edx, edx
push ebp
push 0x52314d
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x523091
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x523122
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x523111
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5230d4
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040a2f8
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.00406c10
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523118
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5dca4c]
mov dl, 1
mov eax, dword [0x4199bc]
call fcn.00426938
call fcn.00408e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523188
lea eax, [ebp - 4]
call fcn.004097b8
ret

Function at 0x527b9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x527bd8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x527bb4
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x527bc4
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x527bd4
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x546894
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
push 0x101
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409940
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x54f058
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0054f108
test eax, eax
je 0x54f093
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0054f108
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409940
jmp 0x54f0a1
mov ecx, esi
mov edx, 0x54f0c0
mov eax, ebx
call fcn.0054efe0
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00409b98
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x57cb74
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 [0x437b58]
call fcn.0040ab28
xor eax, eax
push ebp
push 0x57ccf7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5dc57c], 0
jne 0x57cbc8
mov ecx, dword [0x5dc9e8]
mov dl, 1
mov eax, dword [0x4199bc]
call fcn.00426938
call fcn.00408e34
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00407390
mov eax, ebx
call fcn.0040a168
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x57cd08
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.0040d054
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x57cc0f
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x57cc64
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 0x57cc5d
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.0040a3d8
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.0040a39c
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004204cc
test eax, eax
jne 0x57cc5d
mov ebx, 0x15
jmp 0x57cc69
mov ebx, 0x10
jmp 0x57cc69
mov ebx, 0x15
xor eax, eax
push ebp
push 0x57ccb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5dd004]
movzx eax, word [eax]
or ax, 8
call fcn.00406e64
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x5dc57c]
call fcn.0057c9a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57ccbb
call fcn.00406e54
ret

Function at 0x58676c
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 0x58678d
test edi, 0x40000
je 0x5867a7
test bl, bl
jne 0x586828
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x586828
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 0x5867da
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5867ef
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5867fe
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x58680f
cmp byte [esp + 2], 0
je 0x586828
cmp byte [esp + 2], 0
je 0x586820
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x586828
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x586ad0
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 0x586af6
mov eax, esp
push eax
push 0x586a98
call sub.user32.dll_EnumWindows
jmp 0x586b09
mov eax, esp
push eax
push 0x586a78
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 0x586bcc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x586c1c]
test bl, 4
je 0x586be0
or si, 1
test bl, 8
je 0x586be9
or si, 4
test bl, 1
je 0x586bf2
or si, 8
test bl, 2
je 0x586bfb
or si, 0x10
test bl, 0x10
je 0x586c04
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x586c14
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x586c20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x586c5c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x586c3b
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x586c4b
or bx, 4
test esi, 0x20000000
je 0x586c57
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x58fc44
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x58fc56
add esp, 0xfffffff0
call fcn.00408024
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004bbaf8
mov eax, dword [0x5dcb00]
mov dword [eax + 4], ebx
mov dword [eax], 0x59010c
mov eax, dword [0x5dcb10]
mov dword [eax + 4], ebx
mov dword [eax], 0x590118
mov eax, ebx
call fcn.00590124
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4848f8]
call fcn.00407988
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4848f8]
call fcn.00407988
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x4848f8]
call fcn.00407988
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x4848f8]
call fcn.00407988
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x4848f8]
call fcn.00407988
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, 0x58a7d0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4e77c0]
call fcn.004ed924
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4e77c0]
call fcn.004ed924
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4e77c0]
call fcn.004ed924
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4e77c0]
call fcn.004ed924
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4e77c0]
call fcn.004ed924
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00590700
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x590530
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x590530
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x590530
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x590530
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x590530
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x58fdd6
call fcn.0040807c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5902d0
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 0x59047b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x59045c
mov dl, 1
mov eax, dword [0x4880b4]
call fcn.004ab43c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004097b8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x59044b
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.005c84e8
test al, al
je 0x59043e
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, 0x59048c
lea eax, [ebp - 0x394]
call fcn.00421c28
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x59043e
xor eax, eax
push ebp
push 0x590437
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 0x5904fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x590420
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a39c
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 0x590420
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a39c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59043e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x590341
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004ab38c
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 0x590482
lea eax, [ebp - 0x3a0]
call fcn.004097b8
ret

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

Disassembly:
push ecx
mov eax, dword [0x5e374c]
cmp byte [eax + 0xc5], 0
jne 0x59109a
cmp dword [0x5e3770], 0
jne 0x59105a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5dc6a0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5e3770], eax
cmp dword [0x5e376c], 0
jne 0x591075
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5e376c], eax
cmp dword [0x5e3774], 0
jne 0x59109a
push esp
push 0
push 0
mov eax, dword [0x5dc69c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5e3774], eax
pop edx
ret