joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030be0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x100454c8
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x10059794]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x10059794]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, dword [esp + 0x138]
mov edi, dword [esp + 0x13c]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea eax, [esp + 0xc]
push eax
push edi
mov dword [esp + 0x138], 0
call fcn.100305b0
add esp, 8
test eax, eax
jne 0x10030c62
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 0x8000ffff
jmp 0x10030df9
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
test esi, esi
jge 0x10030c85
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
jmp 0x10030df9
mov edx, dword [esp + 0x1c]
push 0x101
push edx
lea eax, [esp + 0x28]
push eax
call fcn.100302f0
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push str.CLSID_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 2
call dword [sym.imp.mfc90.dll_Ordinal_945]
push str.VersionIndependentProgID
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.1000b400
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 3
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 2
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push eax
push Ordinal_4
call esi
push str.CLSID
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.1000b400
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 2
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push Ordinal_4
call esi
push str.CurVer
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.1000b400
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 5
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push Ordinal_4
call esi
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push Ordinal_4
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1003dc2c
add esp, 0x128
ret
Function at 0x10032080
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0x1290]
add esi, 0xffffed54
push eax
lea ecx, [esp + 8]
call sub.mfc90.dll_Ordinal_321
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1000da80
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
add esp, 8
push ecx
mov ecx, esi
mov dword [esi + 0x148], 2
mov dword [esi + 0x14c], 0
call edx
pop esi
test eax, eax
jne 0x10032111
push str.port_failed_to_open
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 4]
test eax, eax
je 0x100320f3
mov ecx, dword [esp]
mov dword [eax + 4], ecx
cmp dword [esp + 0xc], 0
je 0x10032106
mov edx, dword [esp + 8]
push edx
push 0
call sub.mfc90.dll_Ordinal_1087
mov eax, 1
add esp, 0x10
ret 0x10
push str.port_opened
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 4]
test eax, eax
je 0x1003212a
mov ecx, dword [esp]
mov dword [eax + 4], ecx
cmp dword [esp + 0xc], 0
je 0x1003213d
mov edx, dword [esp + 8]
push edx
push 0
call sub.mfc90.dll_Ordinal_1087
xor eax, eax
add esp, 0x10
ret 0x10
Function at 0x100377f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100460c7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10059794]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 1
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push 0
mov ecx, esi
call sub.mfc90.dll_Ordinal_405
lea edi, [esi + 0x1e0]
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.CExportDialog.0
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x83
mov ecx, edi
mov byte [esp + 0x1c], 1
call dword [sym.imp.mfc90.dll_Ordinal_4431]
mov ecx, edi
call dword [sym.imp.mfc90.dll_Ordinal_910]
mov ecx, esi
mov edi, eax
call sub.mfc90.dll_Ordinal_3351
mov dword [eax + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x18
Function at 0x1003dc2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10059794]
jne 0x1003dc36
repz ret
jmp fcn.1003e3ef
Function at 0x401080
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1ce4
call fcn.00401420
mov ecx, dword [esp + 0x1ce8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push 9
push esi
push ecx
push 0x80000002
mov dword [esp + 0x38], esi
call ebp
cmp eax, esi
jne 0x40126d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea ecx, [esp + 0x44]
mov eax, esi
push edx
mov edx, dword [esp + 0x2c]
push ecx
inc esi
push eax
push edx
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x48], esi
call ebx
test eax, eax
jne 0x401260
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 9
lea ecx, [esp + 0x3c]
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x401260
xor edi, edi
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x44]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 0x100
push eax
inc edi
call ebx
test eax, eax
jne 0x40124c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push 9
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
jne 0x40110f
lea ecx, [esp + 0x24]
lea edx, [esp + 0x234]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push edx
push eax
push 0
push 0x406194
push ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x3c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40123c
lea edx, [esp + 0x234]
push edx
call fcn.004013f6
add esp, 4
test eax, eax
jbe 0x40123c
lea eax, [esp + 0x234]
lea ecx, [esp + 0xa34]
push eax
push ecx
call fcn.004013d1
lea edx, [esp + 0xa3c]
push edx
call fcn.00404516
lea eax, [esp + 0xa40]
push 0x406180
push eax
call fcn.00401390
lea ecx, [esp + 0xa48]
push 0x406174
push ecx
mov esi, eax
call fcn.00401390
add esp, 0x1c
test esi, esi
jne 0x4011fb
test eax, eax
je 0x40123c
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push 0x20006
push 0
push 0x406150
push eax
call ebp
test eax, eax
jne 0x40123c
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push 4
push ecx
push 4
push eax
push 0x406130
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40110f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
jmp 0x4010bf
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1ce4
ret
Function at 0x40214d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4064d8
cmp edx, dword [eax]
je 0x40216f
add eax, 8
inc ecx
cmp eax, 0x406568
jl 0x402160
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4064d8]
jne 0x40229d
mov eax, dword [0x406a38]
cmp eax, 1
je 0x402277
test eax, eax
jne 0x4021a0
cmp dword [0x4061a4], 1
je 0x402277
cmp edx, 0xfc
je 0x40229d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4021d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402ac0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40221a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405444
push edi
call fcn.004037c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402ac0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402ad0
lea eax, [ebp - 0xa0]
push 0x405424
push eax
call fcn.00402ad0
push dword [esi + 0x4064dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402ad0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040372e
add esp, 0x2c
pop edi
jmp 0x40229d
lea eax, [ebp + 8]
lea esi, [esi + 0x4064dc]
push 0
push eax
push dword [esi]
call fcn.00402430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b68
xor eax, eax
push ebp
push 0x402b61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ba4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404e9c
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 0x405058
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404efd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405074
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f6f
xor eax, eax
push ebp
push 0x404f68
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.00404cf4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f51
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405094
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 0x404f6f
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 0x405050
cmp byte [ebp - 0xd], 0
jne 0x404fb1
cmp byte [ebp - 0x12], 0
je 0x405050
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fca
dec ebx
cmp byte [ebx], 0x2e
je 0x404fd9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fc9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405050
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405006
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 0x405050
cmp byte [ebp - 0xd], 0
je 0x405050
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 0x405050
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 0x408870
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 0x4088a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039e8
jmp 0x4088b2
mov eax, ebx
mov edx, esi
call fcn.00403954
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4088bc
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 0x4088dd
mov al, byte [esp]
jmp 0x4088df
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413dcc
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 0x413dd2
ret

Function at 0x4161c4
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 0x416215
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4161fc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4161ec
jmp 0x416215
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 0x4161fd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4221ac
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 [0x462778], 0
sete dl
or al, dl
jne 0x4222ec
mov eax, dword [0x46277c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x462778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4222bb
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x462778]
call fcn.0040d5e8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4222b3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4222b3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4222b3
mov eax, dword [ebp - 0x14]
call fcn.0042a4ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4222b3
push ebp
call fcn.00422168
pop ecx
test al, al
jne 0x4222b3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42226f
mov eax, dword [ebp - 0x14]
call fcn.00428e38
dec eax
jle 0x4222b3
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.00402e54
cmp byte [ebp - 1], 0
je 0x4222b3
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4222b3
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46277c]
call fcn.004219b4
inc edi
dec esi
jne 0x422202
mov eax, dword [0x46277c]
cmp dword [eax + 8], 0
jle 0x4222d3
mov eax, dword [0x46277c]
call fcn.00421a44
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4222ec
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00421fd0
pop ecx
test al, al
jne 0x4222ec
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 0x427e44
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 0x427e75
je 0x427ecf
sub eax, 7
je 0x427e96
dec eax
je 0x427ec0
sub eax, 0x17
je 0x427f74
jmp 0x427fb2
add eax, 0xffffff00
sub eax, 9
jb 0x427f60
add eax, 0xffffff09
sub eax, 0xb
jb 0x427f28
jmp 0x427fb2
mov eax, ebx
call fcn.00439f98
mov edi, eax
test edi, edi
je 0x428012
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42801b
jmp 0x428012
test byte [ebx + 0x44], 0x20
jne 0x42801b
jmp 0x428012
mov edx, esi
mov eax, ebx
call fcn.00425444
cmp dword [esi + 0xc], 0xffffffff
jne 0x42801b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406a8c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00423f88
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00427d1c
test eax, eax
je 0x42801b
mov dword [esi + 0xc], 1
jmp 0x42801b
mov edx, esi
mov eax, ebx
call fcn.00427db0
test al, al
je 0x428012
cmp dword [esi + 0xc], 0
jne 0x42801b
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.0042a4ac
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x42801b
mov eax, ebx
call fcn.00424ae0
test al, al
jne 0x42801b
jmp 0x428012
mov eax, ebx
call fcn.0042a4ac
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x428012
cmp dword [0x4606b4], 0
je 0x428012
mov eax, dword [0x4606b4]
cmp ebx, dword [eax + 0x24]
jne 0x428012
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4606b4]
call fcn.00425378
jmp 0x428012
mov eax, dword [0x462740]
cmp byte [eax + 0x20], 0
je 0x428012
mov eax, dword [0x462740]
cmp dword [eax + 0x1c], 0
je 0x428012
mov eax, dword [esi]
mov edx, dword [0x462740]
cmp eax, dword [edx + 0x1c]
jne 0x428012
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.00439edc
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.00402e54
jmp 0x42801b
mov edx, esi
mov eax, ebx
call fcn.00425444
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4284dc
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 0x4284f8
cmp dword [esi + 4], 0
je 0x428525
test byte [ebx + 0x45], 1
jne 0x428517
mov eax, ebx
call fcn.00427414
test eax, eax
jne 0x428517
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x428635
mov edx, esi
mov eax, ebx
call fcn.00428154
jmp 0x428635
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 0x42862e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042a4ac
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.00425378
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004284dc
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.0042a4ac
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428635
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 0x4322bc
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.00403900
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43230b
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.00403b30
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439cb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4627d8
cmp dword [edi], 0
jne 0x439d30
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4627d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x460848
mov ecx, 2
call fcn.004027e8
mov edx, 0x439c8c
lea eax, [esi + 5]
call fcn.00439cac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00439cac
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x439d05
mov dword [0x4627d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x439e4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x439e9c]
test si, 4
je 0x439e60
or bl, 1
test si, 8
je 0x439e6a
or bl, 4
test si, 1
je 0x439e74
or bl, 8
test si, 2
je 0x439e7e
or bl, 0x10
test si, 0x10
je 0x439e88
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439e97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x439ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x439ed8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439eb9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439ec8
or bl, 4
test esi, 0x20000000
je 0x439ed3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret