joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6377
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x51adc2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a63cf
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x51ade3
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a63c5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4a63d3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4c7308
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x34]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c7343
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x34]
call fcn.00411bac
mov al, byte [eax + 0x288]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x34]
call fcn.00411bac
pop edx
mov byte [eax + 0x288], dl
inc ebx
dec edi
jne 0x4c731b
pop edi
pop esi
pop ebx
ret

Function at 0x4dd5d4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4dd618
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409b24
add esp, 0x200
pop ebx
ret
Function at 0x4ef8b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4ef8c7
add esp, 0xfffffff0
call fcn.0040336c
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4efa4d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00418664
mov dword [ebx + 0x90], 0xffffffff
xor eax, eax
mov dword [ebx + 0xe4], eax
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x84], 1
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x94], 0
xor eax, eax
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4e9bf0]
call fcn.00402ffc
mov dword [ebx + 0x74], eax
lea edx, [ebp - 8]
mov eax, dword [0x51bd80]
call fcn.00406330
mov eax, dword [ebp - 8]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e8274]
call fcn.004ee2f4
mov esi, eax
mov dword [ebx + 0x78], esi
mov byte [esi + 4], 0
mov byte [esi + 0x2c], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x51bcb8]
call fcn.00406330
mov eax, dword [ebp - 0xc]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e8274]
call fcn.004ee2f4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40ffe0]
call fcn.00402ffc
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40ffe0]
call fcn.00402ffc
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x28], 0x80000000
mov byte [ebx + 0x64], 1
mov word [ebx + 0x38], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e9768]
call fcn.004eea28
mov dword [ebx + 0x58], eax
lea edx, [ebx + 0x70]
mov eax, dword [0x51bde0]
call fcn.00406330
lea edx, [ebx + 0x60]
mov eax, dword [0x51bd5c]
call fcn.00406330
mov dl, 1
mov eax, dword [0x40ffe0]
call fcn.00402ffc
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x40ffe0]
call fcn.00402ffc
mov dword [ebx + 0x54], eax
mov al, byte [0x4efa74]
mov byte [ebx + 0x95], al
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x50], 0xffffffff
mov byte [ebx + 0xea], 1
mov byte [ebx + 0xe8], 1
mov byte [ebx + 0xeb], 0
lea eax, [ebx + 0xe0]
call fcn.00403d10
mov al, byte [0x4efa78]
mov byte [ebx + 0x9c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efa54
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403d34
ret
Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x761276be
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x657e7289
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x43aa30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.TiDUBA
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x43aa52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43aa59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43aa48
mov eax, 1
add ebx, ebx
jne 0x43aa6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43aa60
jne 0x43aa7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43aa60
xor ecx, ecx
sub eax, 3
jb 0x43aa90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ab02
mov ebp, eax
add ebx, ebx
jne 0x43aa9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43aaa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43aacc
inc ecx
add ebx, ebx
jne 0x43aab8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43aaad
jne 0x43aac9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43aaad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43aaec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43aadd
jmp 0x43aa4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43aaec
add edi, ecx
jmp 0x43aa4e
pop esi
mov edi, esi
mov ecx, 0xcc8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ab0a
cmp byte [edi], 0x14
jne 0x43ab0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43ab0f
lea edi, [esi + 0x37000]
mov eax, dword [edi]
or eax, eax
je 0x43ab87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3ba74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3bb14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ab3c
mov ecx, edi
jns 0x43ab6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3bb18]
or eax, eax
je 0x43ab81
mov dword [ebx], eax
add ebx, 4
jmp 0x43ab59
call dword [esi + 0x3bb1c]
popal
jmp 0x40604f
Function at 0x402b14
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402f6c
Capabilities:
Query or enumerate registry value

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

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x403d11
cmp word [0x45421c], 0xd7b2
jne 0x403cd9
cmp dword [0x454224], 0
jbe 0x403cd9
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x452070
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 0x403d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452034], 0
jne 0x403d2d
push 0
push 0x452068
push 0x452070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405984
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 0x4059ea
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.0040409c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059f1
lea eax, [ebp - 0x10]
call fcn.00403e2c
ret

Function at 0x40aa40
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 0x40aa79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f1c
jmp 0x40aa82
mov eax, ebx
mov edx, esi
call fcn.00403e80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b134
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40afac
mov eax, dword [0x45309c]
cmp byte [eax], 0
je 0x40b1b0
mov eax, dword [0x452ec0]
call fcn.00402980
call fcn.00402824
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.004082b4
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 0x40b1f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x452e70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454664]
call fcn.00404e98
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 0x40ba4c
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 0x40bb22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ec4
lea eax, [ebp - 8]
call fcn.0040433c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb0c
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb05
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.004042ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40baef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40baef
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 0x40bb0c
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb29
lea eax, [ebp - 8]
call fcn.00403e2c
ret

Function at 0x40bfa0
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 0x40c004
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.0040409c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c00b
lea eax, [ebp - 0xc]
call fcn.00403e2c
ret

Function at 0x41a12c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454884
cmp dword [edi], 0
jne 0x41a1a8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4523f0
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a104
lea eax, [esi + 5]
call fcn.0041a124
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a124
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 0x41a17d
mov dword [0x454880], 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 0x41b3c4
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 0x41b3ca
ret
Function at 0x41d80c
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 0x41d85d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d844
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d834
jmp 0x41d85d
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 0x41d845
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b31c
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 0x42b268
call sub.user32.dll_EnumWindows
ret

Function at 0x42b43c
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 0x42b4b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042ae9c
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 0x42b461
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042aa9c
cmp dword [ebp - 4], 0
je 0x42b4a3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004042ec
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 0x42b4c0
lea eax, [ebp - 4]
call fcn.00403e2c
ret

Function at 0x42e484
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 [0x454b54], 0
je 0x42e5d3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45303c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42e5d3
mov eax, dword [0x454b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x454b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42e5a2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x454b54]
call fcn.004136fc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42e59a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42e59a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42e59a
mov eax, dword [ebp - 0x14]
call fcn.0043711c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42e59a
push ebp
call fcn.0042e440
pop ecx
test al, al
jne 0x42e59a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42e556
mov eax, dword [ebp - 0x14]
call fcn.00435c4c
dec eax
jle 0x42e59a
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.004032f0
cmp byte [ebp - 1], 0
je 0x42e59a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42e59a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x454b58]
call fcn.0042dc0c
inc edi
dec ebx
jne 0x42e4e9
mov eax, dword [0x454b58]
cmp dword [eax + 8], 0
jle 0x42e5ba
mov eax, dword [0x454b58]
call fcn.0042dc9c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42e5d3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042e2a8
pop ecx
test al, al
jne 0x42e5d3
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 0x431bb4
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 0x431c00
mov eax, esi
call fcn.00447364
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431c00
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x431c00
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 0x431d3f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x431c40
cmp eax, 0x108
ja 0x431c40
mov eax, esi
call fcn.00447364
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431d36
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x431d3f
jmp 0x431d36
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x431d1f
cmp eax, 0x20a
ja 0x431d1f
test byte [esi + 0x50], 0x80
jne 0x431c72
sub eax, 0x203
je 0x431c6f
sub eax, 3
je 0x431c6f
sub eax, 3
jne 0x431c72
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x431c86
dec eax
je 0x431c9b
dec eax
je 0x431cb8
dec eax
je 0x431c9b
jmp 0x431cbf
mov ecx, ebx
mov eax, dword [0x45303c]
mov eax, dword [eax]
mov edx, esi
call fcn.00450b10
jmp 0x431d36
cmp byte [esi + 0x5d], 1
jne 0x431cb1
mov eax, esi
mov si, 0xffed
call fcn.004032f0
jmp 0x431d3f
or word [esi + 0x54], 1
jmp 0x431d36
and word [esi + 0x54], 0xfffe
jmp 0x431d36
mov eax, dword [0x454b10]
cmp byte [eax + 0x20], 0
je 0x431d36
mov eax, dword [0x454b10]
cmp dword [eax + 0x1c], 0
je 0x431d36
mov eax, dword [ebx]
mov edx, dword [0x454b10]
cmp eax, dword [edx + 0x1c]
jne 0x431d36
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.004472a8
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.004032f0
jmp 0x431d3f
cmp eax, 0xb00b
jne 0x431d36
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004304d4
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