joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526ed8
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x526ef4
call fcn.00527b58
jmp 0x526f63
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x526f10
call fcn.00527b58
jmp 0x526f63
cmp dword [0x58054c], 1
je 0x526f61
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0052b898
pop ecx
cmp al, 0x41
jl 0x526f61
cmp al, 0x5a
jg 0x526f61
cmp byte [ebp - 0x107], 0x3a
jne 0x526f61
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x526f61
call fcn.00527b58
jmp 0x526f63
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x526f68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x526f97
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x526fa1
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x526fac
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x527012
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x527012
call fcn.00527b58
jmp 0x52704d
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x527022
call fcn.00527b58
jmp 0x52704d
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x527048
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x527046
cmp ebx, 1
je 0x527046
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x527033
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52b9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x52ba12
call fcn.0052b960
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00525720
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00525720
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x52ba90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x574d44], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x52bb6a
cmp dword [0x574d40], 0
jne 0x52bb6a
cmp dword [0x574f4c], 0
je 0x52bb24
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0052b840
add esp, 8
mov ebx, eax
test eax, eax
jne 0x52bb0a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0052b840
add esp, 8
mov ebx, eax
test eax, eax
jne 0x52bb0a
lea ebx, [ebp - 0x84]
jmp 0x52bb0b
inc ebx
call fcn.0052ba4c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x52bba5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x574d48
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00525720
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x574d4b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x52bba5
cmp dword [0x574d40], 0
je 0x52bb84
cmp dword [0x574d40], 0xffffffff
je 0x52bba5
push esi
call dword [0x574d40]
pop ecx
mov eax, dword [0x574d44]
test eax, eax
je 0x52bba5
cmp dword [0x574d44], 0xffffffff
je 0x52bba5
cmp byte [eax], 0
je 0x52bba5
push esi
push eax
call fcn.0052b9b0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x532ffc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x53302a
mov eax, ebx
call fcn.00533aa0
cmp dword [ebx + 0x3c], 0
je 0x533023
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x53309b
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x53308d
cmp dword [ebx + 8], 0
je 0x53304c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x53305e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x53308d
cmp dword [ebx + 8], 0
je 0x53303f
cmp eax, 3
je 0x533071
dec eax
jne 0x53303f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x53303f
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x53303f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x5330b9
cmp dword [ebx + 0x10], 0xcc
je 0x5330b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005330c4
pop ebx
ret
Function at 0x402904
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402941
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402961
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a8c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b28
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.0040480c
test esi, esi
jne 0x402b5e
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.004048fc
jmp 0x402b7c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029dc
mov edi, eax
test esi, esi
je 0x402b7c
cmp dword [ebx], 0
je 0x402b7c
dec esi
jmp 0x402b65
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40324c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403268
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x474008], 0x8088405
inc edx
mov dword [ebx + 0x474008], edx
fld qword [ebx + 0x47406c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x40393c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x474024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039b4
xor eax, eax
push ebp
push 0x4039ad
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 0x4039f0
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 0x4039b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x474024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x474024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404690
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x477044], 0
je 0x4046f1
cmp word [0x477218], 0xd7b2
jne 0x4046b9
cmp dword [0x477220], 0
jbe 0x4046b9
mov eax, 0x477214
call dword [0x477230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47409c
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 0x404718
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474034], 0
jne 0x40470d
push 0
push 0x474094
push 0x47409c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406830
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 0x406896
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.00404a8c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033a4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406880
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40689d
lea eax, [ebp - 0x10]
call fcn.0040480c
ret

Function at 0x409334
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cdc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40934d
test al, 0x10
jne 0x409351
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c520
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 0x40c559
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048fc
jmp 0x40c562
mov eax, ebx
mov edx, esi
call fcn.00404860
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd60
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cbd8
mov eax, dword [0x476494]
cmp byte [eax], 0
je 0x40cddc
mov eax, dword [0x476228]
call fcn.00402fbc
call fcn.00402884
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.004096a4
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 0x40ce24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce12
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4761c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x477660]
call fcn.00405d44
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 0x40d678
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 0x40d74e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004048a4
lea eax, [ebp - 8]
call fcn.00404d2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d738
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d731
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.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d71b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d760
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d71b
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 0x40d738
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d755
lea eax, [ebp - 8]
call fcn.0040480c
ret

Function at 0x40dbcc
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 0x40dc30
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.00404a8c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f70
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc37
lea eax, [ebp - 0xc]
call fcn.0040480c
ret

Function at 0x41d1dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x477884
cmp dword [edi], 0
jne 0x41d258
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x477880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47441c
mov ecx, 2
call fcn.0040299c
mov edx, 0x41d1b4
lea eax, [esi + 5]
call fcn.0041d1d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d1d4
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 0x41d22d
mov dword [0x477880], 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 0x41d9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d9f8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x476604]
mov dl, 1
mov eax, dword [0x41d558]
call fcn.0040cf20
call fcn.00404248
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d660
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ef80
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 0x41ef86
ret

Function at 0x4213c8
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 0x421419
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421400
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4213f0
jmp 0x421419
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 0x421401
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429f94
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 0x429ee0
call sub.user32.dll_EnumWindows
ret

Function at 0x42a0b4
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 0x42a131
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429b14
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42a0d9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429714
cmp dword [ebp - 4], 0
je 0x42a11b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404cdc
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 0x42a138
lea eax, [ebp - 4]
call fcn.0040480c
ret

Function at 0x42cdd4
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 [0x477b4c], 0
je 0x42cf23
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47641c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42cf23
mov eax, dword [0x477b50]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x477b4c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42cef2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x477b4c]
call fcn.00415b38
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ceea
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42ceea
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42ceea
mov eax, dword [ebp - 0x14]
call fcn.00435950
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ceea
push ebp
call fcn.0042cd90
pop ecx
test al, al
jne 0x42ceea
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42cea6
mov eax, dword [ebp - 0x14]
call fcn.00434480
dec eax
jle 0x42ceea
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.00403cd0
cmp byte [ebp - 1], 0
je 0x42ceea
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ceea
mov edx, dword [ebp - 0x14]
mov eax, dword [0x477b50]
call fcn.0042c55c
inc edi
dec ebx
jne 0x42ce39
mov eax, dword [0x477b50]
cmp dword [eax + 8], 0
jle 0x42cf0a
mov eax, dword [0x477b50]
call fcn.0042c5ec
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42cf23
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042cbf8
pop ecx
test al, al
jne 0x42cf23
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 0x4304bc
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 0x430508
mov eax, esi
call fcn.00445904
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430508
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x430508
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 0x430647
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x430548
cmp eax, 0x108
ja 0x430548
mov eax, esi
call fcn.00445904
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43063e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x430647
jmp 0x43063e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x430627
cmp eax, 0x20a
ja 0x430627
test byte [esi + 0x50], 0x80
jne 0x43057a
sub eax, 0x203
je 0x430577
sub eax, 3
je 0x430577
sub eax, 3
jne 0x43057a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43058e
dec eax
je 0x4305a3
dec eax
je 0x4305c0
dec eax
je 0x4305a3
jmp 0x4305c7
mov ecx, ebx
mov eax, dword [0x47641c]
mov eax, dword [eax]
mov edx, esi
call fcn.0044efec
jmp 0x43063e
cmp byte [esi + 0x5d], 1
jne 0x4305b9
mov eax, esi
mov si, 0xffed
call fcn.00403cd0
jmp 0x430647
or word [esi + 0x54], 1
jmp 0x43063e
and word [esi + 0x54], 0xfffe
jmp 0x43063e
mov eax, dword [0x477b08]
cmp byte [eax + 0x20], 0
je 0x43063e
mov eax, dword [0x477b08]
cmp dword [eax + 0x1c], 0
je 0x43063e
mov eax, dword [ebx]
mov edx, dword [0x477b08]
cmp eax, dword [edx + 0x1c]
jne 0x43063e
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.00445848
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.00403cd0
jmp 0x430647
cmp eax, 0xb00b
jne 0x43063e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042ee24
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