joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40339d
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x412fb2
call fcn.00412810
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0040236b
xor esi, esi
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
jg 0x4033d8
push esi
lea ecx, [ebp - 0x24]
call fcn.004013bd
mov ax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x24]
je 0x4033ec
cmp ax, 0x2f
jne 0x4033f5
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 0x10], ebx
mov esi, ebx
jmp 0x40341b
mov ax, word [edi + esi*2]
cmp ax, 0x2f
je 0x40340e
cmp ax, 0x5c
je 0x40340e
dec esi
test esi, esi
jg 0x4033f9
test esi, esi
je 0x4034b5
and word [edi + esi*2], 0
push edi
call fcn.00401b80
test eax, eax
pop ecx
je 0x40340a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40344f
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040303f
test eax, eax
pop ecx
pop ecx
jne 0x4034e9
push edi
call fcn.00401b80
test eax, eax
pop ecx
je 0x4034b2
cmp esi, ebx
jge 0x4034d7
mov eax, dword [ebp - 0x10]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.msvcrt.dll_memcpy
xor edx, edx
add esp, 0xc
cmp word [ebx], dx
je 0x403480
inc esi
lea eax, [edi + esi*2]
jmp 0x403497
mov cx, word [eax]
cmp cx, 0x5c
je 0x40349c
cmp cx, 0x2f
je 0x40349c
inc esi
inc eax
inc eax
cmp word [eax], dx
jne 0x403485
push edi
mov word [edi + esi*2], dx
call fcn.00401b80
test eax, eax
pop ecx
je 0x4034b2
cmp esi, dword [ebp - 0x10]
jl 0x40345e
jmp 0x4034d7
push edi
jmp 0x4034dd
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x4034dc
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4034dc
cmp ax, 0x7a
ja 0x4034dc
cmp word [ecx + 2], 0x3a
jne 0x4034dc
xor esi, esi
inc esi
jmp 0x4034eb
push ecx
push 0xc
push 1
call fcn.0040783d
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403c9d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x41a010], esi
je 0x403cc7
mov eax, 0x41a010
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 8]
je 0x403cc7
add eax, 0x10
inc edi
cmp dword [eax], esi
mov ecx, eax
jne 0x403cb6
shl edi, 4
mov eax, dword [edi + 0x41a01c]
cmp eax, esi
jne 0x403d88
cmp dword [0x41a248], 0xffffffff
jne 0x403cec
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x41a248], eax
cmp word [0x41a244], 0xffff
jne 0x403d03
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x41a244], ax
mov ax, word [0x41a240]
cmp ax, 0xffff
jne 0x403d1a
call fcn.00401d96
mov word [0x41a240], ax
mov ecx, dword [edi + 0x41a018]
cmp ecx, esi
push ebx
mov ebx, dword [edi + 0x41a014]
mov dword [ebp - 4], esi
je 0x403d54
mov edx, 0x419
cmp dword [0x41a248], edx
je 0x403d49
cmp word [0x41a244], dx
je 0x403d49
cmp ax, dx
jne 0x403d54
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [esi + 1]
push ecx
push eax
push esi
push ebx
push 0
push dword [ebp - 4]
mov dword [edi + 0x41a01c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x41a01c]
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
mov eax, 0x413130
call fcn.00412810
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.004015d5
xor esi, esi
inc esi
cmp dword [ebp - 0x14], 2
mov dword [ebp - 4], esi
jg 0x40430a
push 2
lea ecx, [ebp - 0x1c]
call fcn.004013bd
mov edi, dword [ebp - 0x1c]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call esi
xor ecx, ecx
cmp eax, ebx
mov word [edi], bx
mov dword [ebp - 0x18], ecx
jbe 0x40433e
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040212f
push eax
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.004023a4
mov ecx, dword [ebp - 0x18]
lea edi, [ecx + 0xf]
lea esi, [ecx + ecx]
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040212f
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004023a4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40437c
inc ebx
cmp ebx, 0xfff
jl 0x404344
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004014bb
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4043ae
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x413142
call fcn.00412810
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41a648], esi
jle 0x404412
mov eax, dword [0x41a64c]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004014bb
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00403e0b
mov eax, dword [0x41a64c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
pop ecx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41a648]
pop ecx
jl 0x4043c6
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40d76a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413b77
call fcn.00412810
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x416508
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41652c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f3dc
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f3dc
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3dc
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3dc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40e526
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e54c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e54c
xor al, al
jmp 0x40e56c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412990
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40fd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040fd47
add esp, 0x1c
leave
ret
Function at 0x412a92
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4168e0
call fcn.00412a40
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x412ae6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x412ae6
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x412afe
cmp ecx, 0x20b
je 0x412aeb
mov dword [ebp - 0x1c], ebx
jmp 0x412b15
cmp dword [eax + 0x400084], 0xe
jbe 0x412ae6
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x412b0f
cmp dword [eax + 0x400074], 0xe
jbe 0x412ae6
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x41aba4], edi
mov dword [0x41aba8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41a78c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41a788]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41aba0], eax
call fcn.00412d68
cmp dword [0x41a5b0], ebx
jne 0x412b72
push fcn.00412d68
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00412d56
push 0x415344
push 0x415340
call sub.msvcrt.dll__initterm
mov eax, dword [0x41a784]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41a780]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41533c
push 0x415300
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x412bfd
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x412bdd
cmp cl, 0x22
jne 0x412bce
cmp byte [eax], 0x22
jne 0x412be6
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x412bf1
cmp cl, 0x20
jbe 0x412be2
test byte [ebp - 0x54], 1
je 0x412c08
movzx ecx, word [ebp - 0x50]
jmp 0x412c0b
cmp byte [eax], 0x20
jbe 0x412be6
inc eax
mov dword [ebp - 0x20], eax
jmp 0x412bfd
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.004053c8
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x412c29
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x412c65
mov eax, esi
jmp 0x412c79
call fcn.00412a7b
ret
Function at 0x4029ec
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.00404380
test esi, esi
jne 0x402a22
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.00404470
jmp 0x402a40
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402900
mov edi, eax
test esi, esi
je 0x402a40
cmp dword [ebx], 0
je 0x402a40
dec esi
jmp 0x402a29
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40348c
Capabilities:
Query or enumerate registry value

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

Function at 0x404204
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x404265
cmp word [0x45421c], 0xd7b2
jne 0x40422d
cmp dword [0x454224], 0
jbe 0x40422d
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x452054
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 0x40428c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45201c], 0
jne 0x404281
push 0
push 0x452074
push 0x452054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409abc
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 0x409af5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404470
jmp 0x409afe
mov eax, ebx
mov edx, esi
call fcn.004043d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a1b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a028
mov eax, dword [0x45374c]
cmp byte [eax], 0
je 0x40a218
mov eax, dword [0x453590]
call fcn.00402da8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004088e4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a260
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a24e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45354c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454714]
call fcn.00405a9c
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 0x40ad44
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 0x40ada8
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.004045e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004085dc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40adaf
lea eax, [ebp - 0xc]
call fcn.00404380
ret
Function at 0x41c94c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454a20
cmp dword [edi], 0
jne 0x41c9c8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4524f4
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c924
lea eax, [esi + 5]
call fcn.0041c944
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c944
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 0x41c99d
mov dword [0x454a1c], 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 0x41de9c
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 0x41dea2
ret

Function at 0x420400
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 0x420451
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420438
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420428
jmp 0x420451
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 0x420439
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429e54
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 0x429da0
call sub.user32.dll_EnumWindows
ret

Function at 0x429f78
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 0x429ff5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004299c4
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 0x429f9d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042961c
cmp dword [ebp - 4], 0
je 0x429fdf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404830
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 0x429ffc
lea eax, [ebp - 4]
call fcn.00404380
ret

Function at 0x42ccd4
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 [0x454ba8], 0
je 0x42ce23
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4536f0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42ce23
mov eax, dword [0x454bac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x454ba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42cdf2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x454ba8]
call fcn.00413fc8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42cdea
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42cdea
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42cdea
mov eax, dword [ebp - 0x14]
call fcn.00435704
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42cdea
push ebp
call fcn.0042cc90
pop ecx
test al, al
jne 0x42cdea
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42cda6
mov eax, dword [ebp - 0x14]
call fcn.00434298
dec eax
jle 0x42cdea
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.00403810
cmp byte [ebp - 1], 0
je 0x42cdea
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42cdea
mov edx, dword [ebp - 0x14]
mov eax, dword [0x454bac]
call fcn.0042c458
inc edi
dec ebx
jne 0x42cd39
mov eax, dword [0x454bac]
cmp dword [eax + 8], 0
jle 0x42ce0a
mov eax, dword [0x454bac]
call fcn.0042c4e8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ce23
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042caf8
pop ecx
test al, al
jne 0x42ce23
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 0x4303d0
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 0x43041c
mov eax, esi
call fcn.00445c88
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43041c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43041c
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 0x430560
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43045c
cmp eax, 0x108
ja 0x43045c
mov eax, esi
call fcn.00445c88
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430557
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x430560
jmp 0x430557
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43053e
cmp eax, 0x20a
ja 0x43053e
test byte [esi + 0x50], 0x80
jne 0x43048e
sub eax, 0x203
je 0x43048b
sub eax, 3
je 0x43048b
sub eax, 3
jne 0x43048e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4304a2
dec eax
je 0x4304b7
dec eax
je 0x4304d7
dec eax
je 0x4304b7
jmp 0x4304de
mov ecx, ebx
mov eax, dword [0x4536f0]
mov eax, dword [eax]
mov edx, esi
call fcn.0044f2bc
jmp 0x430557
cmp byte [esi + 0x5d], 1
jne 0x4304cd
mov eax, esi
mov si, 0xffed
call fcn.00403810
jmp 0x430560
or word [esi + 0x54], 1
jmp 0x430557
and word [esi + 0x54], 0xfffe
jmp 0x430557
mov eax, dword [0x454b64]
cmp byte [eax + 0x20], 0
je 0x430557
mov eax, dword [0x454b64]
cmp dword [eax + 0x1c], 0
je 0x430557
mov eax, dword [ebx]
mov edx, dword [0x454b64]
cmp eax, dword [edx + 0x1c]
jne 0x430557
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.00445bcc
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.00403810
jmp 0x430560
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x430557
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042ed0c
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