joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov al, byte [0x10203440]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001094
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002219
pop ecx
test eax, eax
pop ecx
jl 0x1000107b
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call fcn.100021c4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100021c4
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000103d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
leave
ret
Function at 0x100012f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and byte [ebp - 3], 0
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0xc], 0x69
push eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xa], 0x6d
mov byte [ebp - 9], 0x33
mov byte [ebp - 8], 0x32
mov byte [ebp - 7], 0x2e
mov byte [ebp - 6], 0x64
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0x6c
mov byte [ebp - 0x1c], 0x49
mov byte [ebp - 0x1b], 0x6d
mov byte [ebp - 0x1a], 0x6d
mov byte [ebp - 0x19], 0x49
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x49
mov byte [ebp - 0x11], 0x4d
mov byte [ebp - 0x10], 0x45
mov byte [ebp - 0xf], 0x41
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
leave
ret

Function at 0x1000137d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and byte [ebp - 3], 0
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 0xc], 0x69
push eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xa], 0x6d
mov byte [ebp - 9], 0x33
mov byte [ebp - 8], 0x32
mov byte [ebp - 7], 0x2e
mov byte [ebp - 6], 0x64
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0x6c
mov byte [ebp - 0x20], 0x49
mov byte [ebp - 0x1f], 0x6d
mov byte [ebp - 0x1e], 0x6d
mov byte [ebp - 0x1d], 0x47
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x49
mov byte [ebp - 0x19], 0x4d
mov byte [ebp - 0x18], 0x45
mov byte [ebp - 0x17], 0x46
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x4e
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x6d
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x41
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
leave
ret
Function at 0x10001419
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
call esi
and byte [ebp - 0x104], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, ebx
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x5c
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x1000146f
inc eax
push eax
jmp 0x10001472
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push edi
push ebx
call esi
mov esi, eax
test esi, esi
je 0x100014ca
jle 0x100014ca
lea ebx, [edi + esi*4]
lea eax, [ebp - 0x208]
sub ebx, 4
push 0x104
push eax
push dword [ebx]
dec esi
call fcn.1000137d
add esp, 0xc
test eax, eax
je 0x100014c6
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10002219
pop ecx
test eax, eax
pop ecx
je 0x100014d1
test esi, esi
jg 0x1000148f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea esi, [edi + esi*4]
push 2
push esi
push 0
push 0x5a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push esi
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
push 1
pop eax
jmp 0x100014cc

Function at 0x100014ef
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
call esi
mov edi, eax
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push ebx
push edi
call esi
mov esi, eax
test esi, esi
je 0x1000155d
jle 0x1000155d
lea ebx, [ebx + esi*4]
lea eax, [ebp - 0x104]
sub ebx, 4
push 0x104
push eax
push dword [ebx]
dec esi
call fcn.1000137d
add esp, 0xc
test eax, eax
je 0x10001559
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.10002219
pop ecx
test eax, eax
pop ecx
je 0x10001564
test esi, esi
jg 0x10001526
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 1
pop eax
jmp 0x1000155f

Function at 0x10001569
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebp - 0x104]
push 0x104
push ecx
push eax
call fcn.1000137d
add esp, 0xc
test eax, eax
je 0x100015ad
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.10002219
pop ecx
test eax, eax
pop ecx
jne 0x100015ad
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x10001f71
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10001fda
lea eax, [ebp - 0xc]
push eax
push 0x10204170
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10001fd1
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10001fd1
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10002009
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.100021f7
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.100021c4
add esp, 0x10
leave
ret

Function at 0x10002047
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push 0x10204184
push eax
call fcn.100021f7
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.100021f7
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.100021c4
add esp, 0x18
leave
ret

Function at 0x10002096
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
lea eax, [ebp - 0x124]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x124]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
je 0x10002172
and byte [eax], 0
and byte [ebp - 4], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 0x20], 0x5c
push eax
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 0x1f], 0x50
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x67
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x6d
mov byte [ebp - 0x18], 0x20
mov byte [ebp - 0x17], 0x46
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x6d
mov byte [ebp - 0xe], 0x6d
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], 0x20
mov byte [ebp - 0xa], 0x46
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x73
mov byte [ebp - 5], 0x5c
call fcn.100021f7
push dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
call fcn.100021f7
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0xc]
call fcn.100021c4
add esp, 0x18
leave
ret
Function at 0x43415a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x434168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x43414a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x434145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x434145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x4341d2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
add edx, ecx
pop ebx
pop ebx
pop ebx
pop ecx
pop eax
pop edi
pop esi
jmp edx
mov ecx, dword [ebx + 0x28]
cmp ecx, 1
je 0x4341c1
mov ecx, ebx
sub ecx, dword [ebx + 4]
xor cx, cx
mov dword [ebx + 0x24], ecx
add ecx, dword [ebx + 8]
mov esi, ecx
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov eax, dword [ebx + 0x10]
xor dword [esi + edx], eax
add edx, 1
add edx, 2
sub edx, 1
sub edx, 1
add edx, 3
push edx
push ecx
pop ecx
pop edx
cmp edx, ecx
jl 0x4341f5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebx + 0x24]
add ecx, dword [ebx + 0x1c]
mov esi, ecx
mov ecx, dword [ebx + 0x20]
xor edx, edx
mov eax, dword [ebx + 0x10]
xor dword [esi + edx], eax
add edx, 1
add edx, 2
sub edx, 1
sub edx, 1
add edx, 3
push edx
push ecx
pop ecx
pop edx
cmp edx, ecx
jl 0x434285
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebx + 0x28], 1
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
add edx, ecx
pop ebx
pop ebx
pop ebx
pop ecx
pop eax
pop edi
pop esi
mov dword [esp + 0x34], edx
jmp edx
Function at 0x40281a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402870
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402870
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402862
cmp esi, ecx
jae 0x402870
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x402850
cmp esi, ecx
jae 0x402870
cmp word [esi], 0
je 0x402870
mov eax, esi
jmp 0x402872
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4035ca
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, edi
call fcn.004033fc
push esi
xor eax, eax
push eax
push 0x400
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x40360d
xor al, al
jmp 0x4036bf
mov edx, edi
mov ecx, esi
call fcn.004036ce
test al, al
je 0x4036ae
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x208
push eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x214]
push eax
call fcn.004b6620
add esp, 0xc
push 0x41
pop esi
push 0x104
lea eax, [ebp - 0x214]
mov word [ebp - 0xc], si
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403693
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x218]
jne 0x40366a
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
push dword [edi]
call fcn.004d2b27
add esp, 0xc
test eax, eax
je 0x40369c
inc esi
cmp si, 0x5a
jb 0x403643
jmp 0x4036ae
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0041b992
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
leave
ret

Function at 0x4036ce
Capabilities:
Get process image filename

Disassembly:
push ebx
push edi
push ecx
push 0
push 0x400
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4036ea
xor al, al
jmp 0x40371b
push esi
push 0x103
push 0x104
mov ecx, ebx
call fcn.0040335d
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov esi, eax
mov ecx, ebx
push esi
call fcn.004033a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
setne al
pop edi
pop ebx
ret
Function at 0x403d3c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0x13
jne 0x403d4f
push 0x45
pop edi
jmp case.0x403d70.41
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
cmp esi, 0x6f
ja 0x403d77
je case.0x403d70.33
add esi, 0xffffffdf
cmp esi, 0xd
ja case.0x403d70.41
movzx eax, byte [esi + 0x403dc8]
jmp dword [eax*4 + 0x403dc0]
cmp esi, 0x90
jne case.0x403d70.41
or edi, 0x100
call fcn.00402cbd
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00402161
mov ebx, 0x104
mov ecx, esi
push ebx
call fcn.0040335d
push ebx
push eax
shl edi, 0x10
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push eax
mov ecx, esi
call fcn.00422564
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x404e09
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x40d040d
movzx eax, dx
mov dword [ebp - 0x11c], ecx
push 0x2f
pop ebx
cmp esi, edi
jne 0x404e6b
cmp ecx, 0x4090409
jne 0x404ea7
push 0x27
movzx eax, dx
pop ecx
sub eax, ecx
je 0x404e67
sub eax, 5
je 0x404e8f
dec eax
sub eax, 1
je 0x404e97
sub eax, 1
jne 0x404ea7
push 0x71
pop eax
jmp 0x404f58
push 0x77
jmp 0x404e61
cmp esi, 0x4090409
jne 0x404ea7
cmp ecx, edi
jne 0x404ea7
push 0x27
pop ecx
cmp ax, cx
je 0x404ea3
cmp ax, bx
je 0x404e9f
cmp eax, 0x71
je 0x404e97
cmp dx, 0x77
jne 0x404ea7
mov ax, cx
jmp 0x404f58
mov ax, bx
jmp 0x404f58
push 0x2e
jmp 0x404e61
push 0x2c
jmp 0x404e61
push esi
push edx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov dword [ebp - 0x120], eax
cmp ax, 0xffff
je 0x404f56
mov ebx, eax
xor esi, esi
push 0x100
lea eax, [ebp - 0x118]
shr ebx, 8
push esi
push eax
call fcn.004b6620
movzx eax, byte [ebp - 0x108]
lea edi, [ebp - 0x18]
add esp, 0xc
mov ecx, 0x80
test bl, 1
cmovne eax, ecx
test bl, 2
mov byte [ebp - 0x108], al
movzx eax, byte [ebp - 0x107]
cmovne eax, ecx
test bl, 4
push dword [ebp - 0x11c]
mov byte [ebp - 0x107], al
movzx eax, byte [ebp - 0x106]
cmovne eax, ecx
mov byte [ebp - 0x106], al
xor eax, eax
stosd dword es:[edi], eax
push esi
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x120]
push esi
movzx eax, al
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x404f56
mov ax, word [ebp - 0x18]
jmp 0x404f58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
leave
ret 0xc
Function at 0x404fed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
push dword [ebx + 4]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0041e51e
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mov edi, esi
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebx + 4], esi
jbe 0x40507e
mov ebx, esi
test eax, eax
je 0x405075
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push edi
call fcn.0041e6c1
mov ecx, dword [ebp + 0xc]
push dword [eax]
push ebx
call fcn.0041bbb9
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExW]
mov ecx, 0xffff
cmp ax, cx
je 0x40506b
push edi
lea ecx, [ebp - 0x14]
call fcn.0041e5d5
inc dword [eax]
inc ebx
cmp ebx, esi
jb 0x405038
mov eax, dword [ebp - 4]
xor esi, esi
mov ebx, dword [ebp + 8]
inc edi
cmp edi, dword [ebx + 4]
jb 0x40502f
cmp dword [ebp - 0x10], 0
mov eax, esi
mov dword [ebp + 8], eax
mov edi, esi
jbe 0x4050b3
push edi
lea ecx, [ebp - 0x14]
call fcn.0041e5d5
cmp dword [eax], esi
jbe 0x4050aa
push edi
lea ecx, [ebp - 0x14]
call fcn.0041e5d5
mov esi, dword [eax]
mov eax, edi
mov dword [ebp + 8], eax
jmp 0x4050ad
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x40508b
push eax
mov ecx, ebx
call fcn.0041e6c1
cmp dword [ebp - 0x14], 0
mov esi, dword [eax]
je 0x4050cc
push dword [ebp - 0x14]
call fcn.004c0774
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4059cf
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 2
pop eax
xor ecx, ecx
mov word [ebp - 0xa], ax
mov eax, dword [ebp + 8]
inc ecx
push 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push ecx
push eax
mov word [ebp - 0xc], cx
mov dword [ebp - 8], edx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
setne al
leave
ret

Function at 0x4074ab
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
jne 0x40752c
cmp dword [ebp + 0xc], 0x203
jne 0x4074e1
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x84ba
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor eax, eax
inc eax
jmp 0x40752e
cmp dword [ebp + 0xc], 0x100
jne 0x40752c
cmp dword [ebp + 0x10], 0xd
je 0x40750a
cmp dword [ebp + 0x10], 0x1b
jne 0x407523
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407523
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x84ba
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
xor eax, eax
pop ebp
ret 0x18
Function at 0x40a6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402cbd
push eax
lea ecx, [ebp - 4]
call fcn.00402161
lea edx, [ebp - 4]
xor ecx, ecx
call fcn.0045b716
test al, al
je 0x40a7c4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a7c4
push 0x409
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
mov dword [ebp - 0xc], eax
push 0x51ca10
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00401f21
lea eax, [ebp - 0x1c]
push eax
push 1
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0045b81b
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov bl, al
add ecx, 0xfffffff0
call fcn.004033d1
test bl, bl
je 0x40a799
cmp dword [ebp - 0x18], esi
jbe 0x40a799
mov ebx, 0xb4
push ebx
call fcn.004b3df0
pop ecx
mov ecx, eax
call fcn.0045114b
push esi
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00402478
push eax
mov ecx, edi
call fcn.00451422
test al, al
jne 0x40a772
test edi, edi
je 0x40a793
mov ecx, edi
call fcn.00451264
push ebx
push edi
call fcn.004b3de2
pop ecx
pop ecx
jmp 0x40a793
push edi
lea eax, [ebp - 8]
push eax
call fcn.0040a7d4
push edi
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00405f98
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004033d1
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x40a737
push 0x5491f8
lea eax, [ebp - 8]
push eax
call fcn.0040a7d4
lea ecx, [ebp - 0xc]
push dword [eax]
call fcn.00406003
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004033d1
lea ecx, [ebp - 0x1c]
call fcn.00402497
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004033d1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aa88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x40000000
push esi
mov esi, ecx
mov byte [esi + 0x27], 0
jne 0x40ab64
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call ebx
mov edi, dword [ebp + 8]
shr eax, 0xf
test al, 1
jne 0x40aafd
push 0x10
call ebx
shr eax, 0xf
test al, 1
jne 0x40aafd
push 0x12
call ebx
shr eax, 0xf
test al, 1
jne 0x40aafd
push 0x5b
call ebx
shr eax, 0xf
test al, 1
jne 0x40aafd
push 0x5c
call ebx
shr eax, 0xf
test al, 1
jne 0x40aafd
cmp edi, 0x2e
je 0x40aaf5
cmp edi, 8
je 0x40aaf5
cmp edi, 0xd
je 0x40aaf5
cmp edi, 0x1b
jne 0x40aafd
xor eax, eax
mov word [esi + 0x24], ax
jmp 0x40ab43
push ecx
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.0040abc3
cmp byte [esi + 0x26], 0
mov ax, word [ebp + 0xc]
je 0x40ab36
movzx ecx, word [esi + 0x24]
cmp ax, cx
jne 0x40ab36
push 1
push dword [esi + 4]
or ecx, 0x8000
mov byte [esi + 0x26], 0
mov word [esi + 0x24], cx
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x40ab43
mov word [esi + 0x24], ax
mov eax, 0x7fff
and word [esi + 0x24], ax
mov ecx, esi
call fcn.0040aa48
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
push 0
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov byte [esi + 0x26], 1
pop ebx
pop esi
pop ebp
ret 8