joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
lea eax, [esp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareAlcatelDashboard
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40446e
push 0x103
push eax
lea ecx, [esp + 0x1d]
push ecx
mov byte [esp + 0x20], al
call fcn.004fb1b0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40445f
lea eax, [esp + 0x14]
mov edx, ebx
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404450
mov edi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x404482
test ebp, ebp
je 0x404482
mov edx, ebx
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404478
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
xor ecx, esp
call fcn.004f96cd
add esp, 0x114
ret

Function at 0x404960
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.004fb1b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 8], 5
jne 0x4049ad
lea eax, [esi + 1]
cmp dword [esp + 0xc], esi
je 0x4049af
mov eax, esi
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
call fcn.004f96cd
add esp, 0xa0
ret

Function at 0x404db0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f070
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x565fd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404e17
cmp dword [ebp - 0xac], 5
jb 0x404e17
push esi
call fcn.00404a00
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f96cd
mov esp, ebp
pop ebp
ret

Function at 0x4050d0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor edx, edx
push edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
push edx
push eax
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f96cd
add esp, 0x14
ret
Function at 0x4051b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x40]
push edi
mov dword [esi], vtable.CDeviceUtility.0
test eax, eax
je 0x405205
mov ecx, dword [esi + 0x44]
push 0
push 0
push 0x805
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [esi + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4051f4
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x405205
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea edx, [esi + 0xc]
push edx
call edi
lea eax, [esi + 0x24]
push eax
call edi
add esi, 0x48
call fcn.00401c70
mov ecx, dword [esi]
push ecx
call fcn.00407599
add esp, 4
pop edi
pop esi
ret

Function at 0x4054b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
push edi
test eax, eax
je 0x4054ff
mov ecx, dword [esi + 0x44]
push 0
push 0
push 0x805
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [esi + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4054ee
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4054ff
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
ret

Function at 0x405740
Capabilities:
Get disk information

Disassembly:
sub esp, 0x12c
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x130]
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
mov edx, 1
shl edx, cl
test eax, edx
je 0x405802
mov bl, cl
add bl, 0x41
mov dword [esp + 0x14], 0
cmp bl, 0x41
je 0x405802
cmp bl, 0x42
je 0x405802
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edi, [esp + 0x18]
mov dl, bl
call fcn.00405630
cmp dword [esp + 0x14], 0
je 0x4057fe
movsx edx, bl
push edx
push 0x547f3c
lea edx, [esp + 0x2c]
call fcn.00406b40
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi + 4]
add esp, 8
lea eax, [esp + 0x24]
push eax
push ecx
push esi
call fcn.00406a20
mov ecx, ebp
mov edi, eax
call fcn.00406a60
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
mov dword [edx], edi
xor esi, esi
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x20
jb 0x405783
mov ecx, dword [esp + 0x138]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f96cd
add esp, 0x12c
ret 8
Function at 0x406be0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x406c2b
cmp dword [edi + 8], ebx
jle 0x406c1c
push ebp
push esi
xor ebp, ebp
mov esi, dword [edi + 4]
add esi, ebp
call fcn.00402c70
inc ebx
add ebp, 0x14
cmp ebx, dword [edi + 8]
jl 0x406c05
pop esi
xor ebx, ebx
pop ebp
mov eax, dword [edi + 4]
push eax
call fcn.00407599
add esp, 4
mov dword [edi + 4], ebx
lea ecx, [esp + 4]
push ecx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop ebx
test eax, eax
je 0x406c5f
cmp dword [esp + 4], 5
jb 0x406c5f
push edi
call fcn.00407030
push edi
call fcn.00406c80
add esp, 8
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004f96cd
add esp, 0x98
ret

Function at 0x40a049
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040c277
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a082
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00409c9a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40a0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40a104
cmp dword [edi + 0x54], 0
jne 0x40a104
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040c277
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040a0a1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4123ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412434
call fcn.0040c277
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412434
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412450
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411f67
mov esi, eax
test edi, edi
je 0x41244e
test ebx, ebx
je 0x41244e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x413eac
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51c602
call fcn.004fac4d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413ed1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x413f17
lea ecx, [ebp - 0x10]
call fcn.00403940
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413ae1
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021c0
mov eax, esi
call fcn.004fad25
ret 8
Function at 0x41ae6a
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x565fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x41aea3
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x41aeca
cmp dword [0x569858], 0
jne 0x41aeca
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x41aebd
push 0x12
call esi
test bx, ax
je 0x41aec1
mov eax, edi
jmp 0x41af35
push edi
call fcn.004fdfdb
pop ecx
jmp 0x41af35
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.0040a870
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f96cd
leave
ret 4
Function at 0x42ae06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x42ae20
call fcn.004148d8
call fcn.0040c277
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x42ae40
xor eax, eax
jmp 0x42af5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42ae39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42ae39
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040755f
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x42ae1b
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x42ae9d
mov ecx, edi
call fcn.004239b1
jmp 0x42aea2
call fcn.0042389b
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x42aeb4
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x42aecf
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x42af47
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x42af1e
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x42af11
test eax, eax
jbe 0x42af11
push eax
mov ecx, 0x562d24
call fcn.0041a64e
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x42aee8
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x42af47
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00407599
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430915
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x430a56
push esi
push edi
push 0x527ae8
call fcn.00416518
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x4309a5
mov esi, dword [ebx + 0x168]
jmp 0x430991
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x430991
push edi
call fcn.0040f033
push eax
push 0x563678
call fcn.00416536
pop ecx
pop ecx
test eax, eax
je 0x430991
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x430991
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x430951
lea ecx, [ebx + 0x164]
call fcn.004438eb
jmp 0x430a54
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x430a54
jmp 0x4309bb
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.0040d048
mov esi, dword [eax]
test esi, esi
jne 0x4309d4
xor ebx, ebx
jmp 0x4309d7
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x430a4a
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x430a4a
test edi, edi
je 0x430a1c
push esi
push 0x563678
call fcn.00416536
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x530f0c
call fcn.00416536
pop ecx
pop ecx
test eax, eax
je 0x430a4a
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp + 8]
add esi, 0x164
push eax
mov ecx, esi
call fcn.0042fe67
test eax, eax
jne 0x430a4a
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0042fdfb
cmp dword [ebp - 8], 0
jne 0x4309b8
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x435044
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x565fd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call fcn.00434b04
mov ebx, eax
cmp ebx, esi
je 0x4350b1
lea ecx, [ebp - 0x10c]
call fcn.0040969b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f96cd
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4350cf
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00435044
cmp eax, esi
jne 0x435116
lea eax, [ebp - 0x11c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x100
call ebx
test eax, eax
je 0x4350b9
lea ecx, [ebp - 0x10c]
call fcn.0040969b
push dword [ebp - 0x114]
mov ecx, edi
call fcn.00434a49
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.0040969b
mov eax, esi
jmp 0x4350a0
Function at 0x43866f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x5695c0], 0
mov dword [ebp - 4], ecx
jne 0x438685
xor eax, eax
jmp 0x4386bf
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x438695
call fcn.0040c277
mov esi, dword [eax + 0xc]
push edi
push dword [0x56a340]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4386bb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4386c3
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4386e1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4386bd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00438591
mov esi, eax
jmp 0x4386d3
Function at 0x444c86
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.0040d8e6
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x444d41
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call edi
push str.GetThemeColor
push dword [esi + 0x48]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x48]
mov dword [esi + 0x58], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x48]
mov dword [esi + 0x5c], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x48]
mov dword [esi + 0x60], eax
call edi
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.0044474e
jmp 0x444d56
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
pop edi
mov eax, esi
pop esi
ret
Function at 0x45eb00
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x517dec
call fcn.004fac80
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.00424574
test eax, eax
je 0x45eccf
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
lea ecx, [esi + 4]
xor edi, edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
call fcn.0045e81f
test eax, eax
je 0x45eb46
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00403940
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.004024b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004037e0
lea ecx, [ebp - 0x14]
call fcn.00403940
xor ebx, ebx
inc ebx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004024b0
push eax
push edi
push 0x52a444
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004037e0
push edi
push 0x4000100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x45ecb9
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043b8b0
push edi
push 0x1000
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00416229
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [eax + 0x20], ebx
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 4
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.00415b76
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.004161eb
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043b9d1
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.0045e9f8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.004021c0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004021c0
mov eax, ebx
jmp 0x45ecd1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021c0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004021c0
xor eax, eax
call fcn.004fad25
ret 8
Function at 0x46b4ab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00410801
call fcn.004075a4
cmp eax, esi
pop esi
jne 0x46b4c7
mov ecx, 0x569458
jmp fcn.00418e46
ret
Function at 0x46e533
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x44
mov eax, 0x5184a5
call fcn.004facb6
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.00403940
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, 0x13
jne 0x46e561
push str.Pause
jmp 0x46e5a4
push 0x33
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004fb1b0
add esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x46e593
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402540
lea ecx, [ebp - 0x48]
call fcn.0044584d
mov esi, dword [ebp - 0x48]
xor edi, edi
cmp dword [esi - 0xc], ebx
jle 0x46e5fc
push edi
lea ecx, [ebp - 0x48]
call fcn.004298ae
mov byte [ebp - 0x4c], al
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_IsCharLowerA]
test eax, eax
jne 0x46e5df
inc edi
cmp edi, dword [esi - 0xc]
jl 0x46e5be
jmp 0x46e5fc
movsx eax, byte [ebp - 0x4c]
push eax
call fcn.004fdfdb
pop ecx
mov byte [ebp - 0x4c], al
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
push edi
call fcn.0043b3e0
mov esi, dword [ebp - 0x48]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x50]
push esi
call fcn.00404640
cmp dword [ebp + 0x10], ebx
jne 0x46e617
mov ecx, dword [ebp - 0x50]
push 0x2b
call fcn.00410409
lea ecx, [esi - 0x10]
call fcn.004021c0
call fcn.004fad39
ret 0xc