joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a30
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4034a0
push 0x401e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push str.SystemWPAPnP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a8e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x28], 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push str.seed
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ad1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x24]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [ebp - 4], ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x401be9
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push 0x8003
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401be9
mov byte [ebp - 0x30], bl
mov al, byte [ebp + 8]
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2e], bl
mov byte [ebp - 0x2d], bl
push ebx
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
test eax, eax
je 0x401be9
push ebx
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call esi
test eax, eax
je 0x401be9
mov dword [ebp - 0x28], 0x10
push ebx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
push 2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401be9
lea edx, [ebp - 0x24]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call esi
test eax, eax
jne 0x401bb1
push 0x10
lea eax, [ebp - 0x40]
push eax
push 3
push ebx
push str.PrivateHash
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call esi
test eax, eax
jne 0x401be9
push 1
lea ecx, [ebp + 8]
push ecx
push 3
push ebx
push str.Policy
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401c0f
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401a8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test eax, eax
je 0x401a9b
push ebx
push esi
push eax
mov esi, eax
xor ebx, ebx
xor eax, eax
jmp 0x401aa1
mov dword [edx], eax
inc dword [edx]
ret
inc esi
movzx ecx, byte [esi]
cmp cl, 0x20
je 0x401aa0
cmp cl, 0x30
jle 0x401ae6
test cl, 0x87
je 0x401b0c
sub cl, 0x30
cmp cl, 9
ja 0x401ad4
cmp eax, 0xccccccc
ja 0x401b4a
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
inc esi
mov bl, 1
movzx ecx, byte [esi]
jmp 0x401ab3
cmp eax, 0x80000000
jb 0x401b4a
jne 0x401ae1
test ebx, ebx
js 0x401b4a
dec esi
mov bl, 0
jmp 0x401b4a
cmp cl, 0x2b
je 0x401af0
cmp cl, 0x2d
jne 0x401afa
mov bl, 0x2c
sub ebx, ecx
inc esi
mov bl, 0
movzx ecx, byte [esi]
cmp cl, 0x24
je 0x401b16
cmp cl, 0x30
jne 0x401aae
inc esi
mov bl, 1
movzx ecx, byte [esi]
jmp 0x401aae
mov bh, cl
or bh, 0x20
cmp bh, 0x78
jne 0x401ab3
mov bl, 0
inc esi
movzx ecx, byte [esi]
cmp cl, 0x61
jb 0x401b24
sub cl, 0x20
sub cl, 0x30
cmp cl, 9
jbe 0x401b37
sub cl, 0x11
cmp cl, 5
ja 0x401b47
add cl, 0xa
cmp eax, 0xfffffff
ja 0x401b4a
shl eax, 4
mov bl, 1
add eax, ecx
jmp 0x401b18
add cl, 0x11
mov ch, bl
sar ebx, 0x1f
dec ch
xor eax, ebx
sub eax, ebx
or cl, ch
cmp cl, 0xd0
jne 0x401b64
xor esi, esi
pop ecx
mov dword [edx], esi
pop esi
pop ebx
ret
inc esi
pop ecx
sub esi, ecx
jmp 0x401b5f

Function at 0x402c74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b044], 0
je 0x402cd5
cmp word [0x45b218], 0xd7b2
jne 0x402c9d
cmp dword [0x45b220], 0
jbe 0x402c9d
mov eax, 0x45b214
call dword [0x45b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x458088
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 0x402cfc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x458034], 0
jne 0x402cf1
push 0
push 0x458080
push 0x458088
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e18
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 0x404e7e
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.004030e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00401a8c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404e68
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e85
lea eax, [ebp - 0x10]
call fcn.00402e18
ret

Function at 0x406fe8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x407037
test eax, edx
je 0x40703a
mov ecx, dword [edx]
cmp cl, byte [eax]
je 0x407000
movzx eax, byte [eax]
movzx ecx, cl
sub eax, ecx
ret
push ebx
mov ebx, dword [eax]
cmp ebx, ecx
je 0x40704c
mov eax, dword [eax - 4]
mov edx, dword [edx - 4]
cmp ch, bh
je 0x407023
test eax, eax
je 0x40701f
test edx, edx
je 0x40701f
movzx eax, bh
movzx edx, ch
sub eax, edx
pop ebx
ret
cmp eax, 2
jbe 0x40701f
cmp edx, 2
jbe 0x40701f
mov eax, ebx
bswap eax
bswap ecx
sub eax, ecx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x407046
test edx, edx
jne 0x406ff0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
nop
nop
nop
add ecx, 4
jns 0x407088
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
je 0x407064
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x407088
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
pop eax
pop ebx
ret

Function at 0x407cd8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x407d09
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x407d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x407d41
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40ac18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40ac60
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00402f80
jmp 0x40ac6b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00402ed8
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aca2
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40aca8
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x40b430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b278
mov eax, dword [0x459fb0]
cmp byte [eax], 0
je 0x40b4c3
mov eax, dword [0x459dec]
call fcn.00401868
call fcn.004015e0
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00407edc
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40b508
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b4f9
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x459da0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45be08]
call fcn.004040b4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret
Function at 0x40bec4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40bfa2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00402f1c
lea eax, [ebp - 0xc]
call fcn.00403320
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403308
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bf8c
mov eax, dword [ebp - 0x10]
call fcn.00401478
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40bf85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403308
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf6f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40bfb0
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf6f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf8c
mov eax, dword [ebp - 0x18]
call fcn.00401490
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfa9
lea eax, [ebp - 0xc]
call fcn.00402e18
ret

Function at 0x40c6b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40c71a
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.004030e8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004079d8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c721
lea eax, [ebp - 0x14]
call fcn.00402e18
ret
Function at 0x41ae34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x45c22c
cmp dword [esi], 0
jne 0x41aeda
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x45c228]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x458568
mov ecx, 2
call fcn.00401694
mov edx, 0x41ae0c
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041ae2c
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041ae2c
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41aea1
mov eax, dword [ebp - 8]
mov dword [0x45c228], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41b61c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualQuery_1
cmp dword [ebp - 0x10], 0x40
jne 0x41b65f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
jmp 0x41b686
mov eax, dword [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll.dll_ZwProtectVirtualMemory
test eax, eax
jne 0x41b686
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x40
mov esp, ebp
pop ebp
ret
Function at 0x41b6a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebp - 0xc], 0x1c
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004019d8
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualQuery_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x41b733
cmp dword [ebp - 0x18], 0x40
jne 0x41b70c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
jmp 0x41b733
mov eax, dword [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll.dll_ZwProtectVirtualMemory
test eax, eax
jne 0x41b733
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x40
mov esp, ebp
pop ebp
ret

Function at 0x41d3c8
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 0x41d3ce
ret

Function at 0x41f840
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 0x41f891
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f878
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f868
jmp 0x41f891
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 0x41f879
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428874
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 0x4287c0
call sub.user32.dll_EnumWindows
ret

Function at 0x428994
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 0x428a11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004283f4
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 0x4289b9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00427ff4
cmp dword [ebp - 4], 0
je 0x4289fb
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00403308
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 0x428a18
lea eax, [ebp - 4]
call fcn.00402e18
ret
Function at 0x42bab8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
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 [0x45c4bc], 0
je 0x42bc13
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x459f50]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42bc13
mov eax, dword [0x45c4c0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45c4bc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x42bbe2
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x45c4bc]
call fcn.0041432c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42bbd6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42bbd6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
test al, al
je 0x42bbd6
mov eax, dword [ebp - 0x14]
call fcn.00436f88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42bbd6
push ebp
call fcn.0042ba6c
pop ecx
test al, al
jne 0x42bbd6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42bb92
mov eax, dword [ebp - 0x14]
call fcn.00435388
dec eax
jle 0x42bbd6
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040218c
cmp byte [ebp - 1], 0
je 0x42bbd6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42bbd6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45c4c0]
call fcn.0042af34
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x42bb24
mov eax, dword [0x45c4c0]
cmp dword [eax + 8], 0
jle 0x42bbfa
mov eax, dword [0x45c4c0]
call fcn.0042afe0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42bc13
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042b8a8
pop ecx
test al, al
jne 0x42bc13
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430280
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x10
je 0x4302d3
mov eax, dword [ebp - 0x14]
call fcn.00448438
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4302d3
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x250], 0
je 0x4302d3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
jne 0x430462
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x43031c
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x108
ja 0x43031c
mov eax, dword [ebp - 0x14]
call fcn.00448438
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x430457
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xf0]
test al, al
jne 0x430462
jmp 0x430457
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x430432
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20a
ja 0x430432
mov eax, dword [ebp - 0x14]
test byte [eax + 0x50], 0x80
jne 0x43035f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x430359
sub eax, 3
je 0x430359
sub eax, 3
jne 0x43035f
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x200
je 0x430376
dec eax
je 0x43038d
dec eax
je 0x4303b4
dec eax
je 0x43038d
jmp 0x4303c1
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x459f50]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00453edc
jmp 0x430457
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x5d], 1
jne 0x4303a7
mov eax, dword [ebp - 0x14]
mov si, 0xffed
call fcn.0040218c
jmp 0x430462
mov eax, dword [ebp - 0x14]
or word [eax + 0x54], 1
jmp 0x430457
mov eax, dword [ebp - 0x14]
and word [eax + 0x54], 0xfffe
jmp 0x430457
mov eax, dword [0x45c478]
cmp byte [eax + 0x20], 0
je 0x430457
mov eax, dword [0x45c478]
cmp dword [eax + 0x1c], 0
je 0x430457
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x45c478]
cmp eax, dword [edx + 0x1c]
jne 0x430457
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
call fcn.00448354
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffc9
call fcn.0040218c
jmp 0x430462
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x430457
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0042e3b4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret