joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b758
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.00407238
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0044a774
test al, al
jne 0x44b7b9
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b82c0]
mov dl, 1
mov eax, dword [0x449398]
call fcn.0041f970
call fcn.00406044
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044a5bc
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 0x44bdb8
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 0x44bee0
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.0044a814
xor eax, eax
push ebp
push 0x44bebb
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.0044adc4
test al, al
je 0x44be9f
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0044bc98
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a5c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x44be9f
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.00407238
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.0044a774
test al, al
je 0x44be9b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407238
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00407288
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0044bc98
pop ecx
inc edi
dec ebx
jne 0x44be43
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bec2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0044a814
ret
Function at 0x44bef0
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 0x44c13e
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.0044a814
xor eax, eax
push ebp
push 0x44c114
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.0044adc4
test al, al
je 0x44c0f8
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a5c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x44c0f8
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.00407238
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.0044a774
test al, al
je 0x44c0ec
mov eax, dword [ebp - 4]
call fcn.00407238
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00407288
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0044b808
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x44c0ec
xor eax, eax
push ebp
push 0x44c0e5
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.0044a814
xor eax, eax
push ebp
push 0x44c0c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407238
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00407288
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0044a818
mov eax, dword [ebp - 4]
call fcn.00407238
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00407288
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0044b808
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x44c0a4
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.0044bdb8
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0044bef0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c0ab
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x44bf7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c11b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0044a814
ret
Function at 0x45100c
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 0x451012
ret
Function at 0x468e90
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 - 0xc]
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 [0x4be168], 0
je 0x468fd1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4b8104]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x468fd1
mov eax, dword [0x4be16c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4be168]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x468fa0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4be168]
call fcn.00439d00
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x468f98
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x468f98
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x468f98
mov eax, dword [ebp - 0x14]
call fcn.004747bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x468f98
push ebp
call fcn.00468e4c
pop ecx
test al, al
jne 0x468f98
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405174
test al, al
je 0x468f98
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00405174
cmp byte [ebp - 1], 0
je 0x468f98
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040a794
test al, al
je 0x468f98
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4be16c]
call fcn.004685a8
inc edi
dec ebx
jne 0x468ef5
mov eax, dword [0x4be16c]
cmp dword [eax + 8], 0
jle 0x468fb8
mov eax, dword [0x4be16c]
call fcn.00468660
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x468fd1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00468cb0
pop ecx
test al, al
jne 0x468fd1
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
Function at 0x471334
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040a77c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0046b410
test ebx, ebx
jne 0x471387
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004711b0
mov ebx, eax
test ebx, ebx
je 0x47147d
cmp esi, ebx
je 0x4713b0
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4713c5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4713fd
add eax, 0xffffff5f
sub eax, 2
jb 0x471415
dec eax
sub eax, 2
jb 0x471429
dec eax
sub eax, 2
jb 0x47141f
jmp 0x471433
add eax, 0xfffffdff
sub eax, 2
jb 0x471415
dec eax
sub eax, 2
jb 0x471429
dec eax
sub eax, 2
jb 0x47141f
jmp 0x471433
mov byte [esp + 0x120], 0
jmp 0x47143b
mov byte [esp + 0x120], 2
jmp 0x47143b
mov byte [esp + 0x120], 1
jmp 0x47143b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0049d67c
mov esi, eax
call fcn.00467d5c
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0046cdbc
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x47147f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x487fcc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004068f4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x488011
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004072c4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x48d5c0
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 0x48d6f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x44958c]
call fcn.0044a6c8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48d6cf
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0044a7b0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004072c4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x48d714
call fcn.00407474
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0044aa2c
test al, al
je 0x48d6b9
lea ecx, [ebp - 4]
mov edx, 0x48d788
mov eax, dword [ebp - 0xc]
call fcn.0044b274
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00421b38
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x48d6b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x48d7a0
mov eax, dword [ebp - 8]
push eax
call fcn.0040b594
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4b77c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d6b9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d6d6
mov eax, dword [ebp - 0xc]
call fcn.00404eec
ret

Function at 0x48d804
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 0x48d84b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48d82e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48d83f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x48d84b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x49d044
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 0
je 0x49d06d
test byte [ebp - 0xa], 4
je 0x49d08a
cmp byte [ebp - 5], 0
jne 0x49d11d
mov eax, dword [ebp - 0xc]
and eax, 0x40000
cmp eax, 0x40000
jne 0x49d11d
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 0x49d0c1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 5], 0
je 0x49d0dd
mov eax, dword [ebp - 0xc]
or eax, 0x40000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x49d0f1
mov eax, dword [ebp - 0xc]
and eax, 0xfffbffff
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetWindowLongW
mov al, byte [ebp - 6]
and al, byte [ebp - 0xd]
jne 0x49d0ff
cmp byte [ebp - 0xe], 0
je 0x49d11d
cmp byte [ebp - 0xe], 0
je 0x49d112
push 6
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
jmp 0x49d11d
push 5
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
mov esp, ebp
pop ebp
ret

Function at 0x49d474
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 0x49d49f
lea eax, [ebp - 0xc]
push eax
push 0x49d430
call sub.user32.dll_EnumWindows
jmp 0x49d4b3
lea eax, [ebp - 0xc]
push eax
push 0x49d404
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 0x49d5c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov ax, word [0x49d62c]
mov word [ebp - 4], ax
test byte [ebp - 2], 4
je 0x49d5e5
or word [ebp - 4], 1
test byte [ebp - 2], 8
je 0x49d5f0
or word [ebp - 4], 4
test byte [ebp - 2], 1
je 0x49d5fb
or word [ebp - 4], 8
test byte [ebp - 2], 2
je 0x49d606
or word [ebp - 4], 0x10
test byte [ebp - 2], 0x10
je 0x49d611
or word [ebp - 4], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49d622
or word [ebp - 4], 2
mov ax, word [ebp - 4]
pop ecx
pop ebp
ret

Function at 0x49d630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov ax, word [0x49d678]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49d654
or word [ebp - 6], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49d665
or word [ebp - 6], 4
test byte [ebp - 1], 0x20
je 0x49d670
or word [ebp - 6], 2
mov ax, word [ebp - 6]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a8310
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x4a8322
add esp, 0xfffffff0
call fcn.00405404
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.00445fd0
mov eax, dword [0x4b7ee0]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4a89c4
mov eax, dword [0x4b7eec]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4a89e4
mov eax, dword [ebp - 4]
call fcn.004a8a04
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov dl, 1
mov eax, dword [0x42e994]
call fcn.00404ebc
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x42e994]
call fcn.00404ebc
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x42e994]
call fcn.00404ebc
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x42e994]
call fcn.00404ebc
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42e994]
call fcn.00404ebc
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], 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 + 0x44], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov eax, 0x4a1df4
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x44ce4c]
call fcn.004520e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x44ce4c]
call fcn.004520e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x44ce4c]
call fcn.004520e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44ce4c]
call fcn.004520e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x44ce4c]
call fcn.004520e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
call fcn.004a910c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4a8e84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4a8e84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4a8e84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4a8e84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4a8e84
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4a84f6
call fcn.0040545c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4a8bf8
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 0x4a8dc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a8da1
mov dl, 1
mov eax, dword [0x431170]
call fcn.0043d820
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.004068f4
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 0x4a8d8a
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.0047a9a8
test al, al
je 0x4a8d7e
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, 0x4a8dd4
lea eax, [ebp - 0x39c]
call fcn.0041bca0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a8d7e
xor eax, eax
push ebp
push 0x4a8d77
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 0x4a8e44
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a8d60
lea eax, [ebp - 0x3a8]
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.004072c4
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 + 0x38]
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 + 0x40]
jne 0x4a8d60
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.004072c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d7e
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x4a8c6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov dl, 1
call fcn.0043d75c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8dca
lea eax, [ebp - 0x3a8]
call fcn.004068f4
ret
Function at 0x4a9b9c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4be24c]
cmp byte [eax + 0xad], 0
jne 0x4a9c14
cmp dword [0x4be264], 0
jne 0x4a9bd1
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4b7dc0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4be264], eax
cmp dword [0x4be260], 0
jne 0x4a9bec
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4be260], eax
cmp dword [0x4be268], 0
jne 0x4a9c14
lea eax, [ebp - 4]
push eax
push 0
push 0
mov eax, dword [0x4b7dbc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4be268], eax
pop ecx
pop ebp
ret

Function at 0x4a9cfc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.004a9c94
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4a9d1d
xor eax, eax
call fcn.004a9ccc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x4a9d37
mov al, 1
call fcn.004a9ccc
mov esp, ebp
pop ebp
ret

Function at 0x4aa830
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x170], 0
je 0x4aa8fe
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x4aa8f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x4aa760
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x4aa8f5
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4aa8af
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4aa8f5
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00439d00
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4aa8c4
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret