joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40188f
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x11da1f54
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0xf643d3d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41820b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4223dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e5bf
and dword [ebp - 0x14], 0
cmp dword [0x43a3b0], 0
mov dword [ebp - 0x18], eax
jne 0x4182be
push 0x404000
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418366
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ff4
push ebx
call edi
test eax, eax
je 0x418366
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fe4
push ebx
mov dword [0x43a3b0], eax
call edi
push eax
call esi
push 0x403fd0
push ebx
mov dword [0x43a3b4], eax
call edi
push eax
call esi
push 0x403fb4
push ebx
mov dword [0x43a3b8], eax
call edi
push eax
call esi
mov dword [0x43a3c0], eax
test eax, eax
je 0x4182be
push 0x403f9c
push ebx
call edi
push eax
call esi
mov dword [0x43a3bc], eax
mov eax, dword [0x43a3bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418317
cmp dword [0x43a3c0], ecx
je 0x418317
push eax
call esi
push dword [0x43a3c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418317
test ebx, ebx
je 0x418317
call edi
test eax, eax
je 0x41830e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41830e
test byte [ebp - 8], 1
jne 0x418317
or dword [ebp + 0x10], 0x200000
jmp 0x41834a
mov eax, dword [0x43a3b4]
cmp eax, dword [ebp - 0x18]
je 0x41834a
push eax
call esi
test eax, eax
je 0x41834a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41834a
mov eax, dword [0x43a3b8]
cmp eax, dword [ebp - 0x18]
je 0x41834a
push eax
call esi
test eax, eax
je 0x41834a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a3b0]
call esi
test eax, eax
je 0x418366
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418368
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b78b
leave
ret
Function at 0x41d490
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x22ac
call fcn.00418ad0
cmp dword [0x8e4804], 0x37
jne 0x41d629
push 0
lea eax, [esp + 0x16ac]
push eax
push 0
push 0x404218
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea edx, [esp + 0x6ac]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push 0x4042ac
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
xor eax, eax
push eax
lea edx, [esp + 0xeac]
push edx
push 0x4042ec
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
mov word [esp + 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea edx, [esp + 0x2ac]
push edx
push 0x404324
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x1aac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x188]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0x404344
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x40420c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0x404364
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0040aab0
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0x404370
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x8e6f68]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x8e2ffc]
mov byte [eax + esi], dl
add esp, 0x22ac
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
mov ecx, 0xf54c96
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x1c5b4a40
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x4031c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.0040322b
push 0
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x4031f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push 7
push dword [ebp - 4]
call sub.kernel32.dll_SetConsoleMode
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x403308
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00403340
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x8ac9f8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008acb48
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8aca1e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8aca0a
add dl, dl
jne 0x8aca29
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8aca7c
xor eax, eax
add dl, dl
jne 0x8aca36
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8acb1d
add dl, dl
jne 0x8aca45
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8aca50
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8aca5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8aca66
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8aca72
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8aca15
mov eax, 1
add dl, dl
jne 0x8aca8a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8aca95
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8aca81
sub eax, ebx
mov ebx, 1
jne 0x8acac8
mov ecx, 1
add dl, dl
jne 0x8acaae
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8acab9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8acaa5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8aca15
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8acadf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8acaea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8acad6
cmp eax, 0x7d00
jae 0x8acb0d
cmp eax, 0x500
jb 0x8acb08
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8aca15
cmp eax, 0x7f
ja 0x8acb10
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8aca15
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8acb3e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8aca15
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a7c
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.004043ec
test esi, esi
jne 0x402ab2
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.004044dc
jmp 0x402ad0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402990
mov edi, eax
test esi, esi
je 0x402ad0
cmp dword [ebx], 0
je 0x402ad0
dec esi
jmp 0x402ab9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034f8
Capabilities:
Query or enumerate registry value

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

Function at 0x404270
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d04c], 0
je 0x4042d1
cmp word [0x45d220], 0xd7b2
jne 0x404299
cmp dword [0x45d228], 0
jbe 0x404299
mov eax, 0x45d21c
call dword [0x45d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b054
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 0x4042f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b01c], 0
jne 0x4042ed
push 0
push 0x45b074
push 0x45b054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b2f8
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 0x40b331
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044dc
jmp 0x40b33a
mov eax, ebx
mov edx, esi
call fcn.00404440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b9ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b864
mov eax, dword [0x45c038]
cmp byte [eax], 0
je 0x40ba54
mov eax, dword [0x45be7c]
call fcn.00402e14
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a80
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 0x40ba9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ba8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45be38]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d718]
call fcn.00405b68
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 0x40c7ec
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 0x40c850
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.00404654
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408744
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c857
lea eax, [ebp - 0xc]
call fcn.004043ec
ret
Function at 0x41e7a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45da24
cmp dword [edi], 0
jne 0x41e824
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45da20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b590
mov ecx, 2
call fcn.00402950
mov edx, 0x41e780
lea eax, [esi + 5]
call fcn.0041e7a0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e7a0
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 0x41e7f9
mov dword [0x45da20], 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 0x41fcd8
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 0x41fcde
ret

Function at 0x4220ec
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 0x42213d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422124
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422114
jmp 0x42213d
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 0x422125
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b5f8
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 0x42b544
call sub.user32.dll_EnumWindows
ret

Function at 0x42b71c
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 0x42b799
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042b168
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 0x42b741
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042adc0
cmp dword [ebp - 4], 0
je 0x42b783
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040489c
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 0x42b7a0
lea eax, [ebp - 4]
call fcn.004043ec
ret

Function at 0x42e358
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 [0x45dbac], 0
je 0x42e4a7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45bfd8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42e4a7
mov eax, dword [0x45dbb0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45dbac]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42e476
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45dbac]
call fcn.00415d90
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42e46e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42e46e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42e46e
mov eax, dword [ebp - 0x14]
call fcn.00436dc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42e46e
push ebp
call fcn.0042e314
pop ecx
test al, al
jne 0x42e46e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42e42a
mov eax, dword [ebp - 0x14]
call fcn.0043591c
dec eax
jle 0x42e46e
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.0040387c
cmp byte [ebp - 1], 0
je 0x42e46e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42e46e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45dbb0]
call fcn.0042dadc
inc edi
dec ebx
jne 0x42e3bd
mov eax, dword [0x45dbb0]
cmp dword [eax + 8], 0
jle 0x42e48e
mov eax, dword [0x45dbb0]
call fcn.0042db6c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42e4a7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042e17c
pop ecx
test al, al
jne 0x42e4a7
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 0x431a54
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 0x431aa0
mov eax, esi
call fcn.004472a4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431aa0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x431aa0
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 0x431be4
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x431ae0
cmp eax, 0x108
ja 0x431ae0
mov eax, esi
call fcn.004472a4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431bdb
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x431be4
jmp 0x431bdb
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x431bc2
cmp eax, 0x20a
ja 0x431bc2
test byte [esi + 0x50], 0x80
jne 0x431b12
sub eax, 0x203
je 0x431b0f
sub eax, 3
je 0x431b0f
sub eax, 3
jne 0x431b12
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x431b26
dec eax
je 0x431b3b
dec eax
je 0x431b5b
dec eax
je 0x431b3b
jmp 0x431b62
mov ecx, ebx
mov eax, dword [0x45bfd8]
mov eax, dword [eax]
mov edx, esi
call fcn.00450978
jmp 0x431bdb
cmp byte [esi + 0x5d], 1
jne 0x431b51
mov eax, esi
mov si, 0xffed
call fcn.0040387c
jmp 0x431be4
or word [esi + 0x54], 1
jmp 0x431bdb
and word [esi + 0x54], 0xfffe
jmp 0x431bdb
mov eax, dword [0x45db68]
cmp byte [eax + 0x20], 0
je 0x431bdb
mov eax, dword [0x45db68]
cmp dword [eax + 0x1c], 0
je 0x431bdb
mov eax, dword [ebx]
mov edx, dword [0x45db68]
cmp eax, dword [edx + 0x1c]
jne 0x431bdb
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.004471e8
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.0040387c
jmp 0x431be4
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x431bdb
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00430390
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