joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4191d4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x420398
call fcn.00418f8c
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x419214
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419214
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41922c
cmp eax, 0x20b
je 0x419219
mov dword [ebp - 0x1c], edi
jmp 0x419240
cmp dword [ecx + 0x84], 0xe
jbe 0x419214
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41923a
cmp dword [ecx + 0x74], 0xe
jbe 0x419214
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x428bb0], 0xffffffff
or dword [0x428bb4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x428b2c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x428b28]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x428bac], eax
call fcn.0041955a
call fcn.004195fa
cmp dword [0x4286a0], edi
jne 0x4192a0
push fcn.004195fa
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004195e8
push 0x42805c
push 0x428058
call sub.MSVCR71.dll__initterm
push 0x41959e
call fcn.0041903c
mov eax, dword [0x428b24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x428b20]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x4192f4
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x428054
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x41931e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4193d8
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x41938d
cmp ax, di
je 0x419334
cmp dword [ebp - 0x20], edi
jne 0x41938d
mov ax, word [esi]
cmp ax, di
je 0x419349
cmp ax, 0x20
ja 0x419349
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x419334
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x419365
movzx eax, word [ebp - 0x54]
jmp 0x419368
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00409d3a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x419385
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4193d2
cmp ax, 0x22
jne 0x41939e
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41931e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00418fc7
ret
Function at 0x41a0f4
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x420918
call fcn.00418f8c
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x41a160
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x41a138
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x41a166
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x41a130
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x41a130
mov al, 1
jmp 0x41a132
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00418fc7
ret
Function at 0x41a268
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x41a28b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x41a28e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x41a2a1
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x41a2a8
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x428b90]
test eax, eax
mov ecx, dword [0x428b8c]
jne 0x41a2c2
test ecx, ecx
je 0x41a2d7
mov eax, ecx
mov dword [0x428b90], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x41a2d7
cmp edx, dword [ebp - 4]
jb 0x41a2d7
cmp edx, dword [ebp - 8]
jbe 0x41a3ab
mov eax, ecx
test ecx, ecx
jmp 0x41a2fb
test eax, eax
je 0x41a2f6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41a2f6
cmp ecx, dword [ebp - 4]
jb 0x41a2f6
cmp ecx, dword [ebp - 8]
jbe 0x41a3ab
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x428b90], eax
jne 0x41a2dd
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x41a446
cmp edi, 0x70000000
jb 0x41a32b
cmp edi, 0x80000000
ja 0x41a32b
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a446
cmp dword [ebp - 0x30], ebx
jne 0x41a34a
cmp dword [ebp - 0x34], ebx
jae 0x41a35d
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41a316
jmp 0x41a446
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x428b90], eax
je 0x41a446
mov ecx, dword [0x428b8c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x428b8c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x41a39d
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x41a44b
cmp esi, dword [ebp - 8]
ja 0x41a44b
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x41a44d
cmp esi, 0x70000000
jb 0x41a3ef
cmp esi, 0x80000000
ja 0x41a3ef
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a44b
cmp dword [ebp - 0x14], ebx
jne 0x41a43d
cmp dword [ebp - 0x18], ebx
jb 0x41a43d
mov ecx, esi
and ecx, 0xffff
je 0x41a421
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x428b90], eax
jne 0x41a379
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x41a3da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a473
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x420928
call fcn.00418f8c
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a4ce
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x41a4ca
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x41a4ca
cmp word [eax + 0x14], 0
jne 0x41a4bf
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x41a4d0
mov eax, ecx
jmp 0x41a4b9
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00418fc7
ret

Function at 0x41a4e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x428b98], edi
jne 0x41a50b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x428b98
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x41a512
mov eax, 0x10dd
jmp 0x41a556
push esi
mov esi, dword [0x428b8c]
mov dword [0x428b94], edi
mov dword [0x428ba8], edi
mov dword [0x428ba4], edi
mov dword [0x428b9c], edi
mov dword [0x428ba0], edi
jmp 0x41a54f
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x41a539
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x41a559
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x428b98], eax
je 0x41a56f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x428ba8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41a5ba
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x41a5ab
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x41a5ab
call fcn.0041a452
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x41a57e
mov dword [0x428ba8], ebx
call fcn.0041a241
mov esi, dword [0x428ba4]
cmp esi, ebx
je 0x41a5e7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x41a5cf
pop edi
pop esi
mov dword [0x428ba4], ebx
mov dword [0x428b98], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41a83a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x428b9c]
test eax, eax
jne 0x41a8aa
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x41a856
xor eax, eax
jmp 0x41a8a9
push esi
push 8
call fcn.00418f0e
mov esi, eax
test esi, esi
pop ecx
jne 0x41a86a
push 8
pop edi
jmp 0x41a885
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41a896
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x428ba0], 0
mov dword [0x428b9c], edi
mov eax, edi
jmp 0x41a8a8
mov eax, dword [0x428ba4]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x428ba4], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x41aaea
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x428b98], eax
je 0x41ab06
mov eax, 0x10dd
jmp 0x41abe2
mov eax, dword [0x428b9c]
test eax, eax
jne 0x41abe2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41ab23
push 6
pop eax
jmp 0x41abe1
cmp dword [edi], 0
push ebx
push esi
jne 0x41ab37
push 6
pop eax
mov dword [0x428b9c], eax
jmp 0x41abd9
push 0x18
call fcn.00418f0e
mov esi, eax
test esi, esi
pop ecx
jne 0x41ab4a
push 8
pop edi
jmp 0x41abc3
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041a4d6
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41abb8
cmp ecx, 0x17
ja 0x41abb8
cmp dword [edi + 0x1c], eax
jne 0x41abb8
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41ab8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41abc3
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x428ba8]
mov dword [esi], eax
mov dword [0x428ba8], esi
xor eax, eax
jmp 0x41abdf
cmp dword [0x428b94], edx
push 9
pop edi
jne 0x41abc9
mov dword [0x428b9c], edi
test esi, esi
je 0x41abd4
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x428ba0], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x4029f4
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 0x402a8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a6c
xor eax, eax
push ebp
push 0x402a65
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 0x402aa8
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 0x402a6c
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 0x4042b8
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 0x404454
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404368
xor eax, eax
push ebp
push 0x404361
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40434a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404474
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 0x404368
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 0x404449
cmp byte [ebp - 0xd], 0
jne 0x4043aa
cmp byte [ebp - 0x12], 0
je 0x404449
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4043c3
dec ebx
cmp byte [ebx], 0x2e
je 0x4043d2
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4043c2
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404449
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4043ff
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 0x404449
cmp byte [ebp - 0xd], 0
je 0x404449
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 0x404449
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 0x408428
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 0x408461
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036bc
jmp 0x40846a
mov eax, ebx
mov edx, esi
call fcn.00403670
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408474
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 0x408495
mov al, byte [esp]
jmp 0x408497
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41280c
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 0x412812
ret

Function at 0x414c44
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 0x414c95
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x414c7c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x414c6c
jmp 0x414c95
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
jne 0x414c7d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e840
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 + 0x114], 0
je 0x41e85c
cmp dword [esi + 4], 0
je 0x41e883
mov eax, ebx
call fcn.0041da74
test eax, eax
jne 0x41e875
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41e993
mov edx, esi
mov eax, ebx
call fcn.0041e4e4
jmp 0x41e993
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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 0x41e98c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041fe40
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.0041c97c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041e840
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 + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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.0041fe40
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e993
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 0x42196c
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.004035d8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4219cd
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x4219cd
cmp byte [ebp - 0x102], 0
je 0x4219cd
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403804
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422d5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x422ddd
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422d8e
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422da0
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x422dac
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00422be8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422dd1
push ebp
mov eax, dword [ebp - 4]
call fcn.00422ccc
pop ecx
mov ebx, eax
cmp bl, 2
je 0x422dac
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424c74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44a6e4
cmp dword [edi], 0
jne 0x424cf0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44a6e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44973c
mov ecx, 2
call fcn.004026d4
mov edx, 0x424c4c
lea eax, [esi + 5]
call fcn.00424c6c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424c6c
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 0x424cc5
mov dword [0x44a6e0], 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 0x424e14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x424e64]
test si, 4
je 0x424e28
or bl, 1
test si, 8
je 0x424e32
or bl, 4
test si, 1
je 0x424e3c
or bl, 8
test si, 2
je 0x424e46
or bl, 0x10
test si, 0x10
je 0x424e50
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424e5f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret