joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x488b88], 0
je 0x46295f
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x487d78]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x46295f
mov eax, dword [0x488b8c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x488b88]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x46292e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x488b88]
call fcn.00413a7c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x462926
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x462926
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x462926
mov eax, dword [ebp - 0x14]
call fcn.0046b338
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x462926
push ebp
call fcn.004627cc
pop ecx
test al, al
jne 0x462926
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4628e2
mov eax, dword [ebp - 0x14]
call fcn.00469ecc
dec eax
jle 0x462926
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00431c5c
cmp byte [ebp - 1], 0
je 0x462926
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x462926
mov edx, dword [ebp - 0x14]
mov eax, dword [0x488b8c]
call fcn.00461f94
inc edi
dec ebx
jne 0x462875
mov eax, dword [0x488b8c]
cmp dword [eax + 8], 0
jle 0x462946
mov eax, dword [0x488b8c]
call fcn.00462024
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46295f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00462634
pop ecx
test al, al
jne 0x46295f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465f28
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x465f74
mov eax, esi
call fcn.004534c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x465f74
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x465f74
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4660b3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x465fb4
cmp eax, 0x108
ja 0x465fb4
mov eax, esi
call fcn.004534c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4660aa
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4660b3
jmp 0x4660aa
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x466093
cmp eax, 0x20a
ja 0x466093
test byte [esi + 0x50], 0x80
jne 0x465fe6
sub eax, 0x203
je 0x465fe3
sub eax, 3
je 0x465fe3
sub eax, 3
jne 0x465fe6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x465ffa
dec eax
je 0x46600f
dec eax
je 0x46602c
dec eax
je 0x46600f
jmp 0x466033
mov ecx, ebx
mov eax, dword [0x487d78]
mov eax, dword [eax]
mov edx, esi
call fcn.0045cee4
jmp 0x4660aa
cmp byte [esi + 0x5d], 1
jne 0x466025
mov eax, esi
mov si, 0xffed
call fcn.00431c5c
jmp 0x4660b3
or word [esi + 0x54], 1
jmp 0x4660aa
and word [esi + 0x54], 0xfffe
jmp 0x4660aa
mov eax, dword [0x488b44]
cmp byte [eax + 0x20], 0
je 0x4660aa
mov eax, dword [0x488b44]
cmp dword [eax + 0x1c], 0
je 0x4660aa
mov eax, dword [ebx]
mov edx, dword [0x488b44]
cmp eax, dword [edx + 0x1c]
jne 0x4660aa
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00453404
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00431c5c
jmp 0x4660b3
cmp eax, 0xb00b
jne 0x4660aa
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00464848
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469568
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x469584
cmp dword [esi + 4], 0
je 0x4695b1
test byte [ebx + 0x55], 1
jne 0x4695a3
mov eax, ebx
call fcn.004681c0
test eax, eax
jne 0x4695a3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4696c1
mov edx, esi
mov eax, ebx
call fcn.00469088
jmp 0x4696c1
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4696ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046b338
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00465e5c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00469568
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046b338
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4696c1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fba0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x487ba4]
cmp byte [eax + 0xc], 0
je 0x46fd0d
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fd06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x488b98], 0
jne 0x46fbf4
push 0x46fd14
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x46fd1c
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488b98], eax
cmp dword [0x4845d0], 0
jne 0x46fcef
push 0x46fd2c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4845d0], eax
cmp dword [0x4845d0], 0
je 0x46fcef
push 0x46fd38
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488b9c], eax
push 0x46fd48
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488ba0], eax
push 0x46fd5c
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488ba4], eax
push 0x46fd74
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488ba8], eax
push 0x46fd8c
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488bac], eax
push 0x46fda0
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488bb0], eax
push 0x46fdb8
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488bb4], eax
push 0x46fdd0
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488bb8], eax
push 0x46fdec
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488bbc], eax
push 0x46fdf8
mov eax, dword [0x4845d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x488bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd0d
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x476fbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47701e
call fcn.00476f6c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004732bc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004732bc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47709c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x486240], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x477176
cmp dword [0x48623c], 0
jne 0x477176
cmp dword [0x486420], 0
je 0x477130
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00476e6c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x477116
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00476e6c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x477116
lea ebx, [ebp - 0x84]
jmp 0x477117
inc ebx
call fcn.00477058
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4771b1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x486244
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004732bc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x486247
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4771b1
cmp dword [0x48623c], 0
je 0x477190
cmp dword [0x48623c], 0xffffffff
je 0x4771b1
push esi
call dword [0x48623c]
pop ecx
mov eax, dword [0x486240]
test eax, eax
je 0x4771b1
cmp dword [0x486240], 0xffffffff
je 0x4771b1
cmp byte [eax], 0
je 0x4771b1
push esi
push eax
call fcn.00476fbc
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477948
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x489454], 0
jne 0x4779c9
cmp dword [0x489474], 0
jne 0x477978
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x489474], eax
test eax, eax
jne 0x477978
push str.GetEnvironmentStrings_failed
call fcn.004771c8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x489474]
jmp 0x47798c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004732bc
pop ecx
mov edi, eax
test eax, eax
jne 0x477984
lea edi, [ebp + 1]
push edi
call fcn.00472bc0
pop ecx
mov ebx, eax
mov dword [0x489458], ebx
test ebx, ebx
jne 0x4779b6
xor eax, eax
jmp 0x477a8c
push edi
mov edx, dword [0x489474]
push edx
push ebx
call fcn.0047316c
add esp, 0xc
jmp 0x4779e9
xor esi, esi
mov ebx, dword [0x489454]
jmp 0x4779e3
push eax
call fcn.004732bc
pop ecx
test eax, eax
jne 0x4779df
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4779d3
lea ebx, [esi + 4]
push 4
mov dword [0x48945c], ebx
inc ebx
push ebx
call fcn.00472698
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x477a0c
xor eax, eax
jmp 0x477a8c
cmp dword [0x489454], 0
jne 0x477a3d
xor esi, esi
mov ebx, dword [0x489458]
mov eax, dword [esp]
mov ebp, eax
jmp 0x477a2e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004732bc
pop ecx
mov edi, eax
test eax, eax
jne 0x477a24
jmp 0x477a6e
xor esi, esi
mov ebx, dword [0x489454]
mov eax, dword [esp]
mov edi, eax
jmp 0x477a68
push eax
call fcn.004732bc
pop ecx
test eax, eax
je 0x477a5d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x477a61
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x477a4c
mov eax, dword [0x489454]
test eax, eax
je 0x477a7e
push eax
call fcn.00472bd0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x489454], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404e5c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405018
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ebd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405034
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f2f
xor eax, eax
push ebp
push 0x404f28
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404cb4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f11
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405054
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f2f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405010
cmp byte [ebp - 0xd], 0
jne 0x404f71
cmp byte [ebp - 0x12], 0
je 0x405010
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f8a
dec ebx
cmp byte [ebx], 0x2e
je 0x404f99
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f89
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405010
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404fc6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405010
cmp byte [ebp - 0xd], 0
je 0x405010
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405010
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408640
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408679
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039cc
jmp 0x408682
mov eax, ebx
mov edx, esi
call fcn.00403938
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40868c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4086ad
mov al, byte [esp]
jmp 0x4086af
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413b4c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x413b52
ret

Function at 0x415f3c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x415f8d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415f74
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415f64
jmp 0x415f8d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x415f75
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fda0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x448778], 0
sete dl
or al, dl
jne 0x41fee0
mov eax, dword [0x44877c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x448778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41feaf
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x448778]
call fcn.0040d368
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41fea7
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x41fea7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x41fea7
mov eax, dword [ebp - 0x14]
call fcn.0042802c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41fea7
push ebp
call fcn.0041fd5c
pop ecx
test al, al
jne 0x41fea7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x41fe63
mov eax, dword [ebp - 0x14]
call fcn.004269b8
dec eax
jle 0x41fea7
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402e38
cmp byte [ebp - 1], 0
je 0x41fea7
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41fea7
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44877c]
call fcn.0041f5a8
inc edi
dec esi
jne 0x41fdf6
mov eax, dword [0x44877c]
cmp dword [eax + 8], 0
jle 0x41fec7
mov eax, dword [0x44877c]
call fcn.0041f638
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41fee0
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0041fbc4
pop ecx
test al, al
jne 0x41fee0
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4259c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4259f5
je 0x425a4f
sub eax, 7
je 0x425a16
dec eax
je 0x425a40
sub eax, 0x17
je 0x425af4
jmp 0x425b32
add eax, 0xffffff00
sub eax, 9
jb 0x425ae0
add eax, 0xffffff09
sub eax, 0xb
jb 0x425aa8
jmp 0x425b32
mov eax, ebx
call fcn.00437afc
mov edi, eax
test edi, edi
je 0x425b92
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x425b9b
jmp 0x425b92
test byte [ebx + 0x44], 0x20
jne 0x425b9b
jmp 0x425b92
mov edx, esi
mov eax, ebx
call fcn.00423030
cmp dword [esi + 0xc], 0xffffffff
jne 0x425b9b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004068c0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00421b7c
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042589c
test eax, eax
je 0x425b9b
mov dword [esi + 0xc], 1
jmp 0x425b9b
mov edx, esi
mov eax, ebx
call fcn.00425930
test al, al
je 0x425b92
cmp dword [esi + 0xc], 0
jne 0x425b9b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0042802c
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x425b9b
mov eax, ebx
call fcn.004226cc
test al, al
jne 0x425b9b
jmp 0x425b92
mov eax, ebx
call fcn.0042802c
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x425b92
cmp dword [0x4476a0], 0
je 0x425b92
mov eax, dword [0x4476a0]
cmp ebx, dword [eax + 0x24]
jne 0x425b92
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4476a0]
call fcn.00422f64
jmp 0x425b92
mov eax, dword [0x448740]
cmp byte [eax + 0x20], 0
je 0x425b92
mov eax, dword [0x448740]
cmp dword [eax + 0x1c], 0
je 0x425b92
mov eax, dword [esi]
mov edx, dword [0x448740]
cmp eax, dword [edx + 0x1c]
jne 0x425b92
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00437a40
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402e38
jmp 0x425b9b
mov edx, esi
mov eax, ebx
call fcn.00423030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42605c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x426078
cmp dword [esi + 4], 0
je 0x4260a5
test byte [ebx + 0x45], 1
jne 0x426097
mov eax, ebx
call fcn.00425000
test eax, eax
jne 0x426097
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4261b5
mov edx, esi
mov eax, ebx
call fcn.00425cd4
jmp 0x4261b5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4261ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042802c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00422f64
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042605c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042802c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4261b5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42fe3c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004038e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42fe8b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403b14
pop ebx
mov esp, ebp
pop ebp
ret