joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426608
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00409d88
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040aa64
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42664d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409f10
jmp 0x426666
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040abf8
push ebx
mov eax, dword [esi]
call fcn.0040aa64
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467f04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x467f0c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49d7c4
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d862
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x49d826
cmp byte [ebx + 0x11], 0
jne 0x49d826
cmp byte [ebx + 0x3c], 0
jne 0x49d826
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x49d847
lea edx, [ebp - 4]
mov eax, dword [0x62602c]
call fcn.0040dd14
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4769cc]
call fcn.00424430
call fcn.00409444
jmp 0x49d847
lea edx, [ebp - 8]
mov eax, dword [0x62602c]
call fcn.0040dd14
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4769cc]
call fcn.00424430
call fcn.00409444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d869
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409de8
ret

Function at 0x49dcd0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49dd1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0049d710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49dd37
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49dd40
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0049d710
dec esi
jne 0x49dd62
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4a05a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x62c3f4
cmp dword [edi], 0
jne 0x4a0624
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x62c3f0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x621554
mov ecx, 2
call fcn.00406e64
mov edx, 0x4a0580
lea eax, [esi + 5]
call fcn.004a05a0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a05a0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4a05f9
mov dword [0x62c3f0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4b4c34
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4b4cec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004b4bc8
test al, al
je 0x4b4cce
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409f10
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4b4cce
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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.0040aa64
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040aa64
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040aacc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4b4c87
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4cf3
lea eax, [ebp - 0x2c]
call fcn.00409d88
lea eax, [ebp - 4]
call fcn.00409d88
ret

Function at 0x4b4fa0
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.0040aa64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004b4940
test al, al
jne 0x4b5001
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x626470]
mov dl, 1
mov eax, dword [0x4b3674]
call fcn.00424528
call fcn.00409444
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b48a8
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 0x4bc278
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 0x4bc27e
ret
Function at 0x4d85fc
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 [0x62c618], 0
je 0x4d873d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x625fb4]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4d873d
mov eax, dword [0x62c61c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x62c618]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4d870c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x62c618]
call fcn.0048d118
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4d8704
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x4d8704
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x4d8704
mov eax, dword [ebp - 0x14]
call fcn.004e4028
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d8704
push ebp
call fcn.004d85b8
pop ecx
test al, al
jne 0x4d8704
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004082c0
test al, al
je 0x4d8704
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.004082c0
cmp byte [ebp - 9], 0
je 0x4d8704
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040fd84
test al, al
je 0x4d8704
mov edx, dword [ebp - 0x14]
mov eax, dword [0x62c61c]
call fcn.004d7d00
inc edi
dec ebx
jne 0x4d8661
mov eax, dword [0x62c61c]
cmp dword [eax + 8], 0
jle 0x4d8724
mov eax, dword [0x62c61c]
call fcn.004d7db4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d873d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004d8420
pop ecx
test al, al
jne 0x4d873d
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 0x4e0bcc
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.0040ff84
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.004dac40
test ebx, ebx
jne 0x4e0c1f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004e0a44
mov ebx, eax
test ebx, ebx
je 0x4e0d15
cmp esi, ebx
je 0x4e0c48
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x4e0c5d
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 0x4e0c95
add eax, 0xffffff5f
sub eax, 2
jb 0x4e0cad
dec eax
sub eax, 2
jb 0x4e0cc1
dec eax
sub eax, 2
jb 0x4e0cb7
jmp 0x4e0ccb
add eax, 0xfffffdff
sub eax, 2
jb 0x4e0cad
dec eax
sub eax, 2
jb 0x4e0cc1
dec eax
sub eax, 2
jb 0x4e0cb7
jmp 0x4e0ccb
mov byte [esp + 0x120], 0
jmp 0x4e0cd3
mov byte [esp + 0x120], 2
jmp 0x4e0cd3
mov byte [esp + 0x120], 1
jmp 0x4e0cd3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0055bbc0
mov esi, eax
call fcn.004d76ac
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.004dc52c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4e0d17
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x52c26c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0052c31c
test eax, eax
je 0x52c2a7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0052c31c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409f10
jmp 0x52c2b5
mov ecx, esi
mov edx, 0x52c2d4
mov eax, ebx
call fcn.0052c1f4
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040a168
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x54b8c8
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.00409d88
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x54b91a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x54b913
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040ab20
jmp 0x54b91a
mov eax, esi
call fcn.00409d88
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x550e74
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 0x550fd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6224cc], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4b3898]
call fcn.004b48d0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x550fa9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004b497c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040ab20
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x550fec
call fcn.0040acd0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004b49e0
test al, al
je 0x550f93
lea ecx, [ebp - 4]
mov edx, 0x551060
mov eax, dword [ebp - 0xc]
call fcn.004b4f24
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00426584
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x550f93
xor edx, edx
push ebp
push 0x550f8c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x551078
mov eax, dword [ebp - 8]
push eax
call fcn.00411270
test eax, eax
je 0x550f75
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x550f75
call fcn.00550e00
test eax, eax
je 0x550f65
mov eax, dword [ebx + 0x50]
jmp 0x550f68
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6224cc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550f93
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 0x550fb0
mov eax, dword [ebp - 0xc]
call fcn.00408000
ret

Function at 0x5510dc
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 0x551123
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x551106
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x551117
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x551123
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x55b6cc
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 0x55b6ed
test edi, 0x40000
je 0x55b707
test bl, bl
jne 0x55b788
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x55b788
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 0x55b73a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x55b74f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x55b75e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x55b76f
cmp byte [esp + 2], 0
je 0x55b788
cmp byte [esp + 2], 0
je 0x55b780
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x55b788
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x55ba30
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 0x55ba56
mov eax, esp
push eax
push 0x55b9f8
call sub.user32.dll_EnumWindows
jmp 0x55ba69
mov eax, esp
push eax
push 0x55b9d8
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 0x55bb2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x55bb7c]
test bl, 4
je 0x55bb40
or si, 1
test bl, 8
je 0x55bb49
or si, 4
test bl, 1
je 0x55bb52
or si, 8
test bl, 2
je 0x55bb5b
or si, 0x10
test bl, 0x10
je 0x55bb64
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55bb74
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x55bb80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x55bbbc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55bb9b
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55bbab
or bx, 4
test esi, 0x20000000
je 0x55bbb7
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x564658
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x56466a
add esp, 0xfffffff0
call fcn.00408570
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049df94
mov eax, dword [0x625a08]
mov dword [eax + 4], ebx
mov dword [eax], 0x564b20
mov eax, dword [0x625a1c]
mov dword [eax + 4], ebx
mov dword [eax], 0x564b2c
mov eax, ebx
call fcn.00564b38
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
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, 0x55f6f0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4b7e94]
call fcn.004bcbbc
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4b7e94]
call fcn.004bcbbc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4b7e94]
call fcn.004bcbbc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4b7e94]
call fcn.004bcbbc
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4b7e94]
call fcn.004bcbbc
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.0056507c
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x564efc
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x564efc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x564efc
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x564efc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x564efc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5647ea
call fcn.004085c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x564c9c
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 0x564e47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x564e28
mov dl, 1
mov eax, dword [0x46f2c8]
call fcn.004914f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409d88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x564e17
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.004ea864
test al, al
je 0x564e0a
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, 0x564e58
lea eax, [ebp - 0x394]
call fcn.0041fb74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x564e0a
xor eax, eax
push ebp
push 0x564e03
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 0x564ec8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x564dec
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040ab20
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 0x564dec
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040ab20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x564e0a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x564d0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.00491448
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 0x564e4e
lea eax, [ebp - 0x3a0]
call fcn.00409d88
ret

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

Disassembly:
push ecx
mov eax, dword [0x62c71c]
cmp byte [eax + 0xc5], 0
jne 0x565a16
cmp dword [0x62c740], 0
jne 0x5659d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x6225e0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x62c740], eax
cmp dword [0x62c73c], 0
jne 0x5659f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x62c73c], eax
cmp dword [0x62c744], 0
jne 0x565a16
push esp
push 0
push 0
mov eax, dword [0x6225dc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x62c744], eax
pop edx
ret
Function at 0x565dc0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x565dd7
add esp, 0xfffffff0
call fcn.00408570
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049df94
mov eax, dword [0x62574c]
cmp byte [eax], 0
jne 0x565e04
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x625dfc]
cmp word [eax + 2], 0
jne 0x565e1e
mov eax, dword [0x625dfc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00568058
mov eax, dword [0x626038]
cmp word [eax + 2], 0
jne 0x565e38
mov eax, dword [0x626038]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0056825c
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4b7e94]
call fcn.004bcbbc
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5686d8
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
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 [0x4bb994]
call fcn.004c39d8
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x566020
mov eax, dword [0x625b48]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004c3ddc
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x568998
mov dl, 1
mov eax, dword [0x46bb2c]
call fcn.00407fd0
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x625b48]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041f974
test eax, eax
je 0x565f52
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041f7b0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041f958
test eax, eax
je 0x565f6a
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.0040ab20
push ebx
push 0x567a34
call fcn.0055bb10
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x62574c]
cmp byte [eax], 0
jne 0x565fbb
mov eax, ebx
call fcn.00566204
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.00568bd0
mov eax, ebx
call fcn.0056983c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x566018
call fcn.004085c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret