joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f40d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f358
push 0x471ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call sym.imp.KERNEL32.dll_GetVersion
nop
xor edx, edx
mov dl, ah
mov dword [0x5928d0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x5928cc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x5928c8], ecx
shr eax, 0x10
mov dword [0x5928c4], eax
push 1
call fcn.00475845
pop ecx
test eax, eax
jne 0x46f478
push 0x1c
call fcn.0046f53a
pop ecx
call fcn.00475602
test eax, eax
jne 0x46f489
push 0x10
call fcn.0046f53a
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00475446
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x594564], eax
call fcn.00475314
mov dword [0x5928a8], eax
call fcn.004750c7
call fcn.0047500e
call fcn.00472306
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00474fb6
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x46f4d8
movzx eax, word [ebp - 0x2c]
jmp 0x46f4db
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00472333
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.00474e3e
pop ecx
pop ecx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x473854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004725e5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x473877
test byte [esp + 8], 2
je 0x473877
call fcn.00472658
mov dword [eax], 0xd
call fcn.00472661
mov dword [eax], 5
jmp 0x473850
xor eax, eax
ret

Function at 0x485eef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485f27
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00483fa6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483f7e
jmp 0x485f33
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4875e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x487622
call fcn.0048d09e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x487622
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487619
xor eax, eax
jmp 0x48762a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00487630
pop edi
pop esi
pop ebx
ret 4
Function at 0x48d5ce
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48d5fc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48d61a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048d534
jmp 0x48d61a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48d61a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048d534
test edi, edi
mov eax, edi
jne 0x48d604
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404d1e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x404d4c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x404d53
cmp ebx, dword [eax + 4]
jae 0x404d53
xor eax, eax
jmp 0x404f43
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404d64
xor eax, eax
inc eax
jmp 0x404f42
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404d7a
cmp ecx, edx
jae 0x404ebf
cmp dword [eax + 4], 0
je 0x404d83
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404d6b
cmp dword [ebp + 8], 0
je 0x404da5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404ebf
cmp eax, esi
jae 0x404ebf
mov eax, dword [0x408570]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404dca
cmp dword [esi*4 + 0x408578], edi
je 0x404ec3
inc esi
cmp esi, eax
jl 0x404db8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4060cc]
test eax, eax
je 0x404f3f
cmp dword [ebp - 8], 0x1000000
jne 0x404f3f
test byte [ebp - 0xc], 0xcc
je 0x404e48
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404f3f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404f3f
cmp word [eax + 0x18], 0x10b
jne 0x404f3f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404f3f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404e48
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404e48
test byte [ecx + 0x27], 0x80
jne 0x404ebf
push 1
push 0x4085b8
call dword [0x4060c8]
test eax, eax
jne 0x404d5c
mov ecx, dword [0x408570]
test ecx, ecx
mov edx, ecx
jle 0x404e7c
lea eax, [ecx*4 + 0x408574]
cmp dword [eax], edi
je 0x404e7c
dec edx
sub eax, 4
test edx, edx
jg 0x404e70
test edx, edx
jne 0x404ead
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404e89
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404ea1
lea eax, [edx*4 + 0x408578]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404e8f
cmp ecx, 0x10
jge 0x404ead
inc ecx
mov dword [0x408570], ecx
push 0
push 0x4085b8
call dword [0x4060c8]
jmp 0x404d5c
xor eax, eax
jmp 0x404f42
test esi, esi
jle 0x404d5c
mov ebx, dword [0x4060c8]
push 1
push 0x4085b8
call ebx
test eax, eax
jne 0x404d5c
cmp dword [esi*4 + 0x408578], edi
je 0x404f19
mov eax, dword [0x408570]
lea esi, [eax - 1]
test esi, esi
jl 0x404f07
cmp dword [esi*4 + 0x408578], edi
je 0x404f03
dec esi
jns 0x404ef7
test esi, esi
jge 0x404f17
cmp eax, 0x10
jge 0x404f12
inc eax
mov dword [0x408570], eax
lea esi, [eax - 1]
jmp 0x404f19
je 0x404f31
xor ecx, ecx
test esi, esi
jl 0x404f31
lea eax, [ecx*4 + 0x408578]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404f1f
push 0
push 0x4085b8
call ebx
jmp 0x404d5c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401314
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401326
mov eax, dword [0x46a08b]
shl eax, 2
mov dword [0x46a08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045fe78
pop edx
call fcn.0045fddc
call fcn.0045feb8
push 0
call fcn.004612c4
pop ecx
push 0x46a034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x46a093], eax
push 0
jmp fcn.00465108

Function at 0x40fec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46ebcc
cmp dword [edi], 0
jne 0x40ff3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x46ebc8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46a5d0
mov ecx, 2
call fcn.00421028
mov edx, 0x40fe98
lea eax, [esi + 5]
call fcn.0040feb8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040feb8
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 0x40ff11
mov dword [0x46ebc8], 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 0x4142c4
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4142fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042288c
jmp 0x414306
mov eax, ebx
mov edx, esi
call fcn.004227f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414310
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
test eax, eax
jle 0x414331
mov al, byte [esp]
jmp 0x414333
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4149b8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x414830
mov eax, dword [0x46e8e4]
cmp byte [eax], 0
je 0x414a25
mov eax, dword [0x46e8e8]
call fcn.004213e4
call fcn.00420f94
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00412b28
push eax
lea eax, [esp + 0x50]
push eax
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 0x414a6c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x414a5b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46e7a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46eac8]
call fcn.00423ee8
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x415624
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 0x415688
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00422a04
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004126a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41568f
lea eax, [ebp - 0xc]
call fcn.0042279c
ret

Function at 0x421ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46aaf8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x421b58
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x421b38
xor eax, eax
push ebp
push 0x421b31
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 0x421b74
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 0x421b38
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x46aaf8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46aaf8], ax
mov esp, ebp
pop ebp
ret

Function at 0x422620
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46eee8], 0
je 0x422681
cmp word [0x46f0bc], 0xd7b2
jne 0x422649
cmp dword [0x46f0c4], 0
jbe 0x422649
mov eax, 0x46f0b8
call dword [0x46f0d4]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4226a8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x46ab08], 0
jne 0x42269d
push 0
push 0x46ab60
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4240dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42430c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42415f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42430c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42415f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x424328
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4241e8
xor eax, eax
push ebp
push 0x4241e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00423f24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4241c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x424348
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4241c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4241e8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x424302
cmp byte [ebp - 0xd], 0
jne 0x42422f
cmp byte [ebp - 0x12], 0
je 0x424302
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x424248
dec ebx
cmp byte [ebx], 0x2e
je 0x424257
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x424247
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x424302
inc ebx
cmp byte [ebp - 0x12], 0
je 0x424294
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x424302
cmp byte [ebp - 0xd], 0
je 0x424302
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x424302
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424ab4
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x46f45c], 1
jae 0x424b3a
mov byte [0x46aaf4], 2
mov dword [0x46eeac], 0x469702
mov dword [0x46eeb0], 0x469714
mov byte [0x46eeea], 2
mov dword [0x46ee98], 0x42370c
call fcn.00421a90
test al, al
je 0x424af7
call fcn.00421ac0
call fcn.00421b84
mov word [0x46eef0], 0xd7b0
mov word [0x46f0bc], 0xd7b0
mov word [0x46f288], 0xd7b0
call fcn.004235ec
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46eedc], eax
call fcn.0041fa60
mov dword [0x46eed8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x46eed0], eax
ret

Function at 0x425550
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 0x42549c
call sub.USER32.DLL_EnumWindows
ret

Function at 0x425674
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 0x4256f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004250c0
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 0x425699
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00424d18
cmp dword [ebp - 4], 0
je 0x4256db
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00422c4c
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 0x4256f8
lea eax, [ebp - 4]
call fcn.0042279c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00422c4c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x42c09c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0042279c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42c0eb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00422a04
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432668
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 0x43266e
ret
Function at 0x434b3c
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 0x434b8d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x434b74
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x434b64
jmp 0x434b8d
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 0x434b75
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43daf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43db40]
test si, 4
je 0x43db04
or bl, 1
test si, 8
je 0x43db0e
or bl, 4
test si, 1
je 0x43db18
or bl, 8
test si, 2
je 0x43db22
or bl, 0x10
test si, 0x10
je 0x43db2c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43db3b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43db44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43db7c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43db5d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43db6c
or bl, 4
test esi, 0x20000000
je 0x43db77
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4444b8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4444ca
add esp, 0xfffffff0
call fcn.00421fb4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040ee3c
mov eax, dword [0x46e90c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44485c
mov eax, dword [0x46e910]
mov dword [eax + 4], ebx
mov dword [eax], 0x444868
mov eax, ebx
call fcn.00444874
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x404ae0]
call fcn.00421c20
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x404ae0]
call fcn.00421c20
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x404ae0]
call fcn.00421c20
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x404ae0]
call fcn.00421c20
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x404ae0]
call fcn.00421c20
mov dword [ebx + 0x7c], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x440d3c
push eax
push 0
push 0
mov eax, dword [0x46ea8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x431a9c]
call fcn.004331b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x431a9c]
call fcn.004331b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x431a9c]
call fcn.004331b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00444c94
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x444b70
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x444b70
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x444b70
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x444607
call fcn.0042200c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x444954
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444aff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x444ae0
mov dl, 1
mov eax, dword [0x405010]
call fcn.00421c20
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0042279c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x444acf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0045bde4
test al, al
je 0x444ac2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x444b10
lea eax, [ebp - 0x254]
call fcn.0041321c
push eax
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x444ac2
xor eax, eax
push ebp
push 0x444abb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x444b48
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x444aa4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00422a04
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x444aa4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00422a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444ac2
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4449c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00409448
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444b06
lea eax, [ebp - 0x260]
call fcn.0042279c
ret

Function at 0x445434
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46f644]
cmp byte [eax + 0xa5], 0
jne 0x4454a5
cmp dword [0x46f65c], 0
jne 0x445466
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4453f0
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x46f65c], eax
cmp dword [0x46f658], 0
jne 0x445481
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x46f658], eax
cmp dword [0x46f660], 0
jne 0x4454a5
push esp
push 0
push 0
push 0x445394
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x46f660], eax
pop edx
ret