joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4514d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588490
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451513
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451543
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x45157a
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401de0
mov esi, dword [ebp - 0x14]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005581e8
add esp, 8
test eax, eax
jl 0x4516b2
cmp eax, dword [esi - 8]
jg 0x4516b2
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [ebp - 0x10]
mov word [esi + eax*2], cx
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ec20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4515df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x4516b2
cmp eax, ecx
jg 0x4516b2
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x451611
push 1
push 0x5b93a4
lea ecx, [ebp - 0x10]
call fcn.00403ed0
push 0xd
push str.EPSDNAVI_Temp
lea ecx, [ebp - 0x10]
call fcn.00403ed0
push 1
push 0x5b93a4
lea ecx, [ebp - 0x10]
call fcn.00403ed0
lea edx, [ebp - 0x10]
lea ecx, [edi + 0x78]
push edx
call fcn.00401f40
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0040f300
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.0040f070
lea ecx, [ebp - 0x10]
lea esi, [edi + 0x74]
push ecx
mov ecx, esi
call fcn.00401f40
push 1
push 0x5b93a4
mov ecx, esi
call fcn.00403ed0
push 0xb
push str.LogFile.dat
mov ecx, esi
call fcn.00403ed0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4516a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3
Function at 0x454b20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
push eax
xor esi, esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x454b7e
cmp dword [ebp - 0x108], 2
jne 0x454b6a
mov eax, dword [ebp - 0x114]
cmp eax, 4
je 0x454b7e
cmp eax, 5
je 0x454b7e
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055799e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055799e
mov esp, ebp
pop ebp
ret

Function at 0x457b30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x5f84ec
mov edi, eax
call fcn.004561f0
mov eax, dword [0x5f84ec]
mov edx, dword [eax + 0x14]
mov ebx, dword [0x5f850c]
mov ecx, 0x5f84ec
call edx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
cmp eax, 0xffff
jne 0x457b85
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x457b85
mov edi, 1
jmp 0x457b87
xor edi, edi
mov ecx, 0x5f84ec
call fcn.004561f0
mov edx, dword [0x5f84ec]
mov eax, dword [edx + 0x14]
mov ecx, 0x5f84ec
mov dword [0x5f850c], edi
call eax
mov ecx, 0x5f84ec
call fcn.004561f0
mov edx, dword [0x5f84ec]
mov eax, dword [edx + 0x14]
mov edi, dword [0x5f850c]
mov ecx, 0x5f84ec
call eax
cmp ebx, edi
je 0x457bee
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [edx + esi + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00462b05
mov ecx, dword [eax + 0x20]
push 0
add esi, 0x28
push esi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
ret
Function at 0x45a250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0x101
push edi
jne 0x45a286
mov dword [esi + 0xf0], 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.0046091e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + 8]
cmp eax, 9
jne 0x45a272
cmp dword [esi + 0xf0], 0
je 0x45a4c1
push 0x10
mov dword [esi + 0xf0], 0
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x45a3b3
cmp dword [esi + 0xec], 0
jne 0x45a2f1
mov edi, 1
lea eax, [esi + 0xc4]
mov dword [esi + 0xec], edi
call fcn.00458750
push eax
push esi
call fcn.0045a150
call fcn.00459ff0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
cmp dword [esi + 0xf8], eax
je 0x45a4a3
cmp dword [esi + 0xfc], eax
je 0x45a4a3
movzx edi, word [esi + 0xf8]
movzx edx, word [esi + 0xfc]
lea ebx, [esi + 0xc4]
shl edi, 0x10
mov eax, ebx
or edi, edx
call fcn.00458720
cmp edi, eax
je 0x45a4a3
movzx eax, word [esi + 0xf8]
movzx ecx, word [esi + 0xfc]
shl eax, 0x10
or eax, ecx
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov ecx, ebx
call fcn.0045c1c0
push eax
push esi
call fcn.0045a150
lea edx, [esp + 0xc]
mov ebx, eax
push edx
lea edi, [esi + 0xa8]
mov dword [esp + 0x10], 0
call fcn.0045af60
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x45a391
mov eax, dword [ecx]
mov edx, dword [eax + 0x80]
call edx
test al, 8
jne 0x45a4a3
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, ebx
call fcn.00459ff0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0xec], 0
jne 0x45a3e9
mov edi, 1
lea eax, [esi + 0xc4]
mov dword [esi + 0xec], edi
call fcn.00458720
push eax
push esi
call fcn.0045a090
call fcn.00459ff0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
cmp dword [esi + 0xf8], eax
je 0x45a4a3
cmp dword [esi + 0xfc], eax
je 0x45a4a3
movzx edi, word [esi + 0xf8]
movzx eax, word [esi + 0xfc]
shl edi, 0x10
or edi, eax
lea ebx, [esi + 0xc4]
mov eax, ebx
call fcn.00458750
cmp edi, eax
je 0x45a4a3
movzx ecx, word [esi + 0xf8]
movzx edx, word [esi + 0xfc]
shl ecx, 0x10
or ecx, edx
mov dword [esp + 0xc], ecx
lea eax, [esp + 0xc]
mov ecx, ebx
call fcn.0045c120
push eax
push esi
call fcn.0045a090
mov ebx, eax
lea eax, [esp + 0xc]
push eax
lea edi, [esi + 0xa8]
mov dword [esp + 0x10], 0
call fcn.0045af60
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x45a481
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
test al, 8
jne 0x45a4a3
mov ecx, dword [esi + 0x100]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov eax, ebx
call fcn.00459ff0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
mov dword [esi + 0xec], 0
call fcn.0046091e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 9
jne 0x45a272
mov edx, dword [esi]
mov eax, dword [edx + 0x108]
mov edi, 1
push ecx
mov ecx, esi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xec], edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45f764
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.00467a9c
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 0x45f79d
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.0045f3b0
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 0x45f7fb
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 0x45f81f
cmp dword [edi + 0x54], 0
jne 0x45f81f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00467a9c
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.0045f7bc
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 0x465dcc
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 0x465e13
call fcn.00467a9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x465e13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x465e2f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00465944
mov esi, eax
test edi, edi
je 0x465e2d
test ebx, ebx
je 0x465e2d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46663e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x581329
call fcn.0055ac26
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x466663
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4666a9
lea ecx, [ebp - 0x10]
call fcn.00401c70
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.004d79b0
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.00402090
mov eax, esi
call fcn.0055acfe
ret 8
Function at 0x46aff5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x46b08d
push 0x5bb5b4
push 4
push eax
call fcn.00559a30
push eax
call fcn.004017d0
add esp, 0x10
push ebx
push edi
call fcn.0055adbe
mov edi, dword [eax]
call fcn.0055adbe
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0055a53e
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0055adbe
cmp dword [eax], ebx
je 0x46b0a4
call fcn.0055adbe
push dword [eax]
call fcn.0045e1fa
pop ecx
jmp 0x46b0ab
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46b038
jmp 0x46b132
call fcn.0055adbe
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x46b12e
cmp dword [ebp - 0x234], esi
jae 0x46b12e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0055b030
add esp, 0xc
push 0x591770
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x46b11d
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x46b11d
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x46b11d
push ebx
push ebx
push esi
jmp 0x46b126
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x46b130
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055799e
leave
ret

Function at 0x470d7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00464543
call fcn.0045ef58
cmp eax, esi
pop esi
jne 0x470d98
mov ecx, 0x5f40a8
jmp fcn.004722e1
ret
Function at 0x473ebb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x473f03
call fcn.00467a9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x473f03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x473f46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x473f2f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x473f2f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x473f43
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x487367
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 0x487381
call fcn.0045e880
call fcn.00467a9c
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4873a1
xor eax, eax
jmp 0x4874bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x48739a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x48739a
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.0045de6c
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x48737c
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 0x4873fe
mov ecx, edi
call fcn.0047ff09
jmp 0x487403
call fcn.0047fdf3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x487415
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x487430
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x4874a8
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x48747f
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 0x487472
test eax, eax
jbe 0x487472
push eax
mov ecx, 0x5ec52c
call fcn.0049de0a
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 0x487449
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 0x4874a8
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.0045dea6
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 0x4abedf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x5936fc
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.004b4f71
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x4abf9a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x59a9e4
push eax
call edi
push 0x59a9d4
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push 0x59a9c0
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.004abac3
jmp 0x4abfaf
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 0x4af2e2
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 [0x5ef60c]
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 0x4af31b
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x4af342
cmp dword [0x5f4590], 0
jne 0x4af342
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4af335
push 0x12
call esi
test bx, ax
je 0x4af339
mov eax, edi
jmp 0x4af3b1
push edi
call fcn.0055ddc9
pop ecx
jmp 0x4af3b1
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0055b030
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4af36b
call fcn.0045e880
call fcn.0046e8d1
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.0055799e
leave
ret 4
Function at 0x4b00df
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x57cc41
call fcn.0055ac59
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.00480acc
test eax, eax
je 0x4b02ae
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.004afee1
test eax, eax
je 0x4b0125
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00401c70
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00401e30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00405fb0
lea ecx, [ebp - 0x14]
call fcn.00401c70
xor ebx, ebx
inc ebx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00401e30
push eax
push edi
push 0x59aaf8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00405fb0
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 0x4b0298
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00470498
push edi
push 0x1000
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0046a52e
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.00469e3d
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.0046a4f0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004705b9
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.00486a79
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.00402090
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402090
mov eax, ebx
jmp 0x4b02b0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402090
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402090
xor eax, eax
call fcn.0055acfe
ret 8

Function at 0x4b4f71
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4b4fa6
xor eax, eax
jmp 0x4b4ff9
lea eax, [ebp - 0x210]
push eax
call fcn.0055a826
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4b4fd7
push 0x5b93a4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00558755
add esp, 0xc
test eax, eax
jne 0x4b4fa2
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00558755
add esp, 0xc
test eax, eax
jne 0x4b4fa2
lea eax, [ebp - 0x210]
push eax
call fcn.004700df
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055799e
leave
ret