joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463d94
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 0x463f4f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407b20
mov eax, dword [ebp - 4]
call fcn.004636e4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x463de6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004087b8
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.004649d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x463ec5
xor eax, eax
push ebp
push 0x463ebe
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00463984
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00463f84
test al, al
je 0x463e9c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407880
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x463e9c
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.00408344
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.004638e4
test al, al
je 0x463e96
mov eax, dword [ebp - 8]
call fcn.00408344
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040839c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00463d94
dec ebx
cmp ebx, 0xffffffff
jne 0x463e45
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463ec5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00463984
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5c8090], 0
je 0x463f05
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00463970
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004638e4
mov ebx, eax
jmp 0x463f2c
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00463970
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004638e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463f56
lea eax, [ebp - 0x3c]
call fcn.004076f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407758
ret
Function at 0x4648ac
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.004636fc
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.00408344
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004638e4
test al, al
jne 0x464914
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5c20f8]
mov dl, 1
mov eax, dword [0x4624d0]
call fcn.004278d0
call fcn.00406dd4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x464920
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.00408344
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004638e4
test al, al
jne 0x464981
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5c26f4]
mov dl, 1
mov eax, dword [0x4624d0]
call fcn.004278d0
call fcn.00406dd4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046372c
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 0x464f80
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 0x4650a8
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.00463984
xor eax, eax
push ebp
push 0x465083
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.00463f84
test al, al
je 0x465067
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00464e60
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407880
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x465067
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.00408344
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.004638e4
test al, al
je 0x465063
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040839c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00464e60
pop ecx
inc edi
dec ebx
jne 0x46500b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46508a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00463984
ret
Function at 0x4650b8
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 0x465306
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.00463984
xor eax, eax
push ebp
push 0x4652dc
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.00463f84
test al, al
je 0x4652c0
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407880
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4652c0
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.00408344
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.004638e4
test al, al
je 0x4652b4
mov eax, dword [ebp - 4]
call fcn.00408344
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040839c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004649d0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4652b4
xor eax, eax
push ebp
push 0x4652ad
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.00463984
xor eax, eax
push ebp
push 0x46528f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408344
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040839c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00463988
mov eax, dword [ebp - 4]
call fcn.00408344
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040839c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004649d0
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x46526c
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.00464f80
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004650b8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465273
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x465143
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4652e3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.00463984
ret
Function at 0x46dab8
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 0x46dabe
ret
Function at 0x47b2f8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b4bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x47b497
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x47b497
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
shl eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x47b2c0]
call fcn.004096ec
add esp, 4
lea eax, [ebp - 8]
call fcn.0040ad8c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x5c1df0]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00409538
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x2c
call fcn.00405028
mov dword [ebp - 0x44], 0x2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x38], 1
mov word [ebp - 0x36], 0x20
mov dl, 1
mov eax, dword [0x46c36c]
call fcn.00476df0
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
xor eax, eax
push ebp
push 0x47b468
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dl, 7
call fcn.00479220
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00477e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b497
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b4c2
lea eax, [ebp - 0x10]
mov edx, dword [0x47b2c0]
call fcn.00409810
lea eax, [ebp - 8]
call fcn.0040ad8c
ret
Function at 0x498620
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x498671
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x498658
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x498648
jmp 0x498671
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x498659
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9904
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004077dc
xor eax, eax
push ebp
push 0x4b9a6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4b9a40
xor eax, eax
push ebp
push 0x4b9a39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b995d
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b9a0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b99fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b99b8
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
call fcn.00408344
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov edx, dword [ebp - 0x10]
call fcn.0040486c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9a04
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5c1b64]
mov dl, 1
mov eax, dword [0x41af50]
call fcn.00427800
call fcn.00406dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9a74
lea eax, [ebp - 8]
call fcn.004076f8
ret

Function at 0x4ded9c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dee6c
test eax, eax
je 0x4dede3
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 4]
call fcn.004dee6c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
lea edx, [ebp - 0x208]
mov eax, dword [ebp - 8]
call fcn.00407880
jmp 0x4dedf3
mov ecx, dword [ebp - 8]
mov edx, 0x4dee14
mov eax, dword [ebp - 4]
call fcn.004decbc
mov eax, dword [ebp - 4]
add eax, 0x1c
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.00407ad8
mov esp, ebp
pop ebp
ret
Function at 0x5027d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffec
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 0
je 0x502816
test byte [ebp - 0xa], 4
je 0x502833
cmp byte [ebp - 5], 0
jne 0x5028f6
mov eax, dword [ebp - 0xc]
and eax, 0x40000
cmp eax, 0x40000
jne 0x5028f6
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x50286a
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 5], 0
je 0x50289e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xffffffec
mov eax, dword [ebp - 0xc]
or eax, 0x40000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [ebp - 0x2c], eax
jmp 0x5028ca
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0xffffffec
mov eax, dword [ebp - 0xc]
and eax, 0xfffbffff
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [ebp - 0x3c], eax
mov al, byte [ebp - 6]
and al, byte [ebp - 0xd]
jne 0x5028d8
cmp byte [ebp - 0xe], 0
je 0x5028f6
cmp byte [ebp - 0xe], 0
je 0x5028eb
push 6
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
jmp 0x5028f6
push 5
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
mov esp, ebp
pop ebp
ret

Function at 0x502c64
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 1], al
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
cmp byte [ebp - 1], 0
je 0x502c8f
lea eax, [ebp - 0xc]
push eax
push 0x502c20
call sub.user32.dll_EnumWindows
jmp 0x502ca3
lea eax, [ebp - 0xc]
push eax
push 0x502bf4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
mov al, byte [ebp - 8]
mov byte [ebp - 2], al
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret
Function at 0x50deb0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x50dec2
add esp, 0xfffffff0
call fcn.00406060
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00456c08
mov eax, dword [0x5c1d08]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x50e588
mov eax, dword [0x5c1d20]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x50e5a8
mov eax, dword [ebp - 4]
call fcn.0050e5d8
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x43b154]
call fcn.00405a24
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x43b154]
call fcn.00405a24
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x43b154]
call fcn.00405a24
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43b154]
call fcn.00405a24
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
mov dl, 1
mov eax, dword [0x43b154]
call fcn.00405a24
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
push eax
mov eax, 0x507810
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x468410]
call fcn.0046e5f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x468410]
call fcn.0046e5f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x468410]
call fcn.0046e5f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x468410]
call fcn.0046e5f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov dl, 1
mov eax, dword [0x468410]
call fcn.0046e5f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov eax, dword [ebp - 4]
call fcn.0050edd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x50eadc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x50eadc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x50eadc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x50eadc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x50eadc
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x50e09c
call fcn.004060b8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x50e850
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc58
push ebx
xor edx, edx
mov dword [ebp - 0x3a8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ea1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x50e9f9
mov dl, 1
mov eax, dword [0x43e8c8]
call fcn.0044cda8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.004076f8
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x50e9e2
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.0054e8dc
test al, al
je 0x50e9d6
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 0x3a0], 0
lea ecx, [ebp - 0x3a4]
mov edx, 0x50ea2c
lea eax, [ebp - 0x39c]
call fcn.004220b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x50e9d6
xor eax, eax
push ebp
push 0x50e9cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x200
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0
push 0
push 0x50ea9c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x50e9b8
lea eax, [ebp - 0x3a8]
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.004083f0
mov edx, dword [ebp - 0x3a8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x50e9b8
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.004083f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e9d6
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x50e8c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dl, 1
call fcn.0044cce4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ea22
lea eax, [ebp - 0x3a8]
call fcn.004076f8
ret