joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ac0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41f0e4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.00416ece
push 0x4035d8
lea ecx, [esp + 0x1c]
call fcn.00416e24
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x418b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x418b66
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0041840f
mov edi, eax
jmp 0x418b66
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.004189a5
mov ebx, eax
test ebx, ebx
jns 0x418b6c
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.004183c3
mov edi, ebx
test esi, esi
je 0x418b80
jmp 0x418b7a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.00418534
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d020
mov esp, ebp
pop ebp
ret 8
Function at 0x41bad6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041bd6f

Function at 0x41c634
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x414
mov eax, 0x41e0fc
call fcn.0041d4e5
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x414], edi
mov dword [ebp - 4], edi
mov ebx, 0x100
movzx eax, byte [ecx + 0x13]
push eax
movzx eax, byte [ecx + 0x12]
push eax
movzx eax, byte [ecx + 0x11]
push eax
movzx eax, byte [ecx + 0x10]
push eax
movzx eax, byte [ecx + 0xf]
push eax
movzx eax, byte [ecx + 0xe]
push eax
movzx eax, byte [ecx + 0xd]
push eax
movzx eax, byte [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xa]
push eax
movzx eax, word [ecx + 8]
push eax
push dword [ecx + 4]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x41c], 0x208
push 0x403220
push ebx
push eax
mov dword [ebp - 0x418], edi
call fcn.00408bfb
add esp, 0x38
test eax, eax
js 0x41c7de
lea eax, [ebp - 0x210]
push eax
push 0x4038b0
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00408bfb
add esp, 0x10
test eax, eax
js 0x41c7de
lea ecx, [ebp - 0x414]
call fcn.0041c89a
push eax
push 0x20019
push ecx
lea edx, [ebp - 0x410]
mov ecx, 0x80000002
call fcn.00405576
test eax, eax
jne 0x41c7de
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push edi
push edi
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x418], 2
mov ebx, eax
mov dword [ebp - 0x420], ebx
jne 0x41c792
push 0x208
call fcn.0041cca0
mov ebx, eax
mov dword [esp], 0x104
push ebx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41c7fd
cmp eax, 0x104
jae 0x41c7fd
mov ecx, ebx
call fcn.00408ba7
push eax
push ebx
mov edx, 0x104
mov ecx, esi
call fcn.0040ebd4
push ebx
test eax, eax
je 0x41c785
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x41c7de
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov ebx, dword [ebp - 0x420]
pop ecx
test esi, esi
je 0x41c7d1
push 0x104
push esi
call dword [sym.imp.msvcrt.dll_wcsnlen]
pop ecx
pop ecx
mov ecx, 0x104
cmp eax, ecx
je 0x41c7d1
test eax, eax
je 0x41c7d1
push 0x22
pop edx
cmp word [esi], dx
jne 0x41c7d1
cmp word [esi + eax*2 - 2], dx
jne 0x41c7d1
add eax, 0xfffffffe
mov edx, ecx
push eax
lea eax, [esi + 2]
mov ecx, esi
push eax
call fcn.0040ebd4
test ebx, ebx
jne 0x41c7de
mov ecx, esi
call fcn.00408ba7
mov edi, eax
cmp dword [ebp - 0x414], 0
je 0x41c7f3
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0041d482
ret 8
push ebx
jmp 0x41c77c
Function at 0x41cd70
Capabilities:
Terminate process

Disassembly:
call fcn.0041d889
jmp 0x41cd80
push 0x58
push 0x41ea08
call fcn.0041d94c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41fbe4
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41cdd2
cmp eax, esi
jne 0x41cdc5
xor esi, esi
inc esi
mov edi, esi
jmp 0x41cdd5
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x41cda9
xor esi, esi
inc esi
cmp dword [0x41fbe8], esi
jne 0x41cde7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x41ce21
cmp dword [0x41fbe8], ebx
jne 0x41ce1b
mov dword [0x41fbe8], esi
push 0x4019d4
push 0x4019c8
call fcn.0041cf65
pop ecx
pop ecx
test eax, eax
je 0x41ce21
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41cf4f
mov dword [0x41f158], esi
cmp dword [0x41fbe8], esi
jne 0x41ce44
push 0x4019c4
push 0x401970
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41fbe8], 2
test edi, edi
jne 0x41ce51
xor eax, eax
mov ecx, 0x41fbe4
xchg dword [ecx], eax
cmp dword [0x41fbf4], 0
je 0x41ce7d
push 0x41fbf4
call fcn.0041d780
pop ecx
test eax, eax
je 0x41ce7d
push ebx
push 2
push ebx
mov esi, dword [0x41fbf4]
mov ecx, esi
call dword [0x420468]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x41cedb
test cl, cl
je 0x41ceaa
test edi, edi
jne 0x41cedb
test cl, cl
je 0x41ceaa
cmp cl, 0x20
ja 0x41ceaa
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x41ce99
test byte [ebp - 0x3c], 1
je 0x41ceb6
movzx eax, word [ebp - 0x38]
jmp 0x41ceb9
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x41f154], eax
cmp dword [0x41f16c], 0
jne 0x41cf34
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x41ceec
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x41ceff
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x41ce8a
cmp dword [0x41f158], 0
jne 0x41cf48
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x41f154]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d660
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41ea48
call fcn.0041d94c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d6c0
cmp eax, 0xffffffff
je 0x41d6c0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41d6b9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41d6b9
cmp edx, 0x10000000
jae 0x41d6b9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41d6b6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d730
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41d76e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41d766
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41d770
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41d756
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d850
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d87f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d87f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043cc
test esi, esi
jne 0x402e33
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.004044bc
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034c4
Capabilities:
Query or enumerate registry value

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

Function at 0x404248
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45e04c], 0
je 0x4042a9
cmp word [0x45e220], 0xd7b2
jne 0x404271
cmp dword [0x45e228], 0
jbe 0x404271
mov eax, 0x45e21c
call dword [0x45e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45c06c
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 0x4042d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x4042c5
push 0
push 0x45c064
push 0x45c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406268
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 0x4062ce
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.0040463c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403088
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062d5
lea eax, [ebp - 0x10]
call fcn.004043cc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040488c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408b11
test al, 0x10
jne 0x408b15
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b964
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 0x40b99d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044bc
jmp 0x40b9a6
mov eax, ebx
mov edx, esi
call fcn.00404420
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c068
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bed0
mov eax, dword [0x45dd08]
cmp byte [eax], 0
je 0x40c0e4
mov eax, dword [0x45da74]
call fcn.00402ef4
call fcn.00402bc4
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.00408f44
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 0x40c12c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c11a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45da08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e668]
call fcn.004056d4
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 0x40c9d0
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 0x40caa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404464
lea eax, [ebp - 8]
call fcn.004048dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca90
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca89
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.0040488c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca73
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cab8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca73
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 0x40ca90
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caad
lea eax, [ebp - 8]
call fcn.004043cc
ret

Function at 0x40d040
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 0x40d0a4
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.0040463c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408718
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0ab
lea eax, [ebp - 0xc]
call fcn.004043cc
ret

Function at 0x41e3e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45e888
cmp dword [edi], 0
jne 0x41e460
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45e884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45c47c
mov ecx, 2
call fcn.00402c58
mov edx, 0x41e3bc
lea eax, [esi + 5]
call fcn.0041e3dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e3dc
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 0x41e435
mov dword [0x45e884], 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 0x41f674
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 0x41f67a
ret
Function at 0x421aec
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 0x421b3d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421b24
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421b14
jmp 0x421b3d
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 0x421b25
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c0bc
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 0x42c008
call sub.user32.dll_EnumWindows
ret

Function at 0x42c1dc
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 0x42c259
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042bc3c
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 0x42c201
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042b83c
cmp dword [ebp - 4], 0
je 0x42c243
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040488c
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 0x42c260
lea eax, [ebp - 4]
call fcn.004043cc
ret

Function at 0x42eefc
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 [0x45eb58], 0
je 0x42f04b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45dc84]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42f04b
mov eax, dword [0x45eb5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45eb58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42f01a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45eb58]
call fcn.00417920
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42f012
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42f012
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42f012
mov eax, dword [ebp - 0x14]
call fcn.00437a60
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42f012
push ebp
call fcn.0042eeb8
pop ecx
test al, al
jne 0x42f012
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42efce
mov eax, dword [ebp - 0x14]
call fcn.00436590
dec eax
jle 0x42f012
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.00403860
cmp byte [ebp - 1], 0
je 0x42f012
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42f012
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45eb5c]
call fcn.0042e684
inc edi
dec ebx
jne 0x42ef61
mov eax, dword [0x45eb5c]
cmp dword [eax + 8], 0
jle 0x42f032
mov eax, dword [0x45eb5c]
call fcn.0042e714
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42f04b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ed20
pop ecx
test al, al
jne 0x42f04b
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 0x4325e4
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 0x432630
mov eax, esi
call fcn.00447a94
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x432630
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x432630
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 0x43276f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x432670
cmp eax, 0x108
ja 0x432670
mov eax, esi
call fcn.00447a94
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x432766
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43276f
jmp 0x432766
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43274f
cmp eax, 0x20a
ja 0x43274f
test byte [esi + 0x50], 0x80
jne 0x4326a2
sub eax, 0x203
je 0x43269f
sub eax, 3
je 0x43269f
sub eax, 3
jne 0x4326a2
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4326b6
dec eax
je 0x4326cb
dec eax
je 0x4326e8
dec eax
je 0x4326cb
jmp 0x4326ef
mov ecx, ebx
mov eax, dword [0x45dc84]
mov eax, dword [eax]
mov edx, esi
call fcn.0045136c
jmp 0x432766
cmp byte [esi + 0x5d], 1
jne 0x4326e1
mov eax, esi
mov si, 0xffed
call fcn.00403860
jmp 0x43276f
or word [esi + 0x54], 1
jmp 0x432766
and word [esi + 0x54], 0xfffe
jmp 0x432766
mov eax, dword [0x45eb14]
cmp byte [eax + 0x20], 0
je 0x432766
mov eax, dword [0x45eb14]
cmp dword [eax + 0x1c], 0
je 0x432766
mov eax, dword [ebx]
mov edx, dword [0x45eb14]
cmp eax, dword [edx + 0x1c]
jne 0x432766
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.004479d8
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.00403860
jmp 0x43276f
cmp eax, 0xb00b
jne 0x432766
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00430f4c
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