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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c570
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x466014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, str.DecodePointer
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.0041cb00
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, str.QueryPerformanceCounter
push eax
call fcn.0041cb00
mov esi, dword [str.SetEndOfFile]
xor ebx, ebx
mov edi, dword [0x4670e4]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x46a3d0], bl
mov eax, ebx
mov ecx, str.DecodePointer
cmovae ecx, dword [str.DecodePointer]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x46a4e0], al
inc ebx
cmp ebx, 0x100
jl 0x405780
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x46a3d0]
movzx eax, byte [esi + 0x46a4e0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4057d4
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x46a3d0]
mov byte [esi + 0x46a3d0], al
inc esi
mov byte [edi + 0x46a3d0], dl
cmp esi, 0x100
jl 0x4057b0
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00405350
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x405829
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40581f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40587f
push edx
push ecx
call fcn.00421cda
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40586b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405861
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40587f
push edx
push ecx
call fcn.00421cda
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043b2a9
int3
Function at 0x405890
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov ecx, dword [eax]
mov eax, 0xaaaaaaab
add ecx, 2
mov dword [ebp - 0xc], ebx
mul ecx
push esi
push edi
shr edx, 1
mov ecx, ebx
shl edx, 2
push 0x3d
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebx], 0
call fcn.0041c9c0
cmp dword [ebx + 0x14], 0x10
mov edi, ebx
jb 0x4058e3
mov edi, dword [ebx]
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], 3
xor esi, esi
mov ecx, dword [ecx]
mov eax, ecx
div dword [ebp - 4]
sub ecx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], ecx
je 0x40598e
mov eax, dword [ebp - 8]
dec ecx
add eax, 2
mov dword [ebp - 4], eax
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
mov edx, dword [ebp - 4]
shr eax, 1
inc eax
mov ebx, eax
movsx ecx, byte [edx - 2]
lea edx, [edx + 3]
movsx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movsx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov eax, ecx
sar eax, 0x12
movzx eax, byte [eax + 0x45cdc0]
mov byte [edi + esi], al
mov eax, ecx
sar eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x45cdc0]
mov byte [edi + esi + 1], al
mov eax, ecx
sar eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + 0x45cdc0]
mov byte [edi + esi + 2], al
movzx eax, byte [ecx + 0x45cdc0]
mov byte [edi + esi + 3], al
add esi, 4
sub ebx, 1
jne 0x405921
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x405a05
mov eax, dword [ebp - 8]
movsx eax, byte [ecx + eax]
sub edx, 1
je 0x4059b8
mov ebx, dword [ebp - 8]
shl eax, 8
movsx ecx, byte [ecx + ebx + 1]
mov ebx, dword [ebp - 0x10]
or ecx, eax
mov eax, ecx
sar eax, 0xa
and eax, 0x3f
jmp 0x4059bd
mov ecx, eax
sar eax, 2
mov al, byte [eax + 0x45cdc0]
mov byte [edi + esi], al
mov eax, ecx
test edx, edx
je 0x4059d4
sar eax, 4
and eax, 0x3f
jmp 0x4059da
and eax, 3
shl eax, 4
mov al, byte [eax + 0x45cdc0]
mov byte [edi + esi + 1], al
test edx, edx
je 0x4059ff
and ecx, 0xf
mov al, byte [ecx*4 + 0x45cdc0]
mov byte [edi + esi + 2], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [edi + esi + 2], al
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x4540bc]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40778b
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x40778b
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00438760
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x454064]
test eax, eax
je 0x40778b
push 4
push 0x1000
push 4
push 0
call dword [0x4540ac]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x454050]
test eax, eax
je 0x40778b
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x45ce8c
push dword [ebp - 0x160]
call dword [0x4540c0]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x4076ac
push 0x45ce90
push 0x45cea8
call dword [0x454094]
push eax
call dword [0x454054]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x454058]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x40778b
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
xor eax, eax
cmp ax, word [edi + 6]
jae 0x407745
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 0x164], ecx
nop dword [eax]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x68]
mov eax, dword [ecx + esi + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x64]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
mov ecx, dword [ebp - 0x164]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 0x164], ecx
cmp ebx, eax
jl 0x407700
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x45406c]
push dword [ebp - 0x15c]
call dword [0x45409c]
push 0x8000
push 0
push esi
call dword [0x4540b4]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421661
mov esp, ebp
pop ebp
ret
Function at 0x402e3c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e95
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cd8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cd8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e7f
inc ebx
jmp 0x402e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e9c
lea eax, [ebp - 8]
call fcn.004045bc
ret

Function at 0x402ea4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045bc
test esi, esi
jne 0x402edb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004046ac
jmp 0x402efc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cd8
mov dword [esp], eax
test esi, esi
je 0x402efc
cmp dword [ebx], 0
je 0x402efc
dec esi
jmp 0x402ee3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40356c
Capabilities:
Query or enumerate registry value

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

Function at 0x4043b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b04c], 0
je 0x404415
cmp word [0x45b220], 0xd7b2
jne 0x4043dd
cmp dword [0x45b228], 0
jbe 0x4043dd
mov eax, 0x45b21c
call dword [0x45b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45906c
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 0x40443c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x404431
push 0
push 0x459064
push 0x45906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a78
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404538
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40663c
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 0x4066a2
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.0040482c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403130
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40668c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066a9
lea eax, [ebp - 0x10]
call fcn.004045bc
ret

Function at 0x40c0a8
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 0x40c0e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046ac
jmp 0x40c0ea
mov eax, ebx
mov edx, esi
call fcn.00404610
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c7ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c614
mov eax, dword [0x45a118]
cmp byte [eax], 0
je 0x40c828
mov eax, dword [0x459f0c]
call fcn.00402f9c
call fcn.00402c04
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.00409334
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 0x40c870
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c85e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x459ea8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b668]
call fcn.00405a8c
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 0x40d114
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 0x40d1ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404654
lea eax, [ebp - 8]
call fcn.00404acc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d1d4
mov eax, ebx
call fcn.00402a78
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d1cd
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.00404a7c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d1b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d1fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d1b7
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 0x40d1d4
mov eax, dword [ebp - 0x10]
call fcn.00402aa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1f1
lea eax, [ebp - 8]
call fcn.004045bc
ret

Function at 0x40d708
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 0x40d76c
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.0040482c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ca8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d773
lea eax, [ebp - 0xc]
call fcn.004045bc
ret

Function at 0x41e00c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041de64
dec esi
jne 0x41e02e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41f170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45b88c
cmp dword [edi], 0
jne 0x41f1ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45b888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4593fc
mov ecx, 2
call fcn.00402c98
mov edx, 0x41f148
lea eax, [esi + 5]
call fcn.0041f168
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f168
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 0x41f1c1
mov dword [0x45b888], 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 0x420400
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 0x420406
ret

Function at 0x422878
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 0x4228c9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4228b0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4228a0
jmp 0x4228c9
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 0x4228b1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42be70
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 0x42bdbc
call sub.user32.dll_EnumWindows
ret

Function at 0x42bf90
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 0x42c00d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042b9f0
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 0x42bfb5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042b5f0
cmp dword [ebp - 4], 0
je 0x42bff7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a7c
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 0x42c014
lea eax, [ebp - 4]
call fcn.004045bc
ret

Function at 0x42ecb0
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 [0x45bb5c], 0
je 0x42edff
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45a0b0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42edff
mov eax, dword [0x45bb60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45bb5c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42edce
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45bb5c]
call fcn.00418238
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42edc6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42edc6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42edc6
mov eax, dword [ebp - 0x14]
call fcn.00437814
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42edc6
push ebp
call fcn.0042ec6c
pop ecx
test al, al
jne 0x42edc6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ed82
mov eax, dword [ebp - 0x14]
call fcn.00436344
dec eax
jle 0x42edc6
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.00403908
cmp byte [ebp - 1], 0
je 0x42edc6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42edc6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45bb60]
call fcn.0042e438
inc edi
dec ebx
jne 0x42ed15
mov eax, dword [0x45bb60]
cmp dword [eax + 8], 0
jle 0x42ede6
mov eax, dword [0x45bb60]
call fcn.0042e4c8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42edff
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ead4
pop ecx
test al, al
jne 0x42edff
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 0x432398
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 0x4323e4
mov eax, esi
call fcn.00447848
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4323e4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4323e4
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 0x432523
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x432424
cmp eax, 0x108
ja 0x432424
mov eax, esi
call fcn.00447848
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43251a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x432523
jmp 0x43251a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x432503
cmp eax, 0x20a
ja 0x432503
test byte [esi + 0x50], 0x80
jne 0x432456
sub eax, 0x203
je 0x432453
sub eax, 3
je 0x432453
sub eax, 3
jne 0x432456
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43246a
dec eax
je 0x43247f
dec eax
je 0x43249c
dec eax
je 0x43247f
jmp 0x4324a3
mov ecx, ebx
mov eax, dword [0x45a0b0]
mov eax, dword [eax]
mov edx, esi
call fcn.00451110
jmp 0x43251a
cmp byte [esi + 0x5d], 1
jne 0x432495
mov eax, esi
mov si, 0xffed
call fcn.00403908
jmp 0x432523
or word [esi + 0x54], 1
jmp 0x43251a
and word [esi + 0x54], 0xfffe
jmp 0x43251a
mov eax, dword [0x45bb18]
cmp byte [eax + 0x20], 0
je 0x43251a
mov eax, dword [0x45bb18]
cmp dword [eax + 0x1c], 0
je 0x43251a
mov eax, dword [ebx]
mov edx, dword [0x45bb18]
cmp eax, dword [edx + 0x1c]
jne 0x43251a
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.0044778c
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.00403908
jmp 0x432523
cmp eax, 0xb00b
jne 0x43251a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00430d00
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