joyce8/EMBER2024-capa huggingface dataset:
Function at 0x160b01
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x18b5d4]
xor ebx, ebx
push ebx
push 6
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov edi, 0x148
cmp esi, ebx
je 0x167339
push edi
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x1673af
cmp dword [ebp - 4], ebx
jl 0x160b7a
mov dword [0x18a058], esi
mov dword [0x18a05c], eax
cmp dword [ebp - 4], ebx
jl 0x1673c7
mov eax, dword [section..data]
pop edi
pop esi
pop ebx
cmp eax, section..data
je 0x160b75
test byte [eax + 0x1c], 4
jne 0x1673db
mov eax, dword [ebp - 4]
leave
ret
cmp esi, ebx
jne 0x1673bb
jmp 0x160b53

Function at 0x161435
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x1614d0
push 0x80000002
mov dword [0x18a034], 0x40000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x161495
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x18a034
lea eax, [ebp - 0xc]
push eax
push 0
push 0x16149c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x18a034]
leave
ret

Function at 0x161b55
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, edi
je 0x161bf8
push ebx
mov ebx, dword [0x1511e8]
push esi
mov esi, 0x161c34
push esi
push eax
call ebx
push esi
push edi
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
je 0x161bf6
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x161c1c
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x16669a
push 0xffffffffffffffff
push 0x161c00
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x1666ab
push 0xffffffffffffffff
push 0x161c3c
push 0xffffffffffffffff
push edi
xor edi, edi
inc edi
push edi
push 0x7f
call esi
cmp eax, 2
je 0x162434
push 0x161c34
push 0
call ebx
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x161b98
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x161be5
Function at 0x161fed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push 0x162088
push 0x80000002
mov dword [0x18a0d8], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x162059
and dword [ebp - 8], eax
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x162060
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x16ae1f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x18a0d8]
leave
ret

Function at 0x1623c1
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x162418
call fcn.00151eb0
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x162410
cmp ecx, 0xffffffff
je 0x162410
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x162409
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x162409
cmp edx, 0x10000000
jae 0x162409
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x16acd6
mov dword [ebp - 4], 0xfffffffe
call fcn.00151f00
ret 4

Function at 0x1631c6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
lea ebx, [esi + 0x50]
push ebx
push 0
push esi
push 0x157526
push dword [esi + 0x58]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x16717e
push edi
push 1
mov edi, 0x18a10c
push edi
call fcn.00152af0
mov ecx, dword [0x18a050]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.0016291b
push edi
mov esi, eax
call fcn.00152ab0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5087219f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
jne 0x508721b8
xor esi, esi
jmp 0x508721ec
push dword [ebp + 8]
call dword [sym.imp.vsansi.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.508744f0
mov esi, esp
cmp esi, ebx
je 0x508721b4
and byte [esi], 0
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], esi
jne 0x50872208
call fcn.5087228f
mov esi, eax
jmp 0x50872283
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x50872229
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x50872230
call fcn.5087228f
jmp 0x50872278
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov eax, esi
je 0x5087226c
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.508744f0
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov eax, esp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax + ebx], 0
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push eax
call fcn.508722ae
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x50872f7f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x50872f8a
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x508730ff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.50872cde
cmp eax, esi
jne 0x50873177
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x50873140
lea eax, [ebp - 0x110]
push eax
call fcn.508730ff
cmp eax, esi
jne 0x50873176
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x50873130
call fcn.50872cc7
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.50872cc7
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x50873374
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x5087338e
xor esi, esi
jmp 0x508733c1
push dword [ebp + 8]
call dword [sym.imp.vsansi.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.508744f0
mov esi, esp
cmp esi, ebx
je 0x5087338a
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push 1
push 3
push ebx
push ebx
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x508733e3
call fcn.5087228f
jmp 0x5087343b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.508744f0
mov edi, esp
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5087341c
call fcn.5087228f
mov esi, eax
cmp esi, ebx
jl 0x50873430
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push edi
lea ecx, [ebp - 0xc]
mov byte [eax + edi], bl
call fcn.508722ae
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50873fc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x50871668
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5087404c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x50871684
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xfa
mov byte [ebp - 0x114], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50874034
xor eax, eax
mov cl, byte [eax + 0x5087165c]
mov byte [ebp + eax - 0x114], cl
inc eax
cmp cl, bl
jne 0x50874022
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x50874739
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.50874717
and byte [esi + 0xc], 0
mov eax, 0x50870000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x50874788
cmp dword [ebp - 0x18], 5
jb 0x508747a0
jmp 0x5087479c
cmp dword [ebp - 0xc], 1
jne 0x508747a0
cmp dword [ebp - 0x18], 4
ja 0x5087479c
jne 0x508747a0
cmp dword [ebp - 0x14], 0
jbe 0x508747a0
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x50875050
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x6c3a70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c3000]
push edi
jmp 0x6c3a8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6c3a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3a80
mov eax, 1
add ebx, ebx
jne 0x6c3aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6c3ab4
jne 0x6c3ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3ad3
dec eax
add ebx, ebx
jne 0x6c3ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6c3a98
add ebx, ebx
jne 0x6c3acf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6c3b25
xor ecx, ecx
sub eax, 3
jb 0x6c3aeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6c3b5a
sar eax, 1
mov ebp, eax
jmp 0x6c3af6
add ebx, ebx
jne 0x6c3af6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3ac4
inc ecx
add ebx, ebx
jne 0x6c3b04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3ac4
add ebx, ebx
jne 0x6c3b11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6c3b06
jne 0x6c3b22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c3b06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6c3b44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6c3b36
jmp 0x6c3a86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6c3b44
add edi, ecx
jmp 0x6c3a86
pop esi
mov edi, esi
mov ecx, 0x106d3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6c3b62
cmp byte [edi], 0x1e
jne 0x6c3b62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6c3b67
lea edi, [esi + 0x2b7000]
mov eax, dword [edi]
or eax, eax
je 0x6c3bdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d3bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d3da0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6c3b94
mov ecx, edi
jns 0x6c3bc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d3da8]
or eax, eax
je 0x6c3bd9
mov dword [ebx], eax
add ebx, 4
jmp 0x6c3bb1
call dword [esi + 0x2d3da4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6c3c10
cmp al, 0xef
ja 0x6c3c03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6c3be5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6c3bf2
mov ebp, dword [esi + 0x2d3dac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6c3c44
sub esp, 0xffffff80
jmp 0x5af8dc
Function at 0x41ad66
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x438400
jmp fcn.00441460
cmp dword [0x47efb0], 0
jne 0x438419
push 0
push 0x10001
call fcn.0041a523
add esp, 8
ret
jmp 0x41b022
Function at 0x43d9b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x47da58]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4802b8
push 0x47efb0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x43d9f8
push str.Win32:_Failed_to_retrieve_own_module_handle
push 0x10008
call fcn.0041a24e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a7a8
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
call ebx
mov dword [0x48109c], eax
test eax, eax
jne 0x43da32
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.0041a24e
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a7a8
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push eax
call edi
push str.ChangeWindowMessageFilterEx
push dword [0x48109c]
mov dword [0x4810a0], eax
call edi
push str.EnableNonClientDpiScaling
push dword [0x48109c]
mov dword [0x4810a4], eax
call edi
push str.SetProcessDpiAwarenessContext
push dword [0x48109c]
mov dword [0x4810a8], eax
call edi
push str.GetDpiForWindow
push dword [0x48109c]
mov dword [0x4810ac], eax
call edi
push str.AdjustWindowRectExForDpi
push dword [0x48109c]
mov dword [0x4810b0], eax
call edi
push str.GetSystemMetricsForDpi
push dword [0x48109c]
mov dword [0x4810b4], eax
call edi
push str.dinput8.dll
mov dword [0x4810b8], eax
call ebx
mov dword [0x481084], eax
test eax, eax
je 0x43dacf
push str.DirectInput8Create
push eax
call edi
mov dword [0x481088], eax
push esi
mov dword [ebp - 0x1c], str.xinput1_4.dll
xor esi, esi
mov dword [ebp - 0x18], str.xinput1_3.dll
mov eax, str.xinput1_4.dll
mov dword [ebp - 0x14], str.xinput9_1_0.dll
mov dword [ebp - 0x10], str.xinput1_2.dll
mov dword [ebp - 0xc], str.xinput1_1.dll
mov dword [ebp - 8], 0
push eax
call ebx
mov dword [0x481090], eax
test eax, eax
jne 0x43db18
mov eax, dword [ebp + esi*4 - 0x18]
inc esi
test eax, eax
jne 0x43db01
jmp 0x43db37
push str.XInputGetCapabilities
push eax
call edi
push str.XInputGetState
push dword [0x481090]
mov dword [0x481094], eax
call edi
mov dword [0x481098], eax
push str.dwmapi.dll
call ebx
mov dword [0x4810bc], eax
pop esi
test eax, eax
je 0x43db8b
push str.DwmIsCompositionEnabled
push eax
call edi
push str.DwmFlush
push dword [0x4810bc]
mov dword [0x4810c0], eax
call edi
push str.DwmEnableBlurBehindWindow
push dword [0x4810bc]
mov dword [0x4810c4], eax
call edi
push str.DwmGetColorizationColor
push dword [0x4810bc]
mov dword [0x4810c8], eax
call edi
mov dword [0x4810cc], eax
push str.shcore.dll
call ebx
mov dword [0x4810d0], eax
test eax, eax
je 0x43dbba
push str.SetProcessDpiAwareness
push eax
call edi
push str.GetDpiForMonitor
push dword [0x4810d0]
mov dword [0x4810d4], eax
call edi
mov dword [0x4810d8], eax
push str.ntdll.dll
call ebx
mov dword [0x4810dc], eax
test eax, eax
je 0x43dbd7
push str.RtlVerifyVersionInfo
push eax
call edi
mov dword [0x4810e0], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.0041a7a8
mov esp, ebp
pop ebp
ret
Function at 0x442a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov ecx, 0x7fffffff
cmp dword [ebp + 8], ebx
jle 0x442a8b
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
nop
mov eax, dword [edi + 4]
mov esi, ecx
imul eax, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, edi
cmp eax, ecx
cmovl ecx, eax
cmp eax, esi
cmovge edx, ebx
add edi, 0xc
sub dword [ebp + 8], 1
mov ebx, edx
mov edx, dword [ebp + 0x10]
jne 0x442a60
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4432e0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47da58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov dword [0x481070], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x44333b
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [ebp - 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x481060], xmm0
movd xmm0, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x481068], xmm0
cmp dword [edi + 0x68], 0x34001
jne 0x443360
mov eax, dword [edi + 0x40]
test eax, eax
je 0x443350
push dword [eax + 4]
jmp 0x443362
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x443362
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push edi
call fcn.0041a046
add esp, 4
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [0x481074], edi
cmp dword [edi + 0x1e8], 0
je 0x4433f5
mov eax, dword [edi + 0x2ac]
push 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x10], 0x20001
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x4433f5
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.0041a24e
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041a7a8
mov esp, ebp
pop ebp
ret

Function at 0x443450
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xc
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x20001
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x44348f
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.0041a24e
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4434b0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1e8], 0
je 0x4434fc
push 0xc
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x20001
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x4434fc
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.0041a24e
add esp, 8
push 0
mov dword [0x481070], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x481068]
mov dword [0x481074], 0
cvttsd2si ecx, qword [0x481060]
mov dword [ebp - 4], eax
mov dword [esi + 0x2dc], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2ac]
mov dword [ebp - 8], ecx
mov dword [esi + 0x2d8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x68], 0x34001
jne 0x44358d
mov eax, dword [esi + 0x40]
test eax, eax
je 0x443574
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4435e0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push 0xc
push 1
mov dword [ebp - 0xc], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x443624
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.0041a24e
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4436e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
push 0x11
shr esi, 0xf
call ebx
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebx
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
push 0x5b
mov si, ax
call edi
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
call ebx
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebx
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
mov eax, ecx
pop ebx
ret