joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413604
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4c1f84
push 0xa
push 0x413698
mov eax, dword [0x4c1970]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x413628
call fcn.0042ff8c
push ebx
mov eax, dword [0x4c1970]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x41363f
call fcn.0042ff8c
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x413651
call fcn.0042ff8c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c1f88], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c1f8c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c1f90], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c1f94], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c1f98], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c1f9c], edx
pop esi
pop ebx
ret

Function at 0x422c50
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.00422954
dec esi
jne 0x422c72
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x423e1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c2288
cmp dword [edi], 0
jne 0x423e98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4c2284]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ba1e8
mov ecx, 2
call fcn.0043c120
mov edx, 0x423df4
lea eax, [esi + 5]
call fcn.00423e14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423e14
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 0x423e6d
mov dword [0x4c2284], 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 0x4257b0
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.004250f8
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.0043eac8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
test eax, eax
je 0x42580f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c14d0]
mov dl, 1
mov eax, dword [0x424f70]
call fcn.0042e23c
call fcn.0043d684
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425818
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.0043eac8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
je 0x425870
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c14cc]
mov dl, 1
mov eax, dword [0x424f70]
call fcn.0042e23c
call fcn.0043d684
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00425128
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 0x429310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4293b9
test eax, edx
je 0x4293bc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x429339
push edx
mov edx, eax
mov eax, esp
call fcn.0043ec40
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x42934f
push eax
lea eax, [esp + 8]
call fcn.0043ec40
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42935e
movzx eax, word [eax]
sub eax, ecx
jmp 0x429385
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 0x42939f
add ecx, 4
js 0x429376
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x42939c
push eax
mov eax, ecx
mov edx, 2
call fcn.0043dde0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x429383
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x429385
xor eax, eax
ret
test eax, eax
je 0x4293cc
test edx, edx
jne 0x429320
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0043eac8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42a30a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42a32b
cmp ebx, 3
je 0x42a32b
cmp ebx, 0x7b
je 0x42a32b
mov eax, esi
call fcn.0042a2ac
test al, al
jne 0x42a32f
xor eax, eax
jmp 0x42a331
mov al, 1
pop esi
pop ebx
ret

Function at 0x42d808
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
test eax, eax
jle 0x42d841
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0043eb78
jmp 0x42d84a
mov eax, ebx
mov edx, esi
call fcn.0043ea3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42d854
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
test eax, eax
jle 0x42d876
movzx eax, word [esp]
jmp 0x42d878
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
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 0x42e125
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042de14
mov esi, eax
mov eax, dword [0x4c16e8]
cmp byte [eax], 0
je 0x42e0cd
mov eax, dword [0x4c16ec]
call fcn.0043c3e8
call fcn.0043c0d0
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42dfdc]
call fcn.0044020c
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42e140
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42e109
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c156c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c1970]
call fcn.00440300
push eax
call sub.USER32.DLL_LoadStringW
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 0x42e12c
lea eax, [ebp - 4]
mov edx, dword [0x42dfdc]
call fcn.00440218
ret
Function at 0x42ed50
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 0x42ee26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0043ea90
lea eax, [ebp - 4]
call fcn.0043f494
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0043eac8
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ee10
mov eax, ebx
call fcn.0043bee0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ee09
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.0043eac8
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x42edf3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ee38
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x42edf3
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 0x42ee10
mov eax, dword [ebp - 0x10]
call fcn.0043befc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ee2d
lea eax, [ebp - 4]
call fcn.0043ea2c
ret

Function at 0x42fe3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0043e104
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x42fde6
mov eax, edi
add eax, eax
call fcn.0043bee0
mov esi, eax
jmp 0x42fde8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42fe21
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42fe0b
mov eax, esp
cmp esi, eax
je 0x42fe2e
mov eax, esi
call fcn.0043befc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42fe68
cmp bl, 0
je 0x42fe64
cmp bl, 0x41
jl 0x42fe5f
cmp bl, 0x5a
jg 0x42fe5f
or bl, 0x20
xor al, bl
inc esi
jmp 0x42fe43
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42fda8

Function at 0x43c2dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0043ea3c
test esi, esi
jne 0x43c314
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0043eb78
jmp 0x43c332
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0043c220
mov edi, eax
test esi, esi
je 0x43c332
cmp dword [ebx], 0
je 0x43c332
dec esi
jmp 0x43c31b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x43c994
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ba664]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43ca2c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x43ca0c
xor eax, eax
push ebp
push 0x43ca05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x43ca64
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ca0c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4ba664]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ba664], ax
mov esp, ebp
pop ebp
ret

Function at 0x43db34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c4614], 0
je 0x43db95
cmp word [0x4c48f0], 0xd7b2
jne 0x43db5d
cmp dword [0x4c48f8], 0
jbe 0x43db5d
mov eax, 0x4c48ec
call dword [0x4c4908]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x43dbc0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4ba670], 0
jne 0x43dbb1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x43dd40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ba650], 0
je 0x43dd66
mov edx, esi
mov eax, ebx
call dword [0x4ba650]
jmp 0x43dd75
mov eax, 8
call fcn.0043bee0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c4615], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x43dd08
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x440fcc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x441084
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4c4eac], 1
jae 0x441131
call fcn.0043bcbc
mov byte [0x4ba660], 2
mov dword [0x4c45d0], 0x4b3062
mov dword [0x4c45d4], 0x4b3080
mov byte [0x4c4616], 2
call fcn.00440fcc
mov dword [0x4c4618], eax
mov dword [0x4c45bc], 0x43fca0
call fcn.0043c964
test al, al
je 0x4410da
call fcn.0043c994
call fcn.0043ca80
mov word [0x4c4620], 0xd7b0
mov word [0x4c48f0], 0xd7b0
mov word [0x4c4bc0], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x4c4608], eax
call fcn.0043a2b4
mov dword [0x4c4604], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x4c4e94], eax
mov dword [0x4c4e98], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4c45fc], eax
call fcn.00440fe0
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0043ea3c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x44b157
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.0043ec24
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x450570
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 0x4506a9
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 [0x424fe4]
call fcn.00425150
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45067f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.004251f0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0043ec24
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4506c4
call fcn.0043eef8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00425458
test al, al
je 0x450669
lea ecx, [ebp - 4]
mov edx, 0x450738
mov eax, dword [ebp - 0xc]
call fcn.00425730
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00430608
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x450662
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x450750
mov eax, dword [ebp - 8]
push eax
call fcn.00413884
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4bb478]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450669
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450686
mov eax, dword [ebp - 0xc]
call fcn.0043cbcc
ret

Function at 0x4507b4
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 0x4507fb
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4507de
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4507ef
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4507fb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4534d4
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 0x4534da
ret
Function at 0x45f2c8
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 0x45f2e9
test edi, 0x40000
je 0x45f303
test bl, bl
jne 0x45f384
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x45f384
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 0x45f336
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x45f34b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x45f35a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x45f36b
cmp byte [esp + 2], 0
je 0x45f384
cmp byte [esp + 2], 0
je 0x45f37c
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x45f384
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45f630
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 0x45f656
mov eax, esp
push eax
push 0x45f5f8
call sub.USER32.DLL_EnumWindows
jmp 0x45f669
mov eax, esp
push eax
push 0x45f5d8
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45f72c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45f780]
test si, 4
je 0x45f741
or bl, 1
test si, 8
je 0x45f74b
or bl, 4
test si, 1
je 0x45f755
or bl, 8
test si, 2
je 0x45f75f
or bl, 0x10
test si, 0x10
je 0x45f769
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45f778
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45f784
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45f7c0]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45f79e
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45f7ad
or bl, 4
test esi, 0x20000000
je 0x45f7b8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x467cf4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x467d06
add esp, 0xfffffff0
call fcn.0043d01c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422d5c
mov eax, dword [0x4c1708]
mov dword [eax + 4], ebx
mov dword [eax], 0x468108
mov eax, dword [0x4c170c]
mov dword [eax + 4], ebx
mov dword [eax], 0x468114
mov eax, ebx
call fcn.00468120
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4180f4]
call fcn.0043cb9c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4180f4]
call fcn.0043cb9c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4180f4]
call fcn.0043cb9c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4180f4]
call fcn.0043cb9c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4180f4]
call fcn.0043cb9c
mov dword [ebx + 0x74], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x463054
push eax
push 0
push 0
mov eax, dword [0x4c17a4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x452730]
call fcn.0045450c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x452730]
call fcn.0045450c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x452730]
call fcn.0045450c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x452730]
call fcn.0045450c
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00468618
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4684f0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4684f0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4684f0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4684f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x467e59
call fcn.0043d074
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret