joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7189d4]
xor edx, edx
cmp eax, edx
jne 0x50a596
xor eax, eax
mov byte [eax + 0x7188d4], al
inc eax
cmp eax, 0x100
jl 0x50a57e
mov dword [0x7189d4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7188d4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x50a627
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x50a5fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x50a5c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x50a6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x50a6f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x50a6da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x511080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54320e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005119a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x69d0ec
call fcn.0053178c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x511113
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0053178c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x51110c
push 0
mov ecx, eax
call fcn.005081b0
mov dword [esi + 0xc], eax
jmp 0x511115
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x511115
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x533e2e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x533e66
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00531ea6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00531e7e
jmp 0x533e72
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5355f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x535633
call fcn.0053ba28
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x535633
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53562a
xor eax, eax
jmp 0x53563b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00535641
pop edi
pop esi
pop ebx
ret 4

Function at 0x53bf58
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53bf86
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53bfa4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053bebe
jmp 0x53bfa4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53bfa4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053bebe
test edi, edi
mov eax, edi
jne 0x53bf8e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4029e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403fa4
test esi, esi
jne 0x402a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404094
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030cc
Capabilities:
Query or enumerate registry value

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

Function at 0x403e28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a7048], 0
je 0x403e89
cmp word [0x4a721c], 0xd7b2
jne 0x403e51
cmp dword [0x4a7224], 0
jbe 0x403e51
mov eax, 0x4a7218
call dword [0x4a7234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x403eb0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a1030], 0
jne 0x403ea5
push 0
push 0x4a1064
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d5c
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 0x405dc2
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.00404214
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dc9
lea eax, [ebp - 0x10]
call fcn.00403fa4
ret

Function at 0x408784
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4087b5
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4087bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4087ed
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4088d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404464
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40b73c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40b784
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404094
jmp 0x40b78f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00403ff8
mov esp, ebp
pop ebp
ret 4

Function at 0x40b798
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b7c6
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40b7cc
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40bf54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040bd9c
mov eax, dword [0x4a64f0]
cmp byte [eax], 0
je 0x40bfe7
mov eax, dword [0x4a6300]
call fcn.00402afc
call fcn.00402824
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00408b60
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40c02c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c01d
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x4a62a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a7664]
call fcn.00405270
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40c9f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40cad2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040403c
lea eax, [ebp - 0xc]
call fcn.004044b4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404464
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40cabc
mov eax, dword [ebp - 0x10]
call fcn.004026bc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40cab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404464
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca9f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40cae0
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca9f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cabc
mov eax, dword [ebp - 0x18]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cad9
lea eax, [ebp - 0xc]
call fcn.00403fa4
ret
Function at 0x40d1ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d256
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404214
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408440
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d25d
lea eax, [ebp - 0x14]
call fcn.00403fa4
ret

Function at 0x4182ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x418322
push ebp
call fcn.0041827c
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x418348
push ebp
call fcn.0041827c
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00417e20
mov esp, ebp
pop ebp
ret 4
Function at 0x41d4b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x4a7884], 0
jne 0x41d565
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x4a7880]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4a13ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41d474
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041d494
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0041d494
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x4a7884]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4a7884], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41d51f
mov eax, dword [ebp - 8]
mov dword [0x4a7880], eax
mov eax, dword [0x4a7884]
mov dword [ebp - 4], eax
mov eax, dword [0x4a7884]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x4a7884], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4217cc
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 0x42181d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421804
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4217f4
jmp 0x42181d
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 0x421805
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f194
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
push eax
push 0x42f0c8
call sub.user32.dll_EnumWindows
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42f395
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042ec90
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jbe 0x42f338
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0042e800
cmp dword [ebp - 0xc], 0
je 0x42f37f
push 0
push 9
mov eax, dword [ebp - 0xc]
call fcn.00404464
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 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 0x42f39c
lea eax, [ebp - 0xc]
call fcn.00403fa4
ret
Function at 0x4325bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
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 [0x4a7b54], 0
je 0x432717
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4a648c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x432717
mov eax, dword [0x4a7b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4a7b54]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4326e6
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4a7b54]
call fcn.0041521c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4326da
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4326da
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4326da
mov eax, dword [ebp - 0x14]
call fcn.0043dae4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4326da
push ebp
call fcn.00432570
pop ecx
test al, al
jne 0x4326da
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x432696
mov eax, dword [ebp - 0x14]
call fcn.0043bee4
dec eax
jle 0x4326da
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403450
cmp byte [ebp - 1], 0
je 0x4326da
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4326da
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a7b58]
call fcn.00431a38
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x432628
mov eax, dword [0x4a7b58]
cmp dword [eax + 8], 0
jle 0x4326fe
mov eax, dword [0x4a7b58]
call fcn.00431ae4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x432717
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004323ac
pop ecx
test al, al
jne 0x432717
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436dd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x10
je 0x436e27
mov eax, dword [ebp - 0x14]
call fcn.00450edc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x436e27
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x250], 0
je 0x436e27
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
jne 0x436fb6
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x436e70
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x108
ja 0x436e70
mov eax, dword [ebp - 0x14]
call fcn.00450edc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x436fab
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xf0]
test al, al
jne 0x436fb6
jmp 0x436fab
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x436f86
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20a
ja 0x436f86
mov eax, dword [ebp - 0x14]
test byte [eax + 0x50], 0x80
jne 0x436eb3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x436ead
sub eax, 3
je 0x436ead
sub eax, 3
jne 0x436eb3
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x200
je 0x436eca
dec eax
je 0x436ee1
dec eax
je 0x436f08
dec eax
je 0x436ee1
jmp 0x436f15
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x4a648c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.0045cabc
jmp 0x436fab
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x5d], 1
jne 0x436efb
mov eax, dword [ebp - 0x14]
mov si, 0xffed
call fcn.00403450
jmp 0x436fb6
mov eax, dword [ebp - 0x14]
or word [eax + 0x54], 1
jmp 0x436fab
mov eax, dword [ebp - 0x14]
and word [eax + 0x54], 0xfffe
jmp 0x436fab
mov eax, dword [0x4a7b10]
cmp byte [eax + 0x20], 0
je 0x436fab
mov eax, dword [0x4a7b10]
cmp dword [eax + 0x1c], 0
je 0x436fab
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x4a7b10]
cmp eax, dword [edx + 0x1c]
jne 0x436fab
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
call fcn.00450df8
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffc9
call fcn.00403450
jmp 0x436fb6
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x436fab
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.00434eb8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret