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

Disassembly:
push 0x224
mov eax, 0x525e40
call fcn.005058aa
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.0049cd1a
push 0x15c
call fcn.0044323a
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x41808c
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.0047beba
jmp 0x41808e
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004debfc
call fcn.00439fb7
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x41822e
cmp dword [edi + 4], ebx
jle 0x41822e
lea ecx, [ebp - 0x21c]
call fcn.0048c727
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x418212
lea ecx, [ebp - 0x220]
call fcn.0048c727
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x418163
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.0048f83a
add esp, 0xc
jmp 0x418195
jge 0x418183
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.0048f83a
add esp, 0x10
jmp 0x418195
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0043078b
push 0x15c
call fcn.0044323a
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4181b9
mov ecx, eax
call fcn.0045c530
mov esi, eax
jmp 0x4181bb
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.004b741f
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004debfc
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00425e0a
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00425e0a
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4180fc
call fcn.0050592d
ret
Function at 0x418478
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 0x4184c9
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.0041963c
mov ecx, ebx
call fcn.0045f69e
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x41851f
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x4184e4
cmp dword [ebp + 0xc], 0x79
je 0x4184df
cmp dword [ebp + 0xc], 0x12
jne 0x41851f
xor eax, eax
inc eax
jmp 0x41851f
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 0x418524
cmp esi, 0x79
je 0x418524
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 [0x5815bc], 0
jne 0x41851b
test byte [ebx + 0x2f4], 2
jne 0x41851b
cmp esi, 0x12
je 0x418548
cmp esi, 0x79
jne 0x41851b
test edi, edi
jne 0x41851b
test eax, eax
jne 0x41851b
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00489fa3
cmp eax, ebx
jne 0x41856b
test dword [ebp + 0x10], 0x40000000
jne 0x41856b
cmp esi, 0x79
jne 0x418579
mov ecx, dword [ebp + 8]
jmp 0x418572
cmp esi, 0x79
jne 0x418579
mov ecx, ebx
call fcn.00495c70
jmp 0x418594
cmp dword [ebx + 0x2a0], 0
jge 0x418594
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x41851d
Function at 0x41a5d4
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x41a619
test edi, edi
jl 0x41a619
cmp ax, 0x20
je 0x41a60e
cmp word [ebp + 8], 0x71
jne 0x41a619
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8
Function at 0x432930
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x4329a6
ja 0x432949
cmp esi, dword [esp + 0x20]
jae 0x4329aa
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x432965
jb 0x432961
cmp ecx, 0x10000
jae 0x432965
mov edi, ecx
jmp 0x43296a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4329a6
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4329a6
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x432949
ja 0x4329a6
cmp esi, dword [esp + 0x20]
jb 0x432949
cmp esi, dword [esp + 0x20]
jne 0x4329c7
cmp ebp, ebx
jne 0x4329c7
or esi, ebp
je 0x4329bf
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x442fe9
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x52a0dc
call fcn.00505841
lea eax, [ebp - 0x10]
push eax
call fcn.00436002
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp - 0x10]
call fcn.004db10c
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push 1
push str.InstallDir
mov ebx, str.SoftwareAdvancedSystemRepairPro
push ebx
push SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
call fcn.004db10c
push eax
push 1
push str.InstallDir
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0049e5f8
call fcn.00505919
ret

Function at 0x44417f
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x52a71b
call fcn.00505841
mov edi, dword [ebp + 8]
push edi
call fcn.0046baa1
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.004f8dc5
pop ecx
mov byte [ebp - 4], 1
call fcn.0046c5c1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0049e5f8
push dword [edi]
mov byte [ebp - 0xd], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4441ca
mov byte [ebp - 0xd], 1
mov eax, dword [edi]
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4441eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], bl
je 0x44421e
push dword [edi]
call fcn.0045f35e
pop ecx
push ebx
call fcn.00503782
pop ecx
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, 0x55a508
call fcn.00436002
mov byte [ebp - 4], 2
push edi
mov byte [ebp - 4], bl
call fcn.004f8535
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.00505919
ret 4

Function at 0x4485e2
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x84]
xor edx, edx
div ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x448601
inc dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
xor edx, edx
div ecx
push ebx
mov ebx, eax
test edx, edx
je 0x448619
inc ebx
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x448667
push edi
xor edi, edi
test ebx, ebx
jle 0x44865b
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push eax
imul eax, edi
push ecx
imul ecx, dword [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, ebx
jl 0x44862a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x448624
pop edi
pop ebx
leave
ret 0x18
Function at 0x44f0be
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x10
mov eax, 0x52a7b2
call fcn.00505841
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push 0x23
push edi
mov dword [ebp - 0x10], esi
call fcn.004cdd1f
pop ecx
pop ecx
mov dword [ebp - 4], esi
xor ebx, ebx
push 0x94
lea eax, [ebp - 0x1c]
inc ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00481bf4
mov esi, eax
mov dword [ebp - 4], ebx
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.00481bf4
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.0042401f
pop ecx
pop ecx
mov byte [ebp - 4], 3
push edi
call fcn.0046d59a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0049e5f8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0049e5f8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0049e5f8
push dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x44f169
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.0045f35e
pop ecx
push 0x95
lea eax, [ebp - 0x14]
push eax
call fcn.00481bf4
mov esi, eax
mov dword [ebp - 4], 4
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.00481bf4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
call fcn.0042401f
pop ecx
pop ecx
mov byte [ebp - 4], 6
push edi
call fcn.0046d59a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.0049e5f8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0049e5f8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049e5f8
push dword [edi]
call ebx
test eax, eax
jne 0x44f1e9
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.0045f35e
pop ecx
mov eax, edi
call fcn.00505919
ret

Function at 0x45586b
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 4
mov eax, 0x5283b2
call fcn.00505841
mov edi, ecx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov esi, ebx
call fcn.00480ec0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
mov dword [ebp - 0x10], 1
je 0x455928
mov esi, dword [ebx]
call fcn.00475fe5
test al, al
je 0x455928
mov eax, dword [ebx]
push edi
push dword [ebp + 0x10]
push dword [eax]
call fcn.00503970
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], edi
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4558e5
mov edi, dword [ebp + 0x10]
jmp 0x455921
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45591f
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx]
call fcn.00475fe5
test al, al
je 0x45591f
mov eax, dword [ebx]
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x455928
xor edi, edi
mov esi, dword [ebx]
call fcn.00475fe5
mov eax, ebx
call fcn.00505919
ret 0xc
Function at 0x457a70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x528564
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0xc
mov dword [esp + 0x18], ebx
call fcn.0044323a
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, ebx
je 0x457acc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x457ace
xor eax, eax
mov byte [esp + 0x30], bl
mov dword [ebp], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x457b74
mov edi, dword [ebp]
cmp esi, dword [edi + 4]
je 0x457b35
mov eax, dword [edi]
push esi
push eax
call fcn.00503cd5
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x457b32
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.005038f0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov eax, dword [eax]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457b5b
cmp dword [esp + 0x40], esi
je 0x457b74
mov esi, dword [ebp]
cmp dword [esi + 4], ebx
je 0x457b74
mov eax, dword [esi]
push ebx
push eax
call fcn.00503cd5
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x461a43
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x522b8d
call fcn.00505841
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x461b1c
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x461b1c
cmp ebx, 0x43
je 0x461a85
cmp ebx, 0x2d
jne 0x461b1c
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x461b1c
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0048c727
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.0048f83a
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00425e0a
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.004cab41
call fcn.00505919
ret 4
Function at 0x46bdd7
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x523268
call fcn.00505841
xor edi, edi
cmp dword [0x579e58], edi
je 0x46bea0
cmp dword [0x57a3a0], 0xfffffffe
jne 0x46be8d
cmp dword [ebp + 8], 0xffffffff
je 0x46bea0
test byte [0x581884], 1
mov esi, 0x581864
jne 0x46be36
or dword [0x581884], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004ae40d
push 0x52cb31
call fcn.0050429f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00489d2b
cmp dword [0x581860], edi
je 0x46be4a
call fcn.00470a7a
push edi
push edi
push 0x4c1ee9
call fcn.00508e90
add esp, 0xc
mov dword [0x581860], eax
cmp eax, edi
jbe 0x46be7a
cmp eax, 0xffffffff
je 0x46be7a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x57a3a0], eax
jmp 0x46be80
mov dword [0x581860], edi
push 0x58186c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x46bea0
mov eax, dword [ebp + 8]
mov dword [0x57a3a0], eax
cmp eax, 0xffffffff
jne 0x46bea0
mov dword [0x581860], edi
call fcn.00505919
ret

Function at 0x46c239
Capabilities:
Get common file path

Disassembly:
push 0x30
mov eax, 0x5298f5
call fcn.005058aa
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
push 0x400
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
call fcn.004fa9fa
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46c271
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46c289
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047b43a
mov byte [ebp - 4], 2
push dword [ebp - 0x38]
mov esi, eax
push edi
call fcn.004dd473
pop ecx
pop ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x30]
push eax
call fcn.004d691b
mov byte [ebp - 4], 0
push 0
push ebx
lea esi, [ebp - 0x2c]
call fcn.004fdbce
mov eax, edi
call fcn.0050592d
ret
Function at 0x46dce2
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 [0x57bf70]
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 0x46dd1b
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x46dd42
cmp dword [0x57fd78], 0
jne 0x46dd42
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x46dd35
push 0x12
call esi
test bx, ax
je 0x46dd39
mov eax, edi
jmp 0x46ddb1
push edi
call fcn.005087bf
pop ecx
jmp 0x46ddb1
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005038f0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x46dd6b
call fcn.00470a7a
call fcn.0041c54a
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.0040ef12
leave
ret 4

Function at 0x46e699
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x581a30], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x46e6c8
or dword [0x581a30], 1
mov ecx, 0x581a2c
call fcn.0048c727
push 0x52cbd5
call fcn.0050429f
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x46e6d4
call fcn.00470a7a
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x46e74d
cmp dword [eax + 0x20], 0
je 0x46e74d
test eax, eax
je 0x46e6eb
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x46e74d
mov eax, dword [edi + 4]
dec eax
je 0x46e72c
dec eax
je 0x46e702
dec eax
jne 0x46e74d
mov esi, 0x428e
jmp 0x46e731
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46e731
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x46e731
add esi, 3
jmp 0x46e731
mov esi, 0x3ea0
push esi
mov ecx, 0x581a2c
call fcn.00415161
test eax, eax
je 0x46e6cf
mov eax, dword [0x581a2c]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x46e74f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x470f6a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x470fb4
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x470fb4
call fcn.0041138b
test eax, eax
je 0x470fb4
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.004ba207
xor eax, eax
inc eax
jmp 0x4711cc
cmp dword [ebx + 4], 0x100
push edi
jne 0x4711c3
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4710b1
push 0x11
call edi
test ax, ax
jl 0x4710b1
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4710b1
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x471024
cmp eax, 0x20
jbe 0x4710b1
cmp eax, 0x24
jbe 0x471017
cmp eax, 0x26
je 0x471017
cmp eax, 0x28
jne 0x4710b1
call fcn.0041138b
test eax, eax
je 0x4710b1
mov ecx, esi
call fcn.00495c70
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.0041138b
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x471059
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004ba207
jmp 0x4711be
call fcn.004049c9
test eax, eax
je 0x4711be
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00440abd
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x471087
xor edi, edi
jmp 0x47108a
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.004049c9
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4711be
mov eax, dword [ebx + 8]
sub eax, 9
je 0x47118d
sub eax, 0x12
je 0x471165
sub eax, 0xb
je 0x4710d3
dec eax
dec eax
jne 0x4711c3
push 0x12
call edi
test ax, ax
jl 0x4711c3
push 0x11
call edi
test ax, ax
jl 0x4711c3
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4711c3
call fcn.0041138b
test eax, eax
jne 0x4711be
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.00493a4e
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00489fa3
test eax, eax
je 0x4711be
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00489fa3
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4711be
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x471179
push 0
call fcn.00493a4e
mov ecx, esi
call fcn.0045d7c2
test eax, eax
je 0x4711c3
mov ecx, esi
call fcn.0045d7c2
jmp 0x4711b7
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00489fa3
test eax, eax
je 0x4711c3
push dword [esi + 0x20]
call edi
push eax
call fcn.00489fa3
push 0
push esi
mov ecx, eax
call fcn.00439e9f
mov ecx, eax
call fcn.00495c70
xor eax, eax
inc eax
jmp 0x4711cb
push ebx
mov ecx, esi
call fcn.0041650c
pop edi
pop esi
pop ebx
pop ebp
ret 4