joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40830c
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 0x408354
call fcn.00409833
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408354
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408397
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 0x408380
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 0x408380
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x408394
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 0x40fa73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40faba
call fcn.00409833
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40faba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fad6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f5eb
mov esi, eax
test edi, edi
je 0x40fad4
test ebx, ebx
je 0x40fad4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4103ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00409833
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410426
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00410039
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x410484
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4104a8
cmp dword [edi + 0x54], 0
jne 0x4104a8
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00409833
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00410445
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4140da
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5266a3
call fcn.00503975
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4140ff
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x414145
lea ecx, [ebp - 0x10]
call fcn.004015e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00445d73
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004015c0
mov eax, esi
call fcn.00503a4d
ret 8
Function at 0x41a27b
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 [0x575834]
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 0x41a2b4
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x41a2db
cmp dword [0x5791f8], 0
jne 0x41a2db
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x41a2ce
push 0x12
call esi
test bx, ax
je 0x41a2d2
mov eax, edi
jmp 0x41a34a
push edi
call fcn.005070eb
pop ecx
jmp 0x41a34a
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005047c0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x41a304
call fcn.00404d94
call fcn.00410c14
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.0050271c
leave
ret 4
Function at 0x42a353
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 0x42a36d
call fcn.00404d94
call fcn.00409833
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x42a38d
xor eax, eax
jmp 0x42a4a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42a386
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42a386
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.00403b24
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x42a368
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 0x42a3ea
mov ecx, edi
call fcn.00422e04
jmp 0x42a3ef
call fcn.00422cee
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x42a401
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x42a41c
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x42a494
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x42a46b
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 0x42a45e
test eax, eax
jbe 0x42a45e
push eax
mov ecx, 0x5720a4
call fcn.0047d90f
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 0x42a435
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 0x42a494
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00403b53
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 0x42fe6b
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 0x42ffac
push esi
push edi
push 0x5322b0
call fcn.0041455b
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x42fefb
mov esi, dword [ebx + 0x168]
jmp 0x42fee7
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 0x42fee7
push edi
call fcn.0040c6ae
push eax
push 0x572f38
call fcn.00414579
pop ecx
pop ecx
test eax, eax
je 0x42fee7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x42fee7
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x42fea7
lea ecx, [ebx + 0x164]
call fcn.004d05bd
jmp 0x42ffaa
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x42ffaa
jmp 0x42ff11
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.00490f9c
mov esi, dword [eax]
test esi, esi
jne 0x42ff2a
xor ebx, ebx
jmp 0x42ff2d
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42ffa0
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42ffa0
test edi, edi
je 0x42ff72
push esi
push 0x572f38
call fcn.00414579
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x53d1bc
call fcn.00414579
pop ecx
pop ecx
test eax, eax
je 0x42ffa0
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.0042f3bd
test eax, eax
jne 0x42ffa0
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0042f38d
cmp dword [ebp - 8], 0
jne 0x42ff0e
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x434546
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x575834]
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.00433ff4
mov ebx, eax
cmp ebx, esi
je 0x4345b3
lea ecx, [ebp - 0x20c]
call fcn.00408ebc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050271c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4345d1
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00434546
cmp eax, esi
jne 0x434618
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], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4345bb
lea ecx, [ebp - 0x20c]
call fcn.00408ebc
push dword [ebp - 0x214]
mov ecx, edi
call fcn.00433f95
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.00408ebc
mov eax, esi
jmp 0x4345a2
Function at 0x437b6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x578f60], 0
mov dword [ebp - 4], ecx
jne 0x437b80
xor eax, eax
jmp 0x437bba
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x437b90
call fcn.00409833
mov esi, dword [eax + 0xc]
push edi
push dword [0x579ce0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x437bb6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x437bbe
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 0x437bdc
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x437bb8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00437a8b
mov esi, eax
jmp 0x437bce
Function at 0x44c378
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.0046af79
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x44c433
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call edi
push str.GetThemeColor
push dword [esi + 0x48]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x48]
mov dword [esi + 0x58], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x48]
mov dword [esi + 0x5c], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x48]
mov dword [esi + 0x60], eax
call edi
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.0044bf09
jmp 0x44c448
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
pop edi
mov eax, esi
pop esi
ret
Function at 0x46af79
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x575834]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x46afae
xor eax, eax
jmp 0x46b001
lea eax, [ebp - 0x210]
push eax
call fcn.00503a7f
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x46afdf
push 0x554a0c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050483a
add esp, 0xc
test eax, eax
jne 0x46afaa
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050483a
add esp, 0xc
test eax, eax
jne 0x46afaa
lea eax, [ebp - 0x210]
push eax
call fcn.004175a7
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050271c
leave
ret
Function at 0x47313a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040e11d
call fcn.00405842
cmp eax, esi
pop esi
jne 0x473156
mov ecx, 0x578df8
jmp fcn.004183ad
ret
Function at 0x4760b9
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x522724
call fcn.005039de
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004015e0
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x4760e7
push 0x5381c0
jmp 0x47612a
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.005047c0
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 0x476119
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.004022f0
lea ecx, [ebp - 0x7c]
call fcn.0044cf69
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x47617b
push edi
lea ecx, [ebp - 0x7c]
call fcn.00428d2c
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x476161
inc edi
cmp edi, dword [esi - 0xc]
jl 0x476142
jmp 0x47617b
movzx eax, bx
push eax
call fcn.005070eb
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.004447da
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.004046bc
cmp dword [ebp + 0x10], 0
jne 0x476197
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.0040469f
lea ecx, [esi - 0x10]
call fcn.004015c0
call fcn.00503a61
ret 0xc
Function at 0x4777ae
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 0x4777ff
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.00477182
mov ecx, ebx
call fcn.00477726
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x477855
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x47781a
cmp dword [ebp + 0xc], 0x79
je 0x477815
cmp dword [ebp + 0xc], 0x12
jne 0x477855
xor eax, eax
inc eax
jmp 0x477855
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 0x47785a
cmp esi, 0x79
je 0x47785a
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 [0x57a7b4], 0
jne 0x477851
test byte [ebx + 0x2f4], 2
jne 0x477851
cmp esi, 0x12
je 0x47787e
cmp esi, 0x79
jne 0x477851
test edi, edi
jne 0x477851
test eax, eax
jne 0x477851
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0040c6ae
cmp eax, ebx
jne 0x4778a1
test dword [ebp + 0x10], 0x40000000
jne 0x4778a1
cmp esi, 0x79
jne 0x4778af
mov ecx, dword [ebp + 8]
jmp 0x4778a8
cmp esi, 0x79
jne 0x4778af
mov ecx, ebx
call fcn.00413bc1
jmp 0x4778ca
cmp dword [ebx + 0x2a0], 0
jge 0x4778ca
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x477853
Function at 0x482d3c
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 0x482e96
je 0x482ebc
cmp eax, 0xa1
jb 0x482ee8
cmp eax, 0xa2
jbe 0x482ebc
cmp eax, 0xa3
jbe 0x482ee8
cmp eax, 0xa5
jbe 0x482ebc
cmp eax, 0xa6
jbe 0x482ee8
cmp eax, 0xa8
jbe 0x482ebc
cmp eax, 0x100
jne 0x482ee8
cmp dword [esi + 0x80], 0xffffffff
je 0x482ebc
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x482ebc
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x482e62
dec eax
jne 0x482ebc
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [eax + 1]
add ecx, eax
cmp edi, ecx
jge 0x482e5a
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 0x482e1b
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jl 0x482df3
jmp 0x482e5a
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.00413bc1
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 0x482ef0
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [ecx + eax - 1]
cmp edi, eax
jle 0x482e5a
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 0x482e1b
dec edi
cmp edi, dword [esi + 0x80]
jg 0x482e73
jmp 0x482e5a
cmp eax, 0x200
jb 0x482ee8
cmp eax, 0x202
jbe 0x482ebc
cmp eax, 0x203
jbe 0x482ee8
cmp eax, 0x205
jbe 0x482ebc
add eax, 0xfffffdf9
cmp eax, 1
ja 0x482ee8
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x482ed2
cmp dword [ecx + 0x20], 0
je 0x482ed2
push edi
call fcn.004248b8
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x482ee8
cmp dword [ecx + 0x20], 0
je 0x482ee8
push edi
call fcn.004248b8
push edi
mov ecx, esi
call fcn.0049d43f
pop edi
pop esi
pop ebp
ret 4
Function at 0x48763b
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 0x48765d
or eax, 0xffffffff
jmp 0x487662
mov eax, dword [0x57221c]
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 0x5736b8
call fcn.00414579
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4876ff
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4876ff
cmp edi, ebx
je 0x4876b4
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x573e98
call fcn.00414579
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x487708
test ebx, ebx
je 0x4876eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x4876ff
cmp dword [ebp - 4], 0
je 0x4876eb
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 0x487701
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 0x4876ff
test edi, edi
je 0x4876ff
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x4876ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x4876ff
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 0x487701
Function at 0x48b023
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x57aafc], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x48b052
or dword [0x57aafc], 1
mov ecx, 0x57aaf8
call fcn.004015e0
push 0x52a87f
call fcn.00503165
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x48b05e
call fcn.00404d94
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x48b0d7
cmp dword [eax + 0x20], 0
je 0x48b0d7
test eax, eax
je 0x48b075
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x48b0d7
mov eax, dword [edi + 4]
dec eax
je 0x48b0b6
dec eax
je 0x48b08c
dec eax
jne 0x48b0d7
mov esi, 0x428e
jmp 0x48b0bb
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x48b0bb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x48b0bb
add esi, 3
jmp 0x48b0bb
mov esi, 0x3ea0
push esi
mov ecx, 0x57aaf8
call fcn.00402140
test eax, eax
je 0x48b059
mov eax, dword [0x57aaf8]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x48b0d9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc