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

Disassembly:
push 0x7c
mov eax, 0x566905
call fcn.00544b5b
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.0046955e
test eax, eax
je 0x498d9e
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.0046e968
test eax, eax
je 0x498c15
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.0040b6e0
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 0x582878
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040b6e0
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 0x498d88
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004a42b6
push edi
push 0x1000
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00459ccd
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.004595d3
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.00459c8f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004a43d7
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.00498b68
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.004020a0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004020a0
mov eax, ebx
jmp 0x498da0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004020a0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004020a0
xor eax, eax
call fcn.00544c00
ret 8
Function at 0x4a0fd0
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 0x4a1111
push esi
push edi
push 0x57d5a0
call fcn.004552f3
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x4a1060
mov esi, dword [ebx + 0x168]
jmp 0x4a104c
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 0x4a104c
push edi
call fcn.0044cc05
push eax
push 0x5cfb54
call fcn.00455311
pop ecx
pop ecx
test eax, eax
je 0x4a104c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x4a104c
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x4a100c
lea ecx, [ebx + 0x164]
call fcn.0053c1d1
jmp 0x4a110f
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x4a110f
jmp 0x4a1076
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.004c7c17
mov esi, dword [eax]
test esi, esi
jne 0x4a108f
xor ebx, ebx
jmp 0x4a1092
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1105
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a1105
test edi, edi
je 0x4a10d7
push esi
push 0x5cfb54
call fcn.00455311
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x583a88
call fcn.00455311
pop ecx
pop ecx
test eax, eax
je 0x4a1105
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.004a0522
test eax, eax
jne 0x4a1105
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004a04f2
cmp dword [ebp - 8], 0
jne 0x4a1073
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a851c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x5d70e0], 0
mov dword [ebp - 4], ecx
jne 0x4a8532
xor eax, eax
jmp 0x4a856c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4a8542
call fcn.00451b96
mov esi, dword [eax + 0xc]
push edi
push dword [0x5d88dc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a8568
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4a8570
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 0x4a858e
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4a856a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004a843e
mov esi, eax
jmp 0x4a8580
Function at 0x4b0473
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x4b04f3
cmp dword [ebp + 0xc], ecx
jne 0x4b04f3
cmp dword [ebx + 0x94], ecx
jne 0x4b04f3
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x4b04e9
cmp eax, 0xffffffff
je 0x4b04e9
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0044a9ae
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x4b04f3
xor eax, eax
jmp 0x4b0633
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x4b052e
cmp dword [ebp + 0xc], 0
jne 0x4b052e
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0044a9ae
test eax, eax
jne 0x4b04e2
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x4b0554
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x4b0554
cmp eax, 0xffffffff
je 0x4b0554
cmp dword [ebx + 0x90], ecx
jne 0x4b0554
cmp dword [ebx + 0xa8], ecx
je 0x4b04e2
push dword [ebx + 0x6c]
push 0x5d05ac
call fcn.00455311
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x4b058d
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x4b05f3
push edi
jmp 0x4b05ee
push dword [ebx + 0x6c]
push 0x5cf6ac
call fcn.00455311
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x4b05b9
cmp eax, edi
je 0x4b05b9
cmp dword [0x5d7444], edi
jne 0x4b05b9
push 1
push ebx
mov ecx, eax
call fcn.0047825f
jmp 0x4b05e6
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4b05d1
push edi
call fcn.004699c3
cmp eax, edi
je 0x4b05d1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x4b04e2
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4b05f3
push ebx
call fcn.0046c6ab
cmp dword [ebx + 0x6c], edi
je 0x4b0630
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046868c
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4bcbb8
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, ecx
mov ecx, 0x104
cmp eax, ecx
ja 0x4bcd12
je 0x4bcd38
cmp eax, 0xa1
jb 0x4bcd64
cmp eax, 0xa2
jbe 0x4bcd38
cmp eax, 0xa3
jbe 0x4bcd64
cmp eax, 0xa5
jbe 0x4bcd38
cmp eax, 0xa6
jbe 0x4bcd64
cmp eax, 0xa8
jbe 0x4bcd38
cmp eax, 0x100
jne 0x4bcd64
cmp dword [esi + 0x80], 0xffffffff
je 0x4bcd38
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4bcd38
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x4bccde
dec eax
jne 0x4bcd38
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [eax + 1]
add ecx, eax
cmp edi, ecx
jge 0x4bccd6
mov eax, edi
cdq
idiv dword [esi + 0x7c]
mov eax, dword [esi]
mov ecx, esi
push edx
mov dword [ebp + 8], edx
call dword [eax + 0x254]
test eax, eax
jne 0x4bcc97
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jl 0x4bcc6f
jmp 0x4bccd6
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x1e4], 1
call dword [eax + 0x1ec]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1e8]
mov ecx, eax
call fcn.0045021f
push dword [esi + 0x80]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x248]
and dword [esi + 0x1e4], 0
xor eax, eax
inc eax
jmp 0x4bcd6c
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [ecx + eax - 1]
cmp edi, eax
jle 0x4bccd6
mov eax, edi
cdq
idiv dword [esi + 0x7c]
mov eax, dword [esi]
mov ecx, esi
push edx
mov dword [ebp + 8], edx
call dword [eax + 0x254]
test eax, eax
jne 0x4bcc97
dec edi
cmp edi, dword [esi + 0x80]
jg 0x4bccef
jmp 0x4bccd6
cmp eax, 0x200
jb 0x4bcd64
cmp eax, 0x202
jbe 0x4bcd38
cmp eax, 0x203
jbe 0x4bcd64
cmp eax, 0x205
jbe 0x4bcd38
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4bcd64
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x4bcd4e
cmp dword [ecx + 0x20], 0
je 0x4bcd4e
push edi
call fcn.0040bcd0
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x4bcd64
cmp dword [ecx + 0x20], 0
je 0x4bcd64
push edi
call fcn.0040bcd0
push edi
mov ecx, esi
call fcn.004c58d1
pop edi
pop esi
pop ebp
ret 4
Function at 0x4ca5a7
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x5686f9
call fcn.00544b28
xor edi, edi
cmp dword [0x5cf618], edi
je 0x4ca670
cmp dword [0x5d052c], 0xfffffffe
jne 0x4ca65d
cmp dword [ebp + 8], 0xffffffff
je 0x4ca670
test byte [0x5d8cb0], 1
mov esi, 0x5d8c90
jne 0x4ca606
or dword [0x5d8cb0], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0043fbe0
push 0x5766dc
call fcn.005427fb
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.0043faa0
cmp dword [0x5d8c8c], edi
je 0x4ca61a
call fcn.00448939
push edi
push edi
push 0x4ca54f
call fcn.00547e5d
add esp, 0xc
mov dword [0x5d8c8c], eax
cmp eax, edi
jbe 0x4ca64a
cmp eax, 0xffffffff
je 0x4ca64a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x5d052c], eax
jmp 0x4ca650
mov dword [0x5d8c8c], edi
push 0x5d8c98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4ca670
mov eax, dword [ebp + 8]
mov dword [0x5d052c], eax
cmp eax, 0xffffffff
jne 0x4ca670
mov dword [0x5d8c8c], edi
call fcn.00544c00
ret

Function at 0x4cbc85
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5d2614]
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.004cb733
mov ebx, eax
cmp ebx, esi
je 0x4cbcf2
lea ecx, [ebp - 0x20c]
call fcn.0045c6de
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005418f3
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4cbd10
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004cbc85
cmp eax, esi
jne 0x4cbd57
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 0x4cbcfa
lea ecx, [ebp - 0x20c]
call fcn.0045c6de
push dword [ebp - 0x214]
mov ecx, edi
call fcn.004cb6d4
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.0045c6de
mov eax, esi
jmp 0x4cbce1
Function at 0x4e25b4
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 0x4e2605
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.004e1f88
mov ecx, ebx
call fcn.004e252c
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x4e265b
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x4e2620
cmp dword [ebp + 0xc], 0x79
je 0x4e261b
cmp dword [ebp + 0xc], 0x12
jne 0x4e265b
xor eax, eax
inc eax
jmp 0x4e265b
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 0x4e2660
cmp esi, 0x79
je 0x4e2660
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 [0x5d7d44], 0
jne 0x4e2657
test byte [ebx + 0x2f4], 2
jne 0x4e2657
cmp esi, 0x12
je 0x4e2684
cmp esi, 0x79
jne 0x4e2657
test edi, edi
jne 0x4e2657
test eax, eax
jne 0x4e2657
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0044cc05
cmp eax, ebx
jne 0x4e26a7
test dword [ebp + 0x10], 0x40000000
jne 0x4e26a7
cmp esi, 0x79
jne 0x4e26b5
mov ecx, dword [ebp + 8]
jmp 0x4e26ae
cmp esi, 0x79
jne 0x4e26b5
mov ecx, ebx
call fcn.0045021f
jmp 0x4e26d0
cmp dword [ebx + 0x2a0], 0
jge 0x4e26d0
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x4e2659
Function at 0x4e4dc5
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x4e4de7
or eax, 0xffffffff
jmp 0x4e4dec
mov eax, dword [0x5cfbc4]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x5d0bcc
call fcn.00455311
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4e4e89
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4e4e89
cmp edi, ebx
je 0x4e4e3e
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x5d1554
call fcn.00455311
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x4e4e92
test ebx, ebx
je 0x4e4e75
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x4e4e89
cmp dword [ebp - 4], 0
je 0x4e4e75
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x4e4e8b
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x4e4e89
test edi, edi
je 0x4e4e89
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x4e4e89
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x4e4e89
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x4e4e8b
Function at 0x4e878c
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x5d9220], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4e87bb
or dword [0x5d9220], 1
mov ecx, 0x5d921c
call fcn.00401c70
push 0x576801
call fcn.005427fb
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4e87c7
call fcn.00448939
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x4e8840
cmp dword [eax + 0x20], 0
je 0x4e8840
test eax, eax
je 0x4e87de
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4e8840
mov eax, dword [edi + 4]
dec eax
je 0x4e881f
dec eax
je 0x4e87f5
dec eax
jne 0x4e8840
mov esi, 0x428e
jmp 0x4e8824
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4e8824
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x4e8824
add esi, 3
jmp 0x4e8824
mov esi, 0x3ea0
push esi
mov ecx, 0x5d921c
call fcn.00401930
test eax, eax
je 0x4e87c2
mov eax, dword [0x5d921c]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4e8842
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x505a93
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x56ae31
call fcn.00544b91
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.0052e7ec
push 0x15c
call fcn.00447f04
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x505ad7
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.0052f851
jmp 0x505ad9
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.0052e7be
call fcn.00451b96
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 0x505c79
cmp dword [edi + 4], ebx
jle 0x505c79
lea ecx, [ebp - 0x21c]
call fcn.00401c70
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 0x505c5d
lea ecx, [ebp - 0x220]
call fcn.00401c70
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x505bae
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.00402820
add esp, 0xc
jmp 0x505be0
jge 0x505bce
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.00402820
add esp, 0x10
jmp 0x505be0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401f40
push 0x15c
call fcn.00447f04
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x505c04
mov ecx, eax
call fcn.0050912e
mov esi, eax
jmp 0x505c06
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.0045e09d
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.0052e7be
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004020a0
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004020a0
inc ebx
cmp ebx, dword [edi + 4]
jl 0x505b47
call fcn.00544c14
ret
Function at 0x50f72d
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x56b60c
call fcn.00544b91
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00401c70
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x50f75b
push 0x5915d8
jmp 0x50f79e
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00544f30
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 0x50f78d
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.004019a0
lea ecx, [ebp - 0x7c]
call fcn.00403370
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x50f7ef
push edi
lea ecx, [ebp - 0x7c]
call fcn.0045b294
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x50f7d5
inc edi
cmp edi, dword [esi - 0xc]
jl 0x50f7b6
jmp 0x50f7ef
movzx eax, bx
push eax
call fcn.00547ca9
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.00416020
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.00403ee0
cmp dword [ebp + 0x10], 0
jne 0x50f80b
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.0044830f
lea ecx, [esi - 0x10]
call fcn.004020a0
call fcn.00544c14
ret 0xc

Function at 0x524370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x524388
mov edi, dword [esi + 0xc]
jmp 0x5243c8
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5243a1
call fcn.004523e1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5243b6
call fcn.004523e1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5243c8
call fcn.004523e1
call fcn.00451b96
cmp dword [eax + 0x3c], 0
je 0x5243dd
push edi
mov ecx, ebx
call fcn.00523253
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00524296
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x5243fb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x524407
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8