joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4876ab
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 0x4876f3
call fcn.00434891
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4876f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x487736
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 0x48771f
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 0x48771f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x487733
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 0x48b32c
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x48b350
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x48b35e
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x48b34a
xor eax, eax
inc eax
pop esi
ret
Function at 0x49b468
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5668e6
call fcn.005426ed
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403630
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x49b4ca
call fcn.00434142
cmp eax, 1
jne 0x49b4ca
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x583a58
push eax
call fcn.0040ff30
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403b60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403b40
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403b40
mov eax, esi
call fcn.005427c5
ret 0x10

Function at 0x49b4f3
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5668e6
call fcn.005426ed
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403630
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x49b555
call fcn.00434142
cmp eax, 1
jne 0x49b555
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x583a58
push eax
call fcn.0040ff30
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403b60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403b40
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403b40
mov eax, esi
call fcn.005427c5
ret 0x14
Function at 0x4ac470
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 0x4ac48a
call fcn.00427b64
call fcn.00434891
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4ac4aa
xor eax, eax
jmp 0x4ac5c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ac4a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4ac4a3
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.00427114
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4ac485
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 0x4ac507
mov ecx, edi
call fcn.004a51a8
jmp 0x4ac50c
call fcn.004a5092
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x4ac51e
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x4ac539
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x4ac5b1
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x4ac588
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 0x4ac57b
test eax, eax
jbe 0x4ac57b
push eax
mov ecx, 0x5d1ffc
call fcn.004b3cc6
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 0x4ac552
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 0x4ac5b1
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00427143
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 0x4ae83d
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 [0x5d4d80]
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 0x4ae876
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x4ae89d
cmp dword [0x5dab10], 0
jne 0x4ae89d
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4ae890
push 0x12
call esi
test bx, ax
je 0x4ae894
mov eax, edi
jmp 0x4ae90c
push edi
call fcn.00546c10
pop ecx
jmp 0x4ae90c
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00542b10
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4ae8c6
call fcn.00427b64
call fcn.00480fba
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.0053d842
leave
ret 4
Function at 0x4afbc3
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x56767b
call fcn.00542720
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.004a5d6b
test eax, eax
je 0x4afd92
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.004aaf01
test eax, eax
je 0x4afc09
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00403740
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00403990
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00422d50
lea ecx, [ebp - 0x14]
call fcn.00403740
xor ebx, ebx
inc ebx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00403990
push eax
push edi
push 0x588074
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00422d50
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 0x4afd7c
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
inc ebp
cld
add ch, al
inc edx
cmp dh, bh
call dword [edi + 0x68]
add byte [eax], dl
add byte [eax], al
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004946c7
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.0049409b
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.00494689
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00493672
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.004abb5f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.00403b40
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00403b40
mov eax, ebx
jmp 0x4afd94
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00403b40
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00403b40
xor eax, eax
call fcn.005427c5
ret 8
Function at 0x4b84f8
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 0x4b8578
cmp dword [ebp + 0xc], ecx
jne 0x4b8578
cmp dword [ebx + 0x94], ecx
jne 0x4b8578
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x4b856e
cmp eax, 0xffffffff
je 0x4b856e
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.0042a306
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x4b8578
xor eax, eax
jmp 0x4b86b8
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x4b85b3
cmp dword [ebp + 0xc], 0
jne 0x4b85b3
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.0042a306
test eax, eax
jne 0x4b8567
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x4b85d9
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x4b85d9
cmp eax, 0xffffffff
je 0x4b85d9
cmp dword [ebx + 0x90], ecx
jne 0x4b85d9
cmp dword [ebx + 0xa8], ecx
je 0x4b8567
push dword [ebx + 0x6c]
push 0x5d237c
call fcn.00494869
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x4b8612
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 0x4b8678
push edi
jmp 0x4b8673
push dword [ebx + 0x6c]
push 0x5d2414
call fcn.00494869
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x4b863e
cmp eax, edi
je 0x4b863e
cmp dword [0x5daaf4], edi
jne 0x4b863e
push 1
push ebx
mov ecx, eax
call fcn.004be587
jmp 0x4b866b
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4b8656
push edi
call fcn.004a61a3
cmp eax, edi
je 0x4b8656
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 0x4b8567
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4b8678
push ebx
call fcn.004a8cc9
cmp dword [ebx + 0x6c], edi
je 0x4b86b5
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.00434d0e
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 0x4c61e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5d4d80]
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.004c5c8e
mov ebx, eax
cmp ebx, esi
je 0x4c624d
lea ecx, [ebp - 0x20c]
call fcn.004881db
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d842
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4c626b
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004c61e0
cmp eax, esi
jne 0x4c62b2
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 0x4c6255
lea ecx, [ebp - 0x20c]
call fcn.004881db
push dword [ebp - 0x214]
mov ecx, edi
call fcn.004c5c2f
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.004881db
mov eax, esi
jmp 0x4c623c
Function at 0x4c9426
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x568788
call fcn.00542756
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004b736e
push 0x15c
call fcn.00427114
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4c946a
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004d1344
jmp 0x4c946c
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004b7340
call fcn.00434891
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 0x4c960c
cmp dword [edi + 4], ebx
jle 0x4c960c
lea ecx, [ebp - 0x21c]
call fcn.00403740
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 0x4c95f0
lea ecx, [ebp - 0x220]
call fcn.00403740
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4c9541
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.00402c70
add esp, 0xc
jmp 0x4c9573
jge 0x4c9561
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.00402c70
add esp, 0x10
jmp 0x4c9573
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00403b60
push 0x15c
call fcn.00427114
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4c9597
mov ecx, eax
call fcn.0043c742
mov esi, eax
jmp 0x4c9599
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.0048afe8
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.004b7340
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00403b40
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00403b40
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4c94da
call fcn.005427d9
ret
Function at 0x4d675a
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 0x4d677c
or eax, 0xffffffff
jmp 0x4d6781
mov eax, dword [0x5d0eb0]
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 0x5d2b9c
call fcn.00494869
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4d681e
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4d681e
cmp edi, ebx
je 0x4d67d3
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x5d2d2c
call fcn.00494869
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x4d6827
test ebx, ebx
je 0x4d680a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x4d681e
cmp dword [ebp - 4], 0
je 0x4d680a
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 0x4d6820
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 0x4d681e
test edi, edi
je 0x4d681e
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x4d681e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x4d681e
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 0x4d6820
Function at 0x4da121
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x5dc154], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4da150
or dword [0x5dc154], 1
mov ecx, 0x5dc150
call fcn.00403740
push 0x575dbf
call fcn.0053e5dd
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4da15c
call fcn.00427b64
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x4da1d5
cmp dword [eax + 0x20], 0
je 0x4da1d5
test eax, eax
je 0x4da173
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4da1d5
mov eax, dword [edi + 4]
dec eax
je 0x4da1b4
dec eax
je 0x4da18a
dec eax
jne 0x4da1d5
mov esi, 0x428e
jmp 0x4da1b9
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4da1b9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x4da1b9
add esi, 3
jmp 0x4da1b9
mov esi, 0x3ea0
push esi
mov ecx, 0x5dc150
call fcn.00403540
test eax, eax
je 0x4da157
mov eax, dword [0x5dc150]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4da1d7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4e757b
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 0x4e75c5
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e75c5
call fcn.004e6d6f
test eax, eax
je 0x4e75c5
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0041fc60
xor eax, eax
inc eax
jmp 0x4e77dd
cmp dword [ebx + 4], 0x100
push edi
jne 0x4e77d4
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4e76c2
push 0x11
call edi
test ax, ax
jl 0x4e76c2
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e76c2
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e7635
cmp eax, 0x20
jbe 0x4e76c2
cmp eax, 0x24
jbe 0x4e7628
cmp eax, 0x26
je 0x4e7628
cmp eax, 0x28
jne 0x4e76c2
call fcn.004e6d6f
test eax, eax
je 0x4e76c2
mov ecx, esi
call fcn.0042ff41
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e6d6f
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e766a
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0041fc60
jmp 0x4e77cf
call fcn.0041fc80
test eax, eax
je 0x4e77cf
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0042def4
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4e7698
xor edi, edi
jmp 0x4e769b
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0041fc80
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4e77cf
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4e779e
sub eax, 0x12
je 0x4e7776
sub eax, 0xb
je 0x4e76e4
dec eax
dec eax
jne 0x4e77d4
push 0x12
call edi
test ax, ax
jl 0x4e77d4
push 0x11
call edi
test ax, ax
jl 0x4e77d4
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e77d4
call fcn.004e6d6f
test eax, eax
jne 0x4e77cf
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e6cfc
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.0042c707
test eax, eax
je 0x4e77cf
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0042c707
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4e77cf
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e778a
push 0
call fcn.004e6cfc
mov ecx, esi
call fcn.0042d862
test eax, eax
je 0x4e77d4
mov ecx, esi
call fcn.0042d862
jmp 0x4e77c8
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0042c707
test eax, eax
je 0x4e77d4
push dword [esi + 0x20]
call edi
push eax
call fcn.0042c707
push 0
push esi
mov ecx, eax
call fcn.004280b6
mov ecx, eax
call fcn.0042ff41
xor eax, eax
inc eax
jmp 0x4e77dc
push ebx
mov ecx, esi
call fcn.0042a37a
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f56c1
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 0x4f581b
je 0x4f5841
cmp eax, 0xa1
jb 0x4f586d
cmp eax, 0xa2
jbe 0x4f5841
cmp eax, 0xa3
jbe 0x4f586d
cmp eax, 0xa5
jbe 0x4f5841
cmp eax, 0xa6
jbe 0x4f586d
cmp eax, 0xa8
jbe 0x4f5841
cmp eax, 0x100
jne 0x4f586d
cmp dword [esi + 0x80], 0xffffffff
je 0x4f5841
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4f5841
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x4f57e7
dec eax
jne 0x4f5841
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [eax + 1]
add ecx, eax
cmp edi, ecx
jge 0x4f57df
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 0x4f57a0
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jl 0x4f5778
jmp 0x4f57df
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.0042ff41
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 0x4f5875
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [ecx + eax - 1]
cmp edi, eax
jle 0x4f57df
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 0x4f57a0
dec edi
cmp edi, dword [esi + 0x80]
jg 0x4f57f8
jmp 0x4f57df
cmp eax, 0x200
jb 0x4f586d
cmp eax, 0x202
jbe 0x4f5841
cmp eax, 0x203
jbe 0x4f586d
cmp eax, 0x205
jbe 0x4f5841
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4f586d
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x4f5857
cmp dword [ecx + 0x20], 0
je 0x4f5857
push edi
call fcn.0044409c
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x4f586d
cmp dword [ecx + 0x20], 0
je 0x4f586d
push edi
call fcn.0044409c
push edi
mov ecx, esi
call fcn.004eed95
pop edi
pop esi
pop ebp
ret 4