joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402570
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x67c
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x690]
push edi
push str._s.
lea eax, [esp + 0x480]
push 0x104
push eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x27], 0
call fcn.004f584c
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x402739
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
cmp word [esp + 0x4c], 0x2e
je 0x4026e2
lea eax, [esp + 0x4c]
push eax
push edi
push str._s_s
lea ecx, [esp + 0x27c]
push 0x104
push ecx
call fcn.004f584c
add esp, 0x14
test byte [esp + 0x20], 0x10
je 0x402647
mov eax, dword [esp + 0x694]
test al, al
je 0x40263d
push eax
lea edx, [esp + 0x274]
push edx
call fcn.00402570
add esp, 8
test eax, eax
jne 0x40273b
jmp 0x4026e2
mov byte [esp + 0x17], 1
jmp 0x4026e2
push 0x80
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402726
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402726
mov eax, dword [0x56b878]
mov esi, eax
inc eax
mov dword [0x56b878], eax
mov eax, dword [0x56b874]
mov edx, dword [eax + 0x20]
push edx
mov edi, eax
call ebx
test eax, eax
je 0x4026c2
test esi, esi
jge 0x40269e
xor esi, esi
jmp 0x4026a8
cmp esi, 0x64
jle 0x4026a8
mov esi, 0x64
push 0xc8
mov ecx, edi
call fcn.0040902f
mov eax, dword [eax + 0x20]
push 0
push esi
push 0x402
push eax
call ebp
cmp dword [0x56b878], 0x64
jb 0x4026d5
mov dword [0x56b878], 0
call fcn.00402ca0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x4025e1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
jne 0x40273b
cmp byte [esp + 0x17], 0
jne 0x402739
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40272e
call esi
jmp 0x40273b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40273b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402722
xor eax, eax
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f53ca
add esp, 0x67c
ret

Function at 0x402760
Capabilities:
Move file

Disassembly:
sub esp, 0x414
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push eax
push 0x56b618
push str._s_s
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.004f584c
push esi
push 0x56b618
push str._s_s
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.004f584c
add esp, 0x28
push 0xa
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004f53ca
add esp, 0x414
ret
Function at 0x4027e0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x804
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x800], eax
cmp dword [0x56b848], 0
jg 0x40281e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
call fcn.004012f0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
call fcn.004012f0
call fcn.00401370
mov ecx, dword [0x56b820]
call fcn.004029e0
mov edx, dword [esp + 0x808]
push 0x400
lea ecx, [esp + 4]
push ecx
add eax, edx
push eax
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
push 0x10
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004f53ca
add esp, 0x804
ret

Function at 0x4029e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [0x546aa0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
mov esi, ecx
mov ecx, dword [0x546aa4]
push 3
push esi
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
call edi
push 4
lea ecx, [esp + 0x10]
push ecx
push 3
and esi, 0x3ff
push esi
call edi
xor esi, esi
jmp 0x402a40
mov ecx, dword [esi*4 + 0x5658c4]
lea eax, [esp + 0xc]
jmp 0x402a50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402a76
test dx, dx
je 0x402a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402a76
add eax, 4
add ecx, 4
test dx, dx
jne 0x402a50
xor eax, eax
jmp 0x402a7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402a99
inc esi
cmp esi, 0xc
jl 0x402a40
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f53ca
add esp, 0x14
ret
cmp esi, 0xb
jne 0x402adb
mov ecx, 0x546a48
lea eax, [esp + 0x14]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402acd
test dx, dx
je 0x402ac9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402acd
add eax, 4
add ecx, 4
test dx, dx
jne 0x402aa7
xor eax, eax
jmp 0x402ad2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402adb
mov esi, 0xa
mov ecx, dword [esp + 0x1c]
pop edi
lea eax, [esi + esi*4]
pop esi
pop ebx
xor ecx, esp
add eax, eax
call fcn.004f53ca
add esp, 0x14
ret

Function at 0x4084ce
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.00408f33
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408507
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.0040811a
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 0x408565
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 0x408589
cmp dword [edi + 0x54], 0
jne 0x408589
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00408f33
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.00408526
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 0x40939a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x517425
call fcn.004f61bb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4093bf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x409405
lea ecx, [ebp - 0x10]
call fcn.00403c9e
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.0040384d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401690
mov eax, esi
call fcn.004f6293
ret 8

Function at 0x410c11
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 0x410c58
call fcn.00408f33
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410c58
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410c74
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00410789
mov esi, eax
test edi, edi
je 0x410c72
test ebx, ebx
je 0x410c72
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416033
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x563fe8]
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 0x41606c
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x416093
cmp dword [0x567ac8], 0
jne 0x416093
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x416086
push 0x12
call esi
test bx, ax
je 0x41608a
mov eax, edi
jmp 0x416102
push edi
call fcn.004f924b
pop ecx
jmp 0x416102
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004f6b30
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4160bc
call fcn.00403802
call fcn.00406b21
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f53ca
leave
ret 4
Function at 0x4260c2
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 0x4260dc
call fcn.00403802
call fcn.00408f33
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4260fc
xor eax, eax
jmp 0x426217
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4260f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4260f5
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.00402d51
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4260d7
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 0x426159
mov ecx, edi
call fcn.0041ebd4
jmp 0x42615e
call fcn.0041eabe
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x426170
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x42618b
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x426203
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x4261da
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 0x4261cd
test eax, eax
jbe 0x4261cd
push eax
mov ecx, 0x560e64
call fcn.0045aa08
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 0x4261a4
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 0x426203
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00402d80
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 0x42bc02
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 0x42bd43
push esi
push edi
push 0x524224
call fcn.00410cf6
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x42bc92
mov esi, dword [ebx + 0x168]
jmp 0x42bc7e
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 0x42bc7e
push edi
call fcn.0040d887
push eax
push 0x561758
call fcn.00410d14
pop ecx
pop ecx
test eax, eax
je 0x42bc7e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x42bc7e
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x42bc3e
lea ecx, [ebx + 0x164]
call fcn.0046fe2e
jmp 0x42bd41
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x42bd41
jmp 0x42bca8
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.00484e13
mov esi, dword [eax]
test esi, esi
jne 0x42bcc1
xor ebx, ebx
jmp 0x42bcc4
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42bd37
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42bd37
test edi, edi
je 0x42bd09
push esi
push 0x561758
call fcn.00410d14
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x52f8cc
call fcn.00410d14
pop ecx
pop ecx
test eax, eax
je 0x42bd37
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.0042b1b9
test eax, eax
jne 0x42bd37
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0042b124
cmp dword [ebp - 8], 0
jne 0x42bca5
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x430301
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x563fe8]
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 - 0x20c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0042fdaf
mov ebx, eax
cmp ebx, esi
je 0x43036e
lea ecx, [ebp - 0x20c]
call fcn.00412472
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f53ca
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x43038c
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00430301
cmp eax, esi
jne 0x4303d3
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call ebx
test eax, eax
je 0x430376
lea ecx, [ebp - 0x20c]
call fcn.00412472
push dword [ebp - 0x214]
mov ecx, edi
call fcn.0042fd50
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.00412472
mov eax, esi
jmp 0x43035d
Function at 0x433a5f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x567830], 0
mov dword [ebp - 4], ecx
jne 0x433a75
xor eax, eax
jmp 0x433aaf
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x433a85
call fcn.00408f33
mov esi, dword [eax + 0xc]
push edi
push dword [0x5685b0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x433aab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x433ab3
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 0x433ad1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x433aad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00433981
mov esi, eax
jmp 0x433ac3
Function at 0x43cb4d
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.00413439
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x43cc08
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.0043c6e2
jmp 0x43cc1d
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 0x4568d2
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x5150df
call fcn.004f61ee
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.0041f797
test eax, eax
je 0x456aa1
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.00424aff
test eax, eax
je 0x456918
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00403c9e
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.004019d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00402e34
lea ecx, [ebp - 0x14]
call fcn.00403c9e
xor ebx, ebx
inc ebx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004019d0
push eax
push edi
push 0x5283f0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00402e34
push edi
push 0x4000100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x456a8b
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00436679
push edi
push 0x1000
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0041167b
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.00410f43
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.0041163d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043679a
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.0045686b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.00401690
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401690
mov eax, ebx
jmp 0x456aa3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401690
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401690
xor eax, eax
call fcn.004f6293
ret 8
Function at 0x463afc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040f2ba
call fcn.00402d20
cmp eax, esi
pop esi
jne 0x463b18
mov ecx, 0x5676c8
jmp fcn.00414268
ret
Function at 0x469a05
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x515a13
call fcn.004f6224
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00403c9e
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x469a33
push 0x52a8d0
jmp 0x469a76
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.004f6b30
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x469a65
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401a30
lea ecx, [ebp - 0x7c]
call fcn.0043d73e
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x469ac7
push edi
lea ecx, [ebp - 0x7c]
call fcn.004127d9
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x469aad
inc edi
cmp edi, dword [esi - 0xc]
jl 0x469a8e
jmp 0x469ac7
movzx eax, bx
push eax
call fcn.004f924b
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.0043619b
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.00403d00
cmp dword [ebp + 0x10], 0
jne 0x469ae3
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.00403ce3
lea ecx, [esi - 0x10]
call fcn.00401690
call fcn.004f62a7
ret 0xc
Function at 0x46b067
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0x20
push ebx
mov ebx, ecx
jne 0x46b0b8
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, 0x17
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.0046aa3b
mov ecx, ebx
call fcn.0046afdf
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x46b10e
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x46b0d3
cmp dword [ebp + 0xc], 0x79
je 0x46b0ce
cmp dword [ebp + 0xc], 0x12
jne 0x46b10e
xor eax, eax
inc eax
jmp 0x46b10e
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
movzx edi, ax
shr edi, 0xf
push 0x10
and edi, 1
call esi
mov esi, dword [ebp + 0xc]
shr eax, 0xf
and eax, 1
cmp esi, 0x12
je 0x46b113
cmp esi, 0x79
je 0x46b113
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x569044], 0
jne 0x46b10a
test byte [ebx + 0x2f4], 2
jne 0x46b10a
cmp esi, 0x12
je 0x46b137
cmp esi, 0x79
jne 0x46b10a
test edi, edi
jne 0x46b10a
test eax, eax
jne 0x46b10a
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0040d887
cmp eax, ebx
jne 0x46b15a
test dword [ebp + 0x10], 0x40000000
jne 0x46b15a
cmp esi, 0x79
jne 0x46b168
mov ecx, dword [ebp + 8]
jmp 0x46b161
cmp esi, 0x79
jne 0x46b168
mov ecx, ebx
call fcn.00409279
jmp 0x46b183
cmp dword [ebx + 0x2a0], 0
jge 0x46b183
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x46b10c