joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017c5
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x40ab6e
call fcn.00409c2a
call fcn.00401509
lea eax, [ebp - 0x1c]
push eax
mov edi, str.USTSPCODiskOptimizer
call fcn.00401bae
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov edi, str.USTSPCODefragSrv.exe
call fcn.00401bae
mov byte [ebp - 4], 1
call fcn.0040110b
test al, al
je 0x401811
push str.USTSPCODefragSrv64.exe
lea eax, [ebp - 0x10]
push eax
call fcn.00401c56
mov eax, dword [0x40f984]
add eax, 0xfffffff0
call fcn.004020e5
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x40cbc8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401de5
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.004021cb
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402447
mov esi, dword [ebp - 0x14]
push 0
push 0
push str._Remove
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
call fcn.00402447
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402447
xor eax, eax
inc eax
call fcn.00409c93
ret

Function at 0x4018c5
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x40e13c]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
mov esi, dword [ebp + 0x7bc]
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x820
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00403870
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40193f
lea eax, [ebp - 0x80]
push eax
lea edi, [ebp - 0x78]
call fcn.00401bae
lea eax, [ebp - 0x80]
call fcn.00401c06
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00402447
lea eax, [ebp - 0x7c]
push eax
mov edi, esi
call fcn.00401bae
lea eax, [ebp - 0x7c]
call fcn.00401cb5
lea eax, [ebp - 0x7c]
call fcn.00401cde
mov eax, dword [ebp - 0x7c]
cmp dword [eax - 0xc], 0
je 0x4019a5
push str.killservice
lea esi, [ebp - 0x7c]
call fcn.00401c8a
test eax, eax
jl 0x401979
call fcn.00401509
push str.installservice
lea esi, [ebp - 0x7c]
call fcn.00401c8a
test eax, eax
jl 0x40198f
call fcn.0040166c
push str.removeservice
lea esi, [ebp - 0x7c]
call fcn.00401c8a
test eax, eax
jl 0x4019a5
call fcn.004017c5
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
call fcn.00402447
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00403029
add ebp, 0x7ac
leave
ret 0x10
Function at 0x4023d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023e7
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40241c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402418
cmp edi, eax
jae 0x40241c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40240a
cmp edi, eax
jb 0x402420
xor eax, eax
jmp 0x402429
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4024cb
Capabilities:
Link many functions at runtime

Disassembly:
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push edi
mov dword [esi], vtable.CEnumProcess.0
mov byte [esi + 4], bl
push str.Kernel32
mov byte [esi + 5], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x402595
push 0x40cc78
push eax
mov dword [esi + 0x44], 0x22c
mov dword [esi + 0x270], 0x428
call edi
push str.Process32First
push dword [esi + 0x40]
mov dword [esi + 0x698], eax
call edi
push str.Process32Next
push dword [esi + 0x40]
mov dword [esi + 0x69c], eax
call edi
push str.Module32First
push dword [esi + 0x40]
mov dword [esi + 0x6a0], eax
call edi
push str.Module32Next
push dword [esi + 0x40]
mov dword [esi + 0x6a4], eax
call edi
mov dword [esi + 0x6a8], eax
cmp dword [esi + 0x698], ebx
je 0x402595
cmp dword [esi + 0x69c], ebx
je 0x402595
cmp dword [esi + 0x6a0], ebx
je 0x402595
cmp dword [esi + 0x6a4], ebx
je 0x402595
cmp eax, ebx
je 0x402595
mov byte [esi + 5], 1
push str.PSAPI
call ebp
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x4025e7
push str.EnumProcesses
push eax
mov dword [esi + 0x10], 0x100
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call edi
push str.EnumProcessModules
push dword [esi + 0xc]
mov dword [esi + 0x2c], eax
call edi
push str.GetModuleFileNameEx
push dword [esi + 0xc]
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
cmp dword [esi + 0x2c], ebx
je 0x4025e7
cmp dword [esi + 0x30], ebx
je 0x4025e7
cmp eax, ebx
je 0x4025e7
mov byte [esi + 4], 1
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.0040268e
push 2
pop ecx
mov edx, eax
pop edi
or edx, ecx
pop ebp
pop ebx
cmp eax, edx
jne 0x402602
mov dword [esi + 8], ecx
xor ecx, ecx
inc ecx
mov edx, eax
or edx, ecx
cmp eax, edx
jne 0x402610
mov dword [esi + 8], ecx
mov eax, esi
ret
Function at 0x401a80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40467d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.004037f6
mov dword [ebp - 0x14], eax
mov dword [eax], 0x401190
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x402150
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x401b01
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004037e8
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x4021b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x407008]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
lea eax, [esp + 0x20]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x34]
mov dword [edi + 0x1c], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [edi + 0x18]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0
push 0x410
mov dword [edi], eax
mov dword [edi + 4], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x10], eax
pop edi
pop esi
xor ecx, esp
call fcn.004037e8
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40483d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x407008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 0x401d30
cmovae edx, dword [ebp + 8]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403600
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x401d30
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.__KILLING_srcds__
call fcn.00401b10
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esi + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402fad
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402fa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402fa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403a77
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x404157
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404196
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404196
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404196
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404196
cmp dword [ecx + 0x74], 0xe
jbe 0x404196
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4029c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029ef
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d54
jmp 0x402a0d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004028e8
mov edi, eax
test ebx, ebx
je 0x402a0d
cmp dword [esi], 0
je 0x402a0d
dec ebx
jmp 0x4029f6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402dd8
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 0x402e70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e50
xor eax, eax
push ebp
push 0x402e49
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 0x402e8c
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 0x402e50
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 0x403c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402718
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x466045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403be8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405278
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 0x405434
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052d9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405450
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40534b
xor eax, eax
push ebp
push 0x405344
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.004050d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40532d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405470
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 0x40534b
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 0x40542c
cmp byte [ebp - 0xd], 0
jne 0x40538d
cmp byte [ebp - 0x12], 0
je 0x40542c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053a6
dec ebx
cmp byte [ebx], 0x2e
je 0x4053b5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053a5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40542c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053e2
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 0x40542c
cmp byte [ebp - 0xd], 0
je 0x40542c
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 0x40542c
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 0x409fb4
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 0x409fed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d54
jmp 0x409ff6
mov eax, ebx
mov edx, esi
call fcn.00403cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a000
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 0x40a021
mov al, byte [esp]
jmp 0x40a023
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415b40
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 0x415b46
ret

Function at 0x418024
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 0x418075
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41805c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41804c
jmp 0x418075
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 0x41805d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429360
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 [0x46677c], 0
sete dl
or al, dl
jne 0x4294a0
mov eax, dword [0x466780]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46677c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42946f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x46677c]
call fcn.0040ef14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x429467
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x429467
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x429467
mov eax, dword [ebp - 0x14]
call fcn.00431670
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x429467
push ebp
call fcn.0042931c
pop ecx
test al, al
jne 0x429467
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x429423
mov eax, dword [ebp - 0x14]
call fcn.0042fffc
dec eax
jle 0x429467
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.0040313c
cmp byte [ebp - 1], 0
je 0x429467
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x429467
mov edx, dword [ebp - 0x14]
mov eax, dword [0x466780]
call fcn.00428b68
inc edi
dec esi
jne 0x4293b6
mov eax, dword [0x466780]
cmp dword [eax + 8], 0
jle 0x429487
mov eax, dword [0x466780]
call fcn.00428bf8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4294a0
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00429184
pop ecx
test al, al
jne 0x4294a0
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 0x42f008
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 0x42f039
je 0x42f093
sub eax, 7
je 0x42f05a
dec eax
je 0x42f084
sub eax, 0x17
je 0x42f138
jmp 0x42f176
add eax, 0xffffff00
sub eax, 9
jb 0x42f124
add eax, 0xffffff09
sub eax, 0xb
jb 0x42f0ec
jmp 0x42f176
mov eax, ebx
call fcn.004411a0
mov edi, eax
test edi, edi
je 0x42f1d6
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42f1df
jmp 0x42f1d6
test byte [ebx + 0x44], 0x20
jne 0x42f1df
jmp 0x42f1d6
mov edx, esi
mov eax, ebx
call fcn.0042c608
cmp dword [esi + 0xc], 0xffffffff
jne 0x42f1df
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406fe4
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042b13c
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042eee0
test eax, eax
je 0x42f1df
mov dword [esi + 0xc], 1
jmp 0x42f1df
mov edx, esi
mov eax, ebx
call fcn.0042ef74
test al, al
je 0x42f1d6
cmp dword [esi + 0xc], 0
jne 0x42f1df
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.00431670
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x42f1df
mov eax, ebx
call fcn.0042bca4
test al, al
jne 0x42f1df
jmp 0x42f1d6
mov eax, ebx
call fcn.00431670
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42f1d6
cmp dword [0x4647dc], 0
je 0x42f1d6
mov eax, dword [0x4647dc]
cmp ebx, dword [eax + 0x24]
jne 0x42f1d6
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4647dc]
call fcn.0042c53c
jmp 0x42f1d6
mov eax, dword [0x466744]
cmp byte [eax + 0x20], 0
je 0x42f1d6
mov eax, dword [0x466744]
cmp dword [eax + 0x1c], 0
je 0x42f1d6
mov eax, dword [esi]
mov edx, dword [0x466744]
cmp eax, dword [edx + 0x1c]
jne 0x42f1d6
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.004410e4
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.0040313c
jmp 0x42f1df
mov edx, esi
mov eax, ebx
call fcn.0042c608
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f6a0
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 0x42f6bc
cmp dword [esi + 4], 0
je 0x42f6e9
test byte [ebx + 0x45], 1
jne 0x42f6db
mov eax, ebx
call fcn.0042e5d8
test eax, eax
jne 0x42f6db
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42f7f9
mov edx, esi
mov eax, ebx
call fcn.0042f318
jmp 0x42f7f9
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 0x42f7f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00431670
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.0042c53c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042f6a0
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.00431670
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f7f9
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 0x4394c4
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.00403c6c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x439513
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.00403e9c
pop ebx
mov esp, ebp
pop ebp
ret