joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098c8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069e0
xor eax, eax
push ebp
push 0x409988
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004075a8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407758
mov eax, dword [ebx]
call fcn.00409790
test al, al
jne 0x409965
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004075a8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407758
mov eax, dword [ebx]
call fcn.00409790
test al, al
jne 0x409965
mov eax, ebx
call fcn.004068fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40998f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040695c
lea eax, [ebp - 4]
call fcn.004068fc
ret

Function at 0x4197c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x419819
test eax, edx
je 0x41981c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4197d7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4197fe
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4197ff
add ecx, 4
js 0x4197ef
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4197fc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4197fe
xor eax, eax
ret
test eax, eax
je 0x419828
test edx, edx
jne 0x4197c8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41a678
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040751c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41a6e2
test ah, 4
je 0x41a6db
test bl, bl
jne 0x41a6a0
mov al, 1
jmp 0x41a709
test al, 0x10
je 0x41a6a8
xor eax, eax
jmp 0x41a709
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41a6cc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41a709
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41a709
test al, 0x10
sete al
jmp 0x41a709
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41a703
cmp ebx, 3
je 0x41a703
cmp ebx, 0x7b
je 0x41a703
mov eax, esi
call fcn.0041a638
test al, al
jne 0x41a707
xor eax, eax
jmp 0x41a709
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41a710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040751c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41a7b7
test esi, 0x400
jne 0x41a74c
test esi, 0x10
setne bl
jmp 0x41a7d1
cmp byte [esp], 0
je 0x41a780
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41a7d1
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41a7d1
test esi, 0x10
je 0x41a78c
mov bl, 1
jmp 0x41a7d1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41a7b3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41a7d1
mov bl, 1
jmp 0x41a7d1
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41a7cb
cmp eax, 3
je 0x41a7cb
cmp eax, 0x7b
jne 0x41a7cf
xor ebx, ebx
jmp 0x41a7d1
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41e290
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41e2c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406a84
jmp 0x41e2d2
mov eax, ebx
mov edx, esi
call fcn.00406cdc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e2dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41e2fe
movzx eax, word [esp]
jmp 0x41e300
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41efbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41f0e1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041edcc
mov esi, eax
mov eax, dword [0x4f2e90]
cmp byte [eax], 0
je 0x41f089
mov eax, dword [0x4f2c60]
call fcn.00404838
call fcn.004044f8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41ef94]
call fcn.00408764
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41f0fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41f0c5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f2bf8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f5c34]
call fcn.00408858
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f0e8
lea eax, [ebp - 4]
mov edx, dword [0x41ef94]
call fcn.00408770
ret

Function at 0x41fd1c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41fdf2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406d24
lea eax, [ebp - 4]
call fcn.00406ef8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040751c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41fddc
mov eax, ebx
call fcn.0040437c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41fdd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040751c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41fdbf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41fe04
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41fdbf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fddc
mov eax, dword [ebp - 0x10]
call fcn.00404398
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fdf9
lea eax, [ebp - 4]
call fcn.004068fc
ret
Function at 0x420f44
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004075a8
add esp, 0x800
pop ebx
ret

Function at 0x442df4
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x442e92
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x442e56
cmp byte [ebx + 0x10], 0
jne 0x442e56
cmp byte [ebx + 0x3c], 0
jne 0x442e56
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x442e77
lea edx, [ebp - 4]
mov eax, dword [0x4f2e30]
call fcn.0040a18c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4346c8]
call fcn.0041f100
call fcn.00406000
jmp 0x442e77
lea edx, [ebp - 8]
mov eax, dword [0x4f2e30]
call fcn.0040a18c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4346c8]
call fcn.0041f100
call fcn.00406000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442e99
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040695c
ret

Function at 0x4431b8
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 + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x443206
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00442d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44321f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x443228
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00442d40
dec esi
jne 0x44324a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x444864
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f7f88
cmp dword [edi], 0
jne 0x4448e0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f7f84]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f1044
mov ecx, 2
call fcn.00404548
mov edx, 0x44483c
lea eax, [esi + 5]
call fcn.0044485c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044485c
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 0x4448b5
mov dword [0x4f7f84], 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 0x448084
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.0040751c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00447b28
test al, al
jne 0x4480e5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f2fc8]
mov dl, 1
mov eax, dword [0x44689c]
call fcn.0041f1f8
call fcn.00406000
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00447a90
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 0x44cdbc
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 0x44cdc2
ret
Function at 0x4650a8
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 [0x4f8170], 0
je 0x4651e9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4f2e10]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4651e9
mov eax, dword [0x4f8174]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4f8170]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4651b8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4f8170]
call fcn.004388e4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4651b0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4651b0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4651b0
mov eax, dword [ebp - 0x14]
call fcn.00470674
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4651b0
push ebp
call fcn.00465064
pop ecx
test al, al
jne 0x4651b0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405130
test al, al
je 0x4651b0
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.00405130
cmp byte [ebp - 1], 0
je 0x4651b0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040ab60
test al, al
je 0x4651b0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f8174]
call fcn.004647c0
inc edi
dec ebx
jne 0x46510d
mov eax, dword [0x4f8174]
cmp dword [eax + 8], 0
jle 0x4651d0
mov eax, dword [0x4f8174]
call fcn.00464878
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4651e9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00464ec8
pop ecx
test al, al
jne 0x4651e9
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 0x46d2fc
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.0040ab48
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.00467628
test ebx, ebx
jne 0x46d34f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0046d178
mov ebx, eax
test ebx, ebx
je 0x46d445
cmp esi, ebx
je 0x46d378
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 0x46d38d
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 0x46d3c5
add eax, 0xffffff5f
sub eax, 2
jb 0x46d3dd
dec eax
sub eax, 2
jb 0x46d3f1
dec eax
sub eax, 2
jb 0x46d3e7
jmp 0x46d3fb
add eax, 0xfffffdff
sub eax, 2
jb 0x46d3dd
dec eax
sub eax, 2
jb 0x46d3f1
dec eax
sub eax, 2
jb 0x46d3e7
jmp 0x46d3fb
mov byte [esp + 0x120], 0
jmp 0x46d403
mov byte [esp + 0x120], 2
jmp 0x46d403
mov byte [esp + 0x120], 1
jmp 0x46d403
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0049dd50
mov esi, eax
call fcn.00463eac
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.00468e88
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x46d447
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x482484
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.004068fc
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4824c9
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.004075a8
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x487700
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 0x487839
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 [0x446a90]
call fcn.00447ab8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48780f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00447b64
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004075a8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x487854
call fcn.00407758
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00447bc8
test al, al
je 0x4877f9
lea ecx, [ebp - 4]
mov edx, 0x4878c8
mov eax, dword [ebp - 0xc]
call fcn.00447fd4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00421208
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4877f2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4878e0
mov eax, dword [ebp - 8]
push eax
call fcn.0040b5c8
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4f1824]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4877f9
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 0x487816
mov eax, dword [ebp - 0xc]
call fcn.00404eb0
ret

Function at 0x487944
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 0x48798b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48796e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48797f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x48798b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x49d858
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 0x49d879
test edi, 0x40000
je 0x49d893
test bl, bl
jne 0x49d914
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x49d914
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 0x49d8c6
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x49d8db
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x49d8ea
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x49d8fb
cmp byte [esp + 2], 0
je 0x49d914
cmp byte [esp + 2], 0
je 0x49d90c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x49d914
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x49dbc0
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 0x49dbe6
mov eax, esp
push eax
push 0x49db88
call sub.user32.dll_EnumWindows
jmp 0x49dbf9
mov eax, esp
push eax
push 0x49db68
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 0x49dcbc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x49dd0c]
test bl, 4
je 0x49dcd0
or si, 1
test bl, 8
je 0x49dcd9
or si, 4
test bl, 1
je 0x49dce2
or si, 8
test bl, 2
je 0x49dceb
or si, 0x10
test bl, 0x10
je 0x49dcf4
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49dd04
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x49dd10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x49dd4c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49dd2b
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49dd3b
or bx, 4
test esi, 0x20000000
je 0x49dd47
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4a62f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a630a
add esp, 0xfffffff0
call fcn.004053c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00443344
mov eax, dword [0x4f2c00]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a6734
mov eax, dword [0x4f2c0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a6740
mov eax, ebx
call fcn.004a674c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x42d8e0]
call fcn.00404e80
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x42d8e0]
call fcn.00404e80
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x42d8e0]
call fcn.00404e80
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x42d8e0]
call fcn.00404e80
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42d8e0]
call fcn.00404e80
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4a167c
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x448cf4]
call fcn.0044de64
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x448cf4]
call fcn.0044de64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x448cf4]
call fcn.0044de64
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x448cf4]
call fcn.0044de64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x448cf4]
call fcn.0044de64
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004a6ca4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6b14
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6b14
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6b14
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6b14
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6b14
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a6481
call fcn.00405418
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret