joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437c1c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x437ccc
jne 0x437c3d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x437cc5
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x437cc5
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x487230]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x437c62
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret

Function at 0x438037
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00437cd2
lea edx, [esp + 0xc]
push edx
call fcn.004143ca
add esp, 0x10
test eax, eax
je 0x438073
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x438073
xor ecx, ecx
mov word [eax], cx
push ebp
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43811c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 2
jne 0x4380b0
push 0
lea eax, [esp + 8]
push eax
call ebp
test eax, eax
je 0x4380b5
mov al, 1
pop ebp
add esp, 0x20c
ret
cmp eax, 3
jne 0x438120
push esi
push edi
lea edi, [esp + 0xc]
call fcn.0040ff90
mov esi, eax
push 0x5c
push esi
call fcn.004163df
add esp, 8
test eax, eax
jne 0x4380e6
push esi
call fcn.00412949
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20c
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00438037
push esi
mov bl, al
call fcn.00412949
add esp, 8
test bl, bl
je 0x43810f
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
test al, 0x10
jne 0x4380a6
xor al, al
pop ebp
add esp, 0x20c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4383ad
test al, 0x10
je 0x4383ad
mov al, 1
ret
xor al, al
ret
Function at 0x4383b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4383ef
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4383e4
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x438791
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1248
call fcn.00426210
push ebp
mov ebp, dword [esp + 0x1258]
lea eax, [esp + 4]
push eax
push 0x800
lea ecx, [esp + 0xa54]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4387c8
xor al, al
pop ebp
add esp, 0x1248
ret
mov edx, dword [esp + 0x1250]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edx
shr esi, 2
mov byte [ebp], 0
call fcn.00438755
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
jbe 0x4388df
push edi
cmp byte [ebp], 0
jne 0x4388de
mov eax, dword [esp + ebx*4 + 0xa58]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
mov edi, eax
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x22c]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4388ce
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x648]
push ecx
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.00415060
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00412518
mov eax, dword [esp + 0x1278]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00412485
add esp, 0x24
test eax, eax
jne 0x4388ae
mov edx, dword [esp + ebx*4 + 0xa58]
mov eax, dword [esp + 0x1260]
mov dword [eax], edx
jmp 0x4388ca
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4388ce
mov eax, dword [esp + ebx*4 + 0xa58]
cmp ecx, eax
jne 0x4388ce
mov ecx, dword [esp + 0x1260]
mov dword [ecx], eax
mov byte [ebp], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x4387f4
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x1248
ret
Function at 0x4388eb
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa5c
push ebx
push ebp
mov ebp, dword [esp + 0xa68]
push esi
mov esi, dword [esp + 0xa74]
push edi
push 0
push 2
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
push ebp
mov byte [esi], 0
call fcn.00438755
add esp, 4
cmp byte [esi], 0
mov ebx, eax
jne 0x4389d3
lea ecx, [ecx]
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x4389d3
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x65c]
push ecx
lea edx, [esp + 0x86c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00415060
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x254]
push edx
call fcn.00412518
lea eax, [esp + 0x258]
push ebp
push eax
call fcn.00412485
add esp, 0x24
test eax, eax
jne 0x4389b2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xa74]
mov dword [edx], ecx
jmp 0x4389c7
test ebx, ebx
je 0x4389ca
mov eax, dword [esp + 0x18]
cmp ebx, eax
jne 0x4389ca
mov ecx, dword [esp + 0xa74]
mov dword [ecx], eax
mov byte [esi], 1
cmp byte [esi], 0
je 0x43893b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xa5c
ret
Function at 0x439120
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ecx
push ebp
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, dword [esp + 0x10]
mov esi, eax
cmp ebp, esi
jne 0x43913e
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
test esi, esi
jne 0x439150
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x439164
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x439257
push ebx
push edi
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebp
mov ebx, eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebp, eax
push ebp
push ebx
call esi
push 1
push edi
push ebx
call esi
push 1
push ebp
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x439231
push eax
push eax
push eax
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x439239
mov dword [esp + 0x10], 4
jmp 0x439239
mov dword [esp + 0x10], 3
push 0
push ebp
push ebx
call esi
push 0
push edi
push ebx
call esi
push 0
push ebp
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4
pop esi
mov eax, 2
pop ebp
pop ecx
ret 4
Function at 0x402a24
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.00404434
test esi, esi
jne 0x402a5a
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.00404524
jmp 0x402a78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402938
mov edi, eax
test esi, esi
je 0x402a78
cmp dword [ebx], 0
je 0x402a78
dec esi
jmp 0x402a61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403574
Capabilities:
Query or enumerate registry value

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

Function at 0x4042b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x404319
cmp word [0x45d21c], 0xd7b2
jne 0x4042e1
cmp dword [0x45d224], 0
jbe 0x4042e1
mov eax, 0x45d218
call dword [0x45d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x451070
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 0x404340
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x451030], 0
jne 0x404335
push 0
push 0x451068
push 0x451070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4056bc
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 0x4058ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40573f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40573f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405908
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4057c8
xor eax, eax
push ebp
push 0x4057c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405504
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 0x4057a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405928
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057a6
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 0x4057c8
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 0x4058e2
cmp byte [ebp - 0xd], 0
jne 0x40580f
cmp byte [ebp - 0x12], 0
je 0x4058e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405828
dec ebx
cmp byte [ebx], 0x2e
je 0x405837
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405827
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4058e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405874
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 0x4058e2
cmp byte [ebp - 0xd], 0
je 0x4058e2
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 0x4058e2
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 0x405fb4
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 0x40601a
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.004046a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fdc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406004
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406021
lea eax, [ebp - 0x10]
call fcn.00404434
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004048f4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4087b9
test al, 0x10
jne 0x4087bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b400
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 0x40b439
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404524
jmp 0x40b442
mov eax, ebx
mov edx, esi
call fcn.00404488
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40baf4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b96c
mov eax, dword [0x45c918]
cmp byte [eax], 0
je 0x40bb70
mov eax, dword [0x45c72c]
call fcn.00402e3c
call fcn.00402864
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.00408a64
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 0x40bbb8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bba6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45c6d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d664]
call fcn.004054c8
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 0x40c40c
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 0x40c4e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044cc
lea eax, [ebp - 8]
call fcn.00404944
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004048f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4cc
mov eax, ebx
call fcn.004026fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4c5
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.004048f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4af
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 0x40c4cc
mov eax, dword [ebp - 0x10]
call fcn.0040271c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4e9
lea eax, [ebp - 8]
call fcn.00404434
ret

Function at 0x40ca20
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 0x40ca84
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.004046a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408420
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca8b
lea eax, [ebp - 0xc]
call fcn.00404434
ret

Function at 0x41adbc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d884
cmp dword [edi], 0
jne 0x41ae38
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x451470
mov ecx, 2
call fcn.004028f8
mov edx, 0x41ad94
lea eax, [esi + 5]
call fcn.0041adb4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041adb4
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 0x41ae0d
mov dword [0x45d880], 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 0x41c04c
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 0x41c052
ret
Function at 0x41e494
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 0x41e4e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e4cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e4bc
jmp 0x41e4e5
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 0x41e4cd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428a1c
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 0x428968
call sub.user32.dll_EnumWindows
ret

Function at 0x428b3c
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 0x428bb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042859c
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 0x428b61
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042819c
cmp dword [ebp - 4], 0
je 0x428ba3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004048f4
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 0x428bc0
lea eax, [ebp - 4]
call fcn.00404434
ret

Function at 0x42b85c
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 [0x45db54], 0
je 0x42b9ab
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45c8b8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42b9ab
mov eax, dword [0x45db58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45db54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42b97a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45db54]
call fcn.0041426c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42b972
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42b972
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42b972
mov eax, dword [ebp - 0x14]
call fcn.004343c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42b972
push ebp
call fcn.0042b818
pop ecx
test al, al
jne 0x42b972
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42b92e
mov eax, dword [ebp - 0x14]
call fcn.00432ef0
dec eax
jle 0x42b972
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.004038f8
cmp byte [ebp - 1], 0
je 0x42b972
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42b972
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45db58]
call fcn.0042afe4
inc edi
dec ebx
jne 0x42b8c1
mov eax, dword [0x45db58]
cmp dword [eax + 8], 0
jle 0x42b992
mov eax, dword [0x45db58]
call fcn.0042b074
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b9ab
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042b680
pop ecx
test al, al
jne 0x42b9ab
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