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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x214]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x44b7b5
lea ecx, [esi + 0x224]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x220]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7d0
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44b79c
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x44b79f
xor ebx, ebx
inc ebx
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
jne 0x44b7b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x44b7be
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x218]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x44b827
lea ecx, [esi + 0x224]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x21c]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x7d0
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44b80e
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x44b811
xor ebx, ebx
inc ebx
push dword [esi + 0x238]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
jne 0x44b827
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x4525b6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
push 7
pop ebx
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.0045292e
movzx ecx, byte [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
shl edx, 0x1c
or ecx, edx
or ecx, 0x8000000
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.00452953
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
and ecx, ebx
or ecx, 0xffffffa0
shl ecx, 8
or ecx, dword [ebp + 0x10]
shl ecx, 0x10
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 4
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.00452953
mov dword [ebp + 8], 0x186a0
mov edi, 0x10000000
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x24]
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.0045292e
mov eax, dword [ebp - 4]
test edi, eax
jne 0x45269a
test eax, 0xa0000000
jne 0x45269f
dec dword [ebp + 8]
jns 0x452667
mov ecx, eax
and ecx, 0xa0000000
cmp ecx, 0x80000000
je 0x45278b
mov dword [ebp + 8], 0x3e8
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.0045292e
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x20]
xor ecx, 0x8000000
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.00452953
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x24]
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.0045292e
mov eax, dword [ebp - 4]
and eax, 0xb0000000
cmp eax, edi
je 0x45274c
dec dword [ebp + 8]
jns 0x4526ba
mov dword [ebp + 8], 0x3e8
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x24]
mov ecx, eax
shr ecx, 8
and ecx, ebx
shr eax, 0xb
push ecx
and eax, 0x1f
push eax
movzx eax, byte [esi + 0x22]
push eax
mov ecx, esi
call fcn.0045292e
mov eax, dword [ebp - 4]
test edi, eax
jne 0x452786
test eax, 0xa0000000
jne 0x45278b
dec dword [ebp + 8]
jns 0x452753
mov ecx, eax
pop edi
and ecx, 0xa0000000
pop esi
pop ebx
cmp ecx, 0x80000000
jne 0x4527b0
mov ecx, dword [ebp + 0x18]
mov byte [ecx], al
mov ecx, dword [ebp + 0x14]
shr eax, 8
mov byte [ecx], al
xor eax, eax
inc eax
jmp 0x4527b2
xor eax, eax
leave
ret 0x14
Function at 0x454033
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x4540ca
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4540ca
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
test eax, eax
jbe 0x4540c3
push eax
call fcn.006484ac
mov esi, eax
pop ecx
test esi, esi
jne 0x454072
mov eax, 0x8007000e
jmp 0x4540cf
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4540bc
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x768238
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4540bc
mov eax, dword [ebp + 8]
test eax, eax
je 0x4540bc
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.00647fb5
pop ecx
xor eax, eax
jmp 0x4540cf
push esi
call fcn.00647fb5
pop ecx
mov eax, 0x80004005
jmp 0x4540cf
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x45560a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
push reloc.OLEAUT32.dll_SysReAllocString
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455672
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.EnableFirewall
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x455663
cmp dword [ebp - 0xc], 4
jne 0x455663
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
je 0x455672
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x455700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.HTTP_shellopencommand
push SysReAllocStringLen
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45572e
xor eax, eax
jmp 0x455781
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, 0x74be50
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x45576e
cmp dword [ebp - 8], 1
jne 0x45576e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x45577e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret

Function at 0x466d1a
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0x108]
test ecx, ecx
jne 0x466d29
xor eax, eax
ret 4
jmp fcn.0044b74c

Function at 0x46f630
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x46f6ab
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.0068cfcb
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x46f667
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x46f67e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.0068cfcb
add esp, 4
test eax, eax
jbe 0x46f6ab
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.0068cfcb
add esp, 4
cmp esi, eax
jb 0x46f690
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x515587
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5155e2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5155d3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x5155cf
cmp esi, ecx
jae 0x5155d3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x5155bd
cmp esi, ecx
jb 0x5155d7
xor eax, eax
jmp 0x5155e1
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x515fcc
Capabilities:
Create process on windows

Disassembly:
push 0x264
mov eax, 0x6c6f69
call fcn.00648b50
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
and dword [ebp - 0x230], 0
xor ebx, ebx
mov edi, eax
inc ebx
call fcn.00517e4a
test al, al
je 0x516124
lea ecx, [ebp - 0x230]
call fcn.00515f59
test eax, eax
js 0x516124
cmp dword [ebp - 0x230], 0
jne 0x516124
push esi
lea ecx, [ebp - 0x230]
call fcn.00515719
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x230]
cmp dword [eax - 0xc], 0
je 0x516055
mov esi, 0x74b614
mov ecx, esi
call fcn.0051545a
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00517d9c
mov esi, 0x74b618
mov ecx, esi
call fcn.0051545a
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00517d9c
lea edx, [ebp - 0x230]
call fcn.0051619f
test al, al
jne 0x516114
lea ecx, [ebp - 0x234]
call fcn.00515f02
test eax, eax
js 0x516116
cmp dword [ebp - 0x234], ebx
je 0x516116
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.0066f220
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x260], eax
add esp, 0xc
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x26c], ecx
push eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], str.runas
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor bl, bl
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
test edi, edi
js 0x51612e
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
call fcn.00648afa
ret
Function at 0x516136
Capabilities:
Get session information
Get session user name

Disassembly:
push 0x10
mov eax, 0x6c6faa
call fcn.00648b1c
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call fcn.00515e26
push eax
mov ecx, esi
call fcn.00515c3a
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 5
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x516197
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00515b9f
push dword [ebp - 0x10]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, esi
call fcn.00648ae5
ret

Function at 0x51648f
Capabilities:
Get file version info

Disassembly:
push 0x234
mov eax, 0x6c709b
call fcn.00648b50
mov edi, ecx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x238], edi
and dword [ebp - 4], 0
call fcn.00516399
mov byte [ebp - 4], 1
lea esi, [edi + 4]
call fcn.00515e26
push eax
mov ecx, esi
call fcn.00515c3a
mov byte [ebp - 4], 2
call fcn.00515e26
push eax
lea ecx, [edi + 8]
call fcn.00515c3a
push edi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.005154cf
push dword [esi]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea ecx, [ebp - 0x22c]
call fcn.0051545a
push eax
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
call fcn.00515b15
lea eax, [ebp - 0x234]
push eax
push dword [edi]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x51658e
push ebx
call fcn.006484f2
mov esi, eax
pop ecx
mov dword [ebp - 0x23c], esi
push esi
push ebx
mov byte [ebp - 4], 4
push dword [ebp - 0x234]
push dword [edi]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x741508
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x230]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [edi + 8]
push str._d._02d._03d
push eax
call fcn.0051647b
push esi
call fcn.006484ed
add esp, 0x18
mov eax, edi
call fcn.00648afa
ret 4

Function at 0x517e4a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
xor ebx, ebx
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0066f220
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x517e9a
cmp dword [ebp - 0x114], 6
jb 0x517e9a
inc ebx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00647fba
mov esp, ebp
pop ebp
ret
Function at 0x519ac4
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x6c7b4c
call fcn.00648b1c
lea eax, [ebp - 0x14]
push eax
call fcn.00518cbc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00515719
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x519b31
lea eax, [ebp - 0x18]
push eax
call fcn.005193cc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.005154cf
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
test esi, esi
setne al
call fcn.00648ae5
ret

Function at 0x51d9e7
Capabilities:
Read .ini file

Disassembly:
push 0x44
mov eax, 0x6c83fe
call fcn.00648b50
mov ebx, ecx
call fcn.00518160
mov al, byte [eax + 0x35]
test al, al
je 0x51da49
lea eax, [ebp - 0x3c]
push eax
call fcn.00518160
mov ecx, eax
call fcn.005340d9
and dword [ebp - 4], 0
mov esi, dword [eax]
call fcn.00518160
push esi
push 9
lea eax, [ebp - 0x28]
push eax
push str.00000000
push str.UpdateKey
push str.SoftwarePiriformSpeccy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
jmp 0x51dab6
xor esi, esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 1
call fcn.00518160
push 0x20019
push str.SoftwarePiriformSpeccy
push SysReAllocStringLen
lea ecx, [ebp - 0x48]
call fcn.0051e4ac
lea ecx, [ebp - 0x48]
test eax, eax
je 0x51da8d
mov dword [ebx], esi
mov dword [ebx + 4], esi
call fcn.0051e50a
jmp 0x51db56
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x12
push eax
lea eax, [ebp - 0x28]
push eax
push str.UpdateKey
call fcn.0051e3d6
lea ecx, [ebp - 0x48]
test eax, eax
jne 0x51da7e
or dword [ebp - 4], 0xffffffff
call fcn.0051e50a
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00515e26
push eax
push 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00515360
mov esi, dword [ebp - 0x3c]
push esi
call fcn.0067ca08
pop ecx
lea ecx, [esi - 0x10]
mov word [ebp - 0x38], ax
call fcn.00515ed6
call fcn.00515e26
push eax
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00515360
mov esi, dword [ebp - 0x3c]
push esi
call fcn.0067ca08
pop ecx
lea ecx, [esi - 0x10]
mov word [ebp - 0x36], ax
call fcn.00515ed6
call fcn.00515e26
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00515360
mov esi, dword [ebp - 0x3c]
push esi
call fcn.0067ca08
pop ecx
lea ecx, [esi - 0x10]
mov word [ebp - 0x32], ax
call fcn.00515ed6
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x50]
mov dword [ebx], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 4], eax
mov eax, ebx
call fcn.00648afa
ret
Function at 0x51e12b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push 1
push ecx
push ecx
push dword [eax]
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4

Function at 0x51e38e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x51e3a0
push 0xd
pop eax
jmp 0x51e3d1
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51e3a9
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x522286
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x5222d2
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x5222fd
shr ecx, 2
test cl, 1
je 0x522305
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x522334
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x522334
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x529e3f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
cmp eax, 0x27
ja 0x529e92
je 0x529e8e
sub eax, 0x21
je 0x529e8a
sub eax, 1
je 0x529e86
sub eax, 1
je 0x529e82
sub eax, 1
je 0x529e79
sub eax, 1
je 0x529e75
sub eax, 1
jne 0x529eab
push eax
jmp 0x529ef5
push 0
jmp 0x529e7b
push 6
call fcn.00529f30
jmp 0x529efa
push 7
jmp 0x529e7b
push 3
jmp 0x529ef5
push 2
jmp 0x529ef5
push 1
jmp 0x529e7b
sub eax, 0x28
je 0x529ef3
sub eax, 5
je 0x529ec3
sub eax, 0x16
je 0x529ec3
sub eax, 0x20
je 0x529ec3
sub eax, 0x43
je 0x529eb1
and dword [esi + 0x24], 0
jmp 0x529efa
lea ecx, [esi + 0x120]
cmp dword [ecx], 0
je 0x529efa
call fcn.0051c4cb
jmp 0x529efa
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ebx, 0x8000
test bx, ax
je 0x529efa
push 0x12
call edi
test bx, ax
jne 0x529efa
push 0x10
call edi
test bx, ax
jne 0x529efa
lea ecx, [esi + 0x30]
call fcn.0052c9ff
jmp 0x529efa
push 1
call fcn.00529f06
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x52c195
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x8c], ebx
je 0x52c1ea
push ebx
push ebx
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x8c]
push 0xb
pop eax
sub eax, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
push 0xd
pop eax
sub eax, dword [ebp + 8]
push eax
call dword [edx + 0x1c]
push ebx
push 1
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x85
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop ebx
pop ebp
ret 8

Function at 0x52f806
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c87a2
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x81c5a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x74]
call fcn.0059eb1f
lea ecx, [esi + 0x64]
call fcn.0059eb1f
lea ecx, [esi + 0x54]
call fcn.0059eb1f
lea ecx, [esi + 0x44]
call fcn.0059eb1f
lea ecx, [esi + 0x34]
call fcn.0059eb1f
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x52f863
call fcn.0051578b
lea ecx, [esi + 8]
mov dword [ebp - 4], 1
call fcn.0051f634
push 0x88
push esi
call fcn.006484df
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x533872
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100], 0
jne 0x5338b4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x533993
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x100], eax
test eax, eax
jne 0x5338b4
push 0x74ccc8
push 0x190
call fcn.00519db0
mov ecx, eax
call fcn.0051d539
pop esi
ret
Function at 0x533cce
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x6cabd7
call fcn.00648b1c
mov ebx, ecx
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
call fcn.00515e26
push eax
mov ecx, ebx
call fcn.00515c3a
mov byte [ebp - 4], 1
call fcn.00515e26
push eax
lea ecx, [ebx + 4]
call fcn.00515c3a
mov byte [ebp - 4], 2
call fcn.00515e26
push eax
lea ecx, [ebx + 0x14]
call fcn.00515c3a
mov byte [ebp - 4], 3
xor eax, eax
or dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x34], al
mov dword [ebx + 0x38], eax
mov word [ebx + 0x68], ax
mov byte [ebx + 0x6a], 1
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x27c], 1
call fcn.00515e26
push eax
lea ecx, [ebx + 0x280]
call fcn.00515c3a
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
mov byte [ebx + 0x284], 0
call fcn.0051636a
mov ecx, eax
call fcn.00534e14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00515719
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
xor eax, eax
lea ecx, [ebp - 0x10]
mov word [ebx + 0x40], ax
mov word [ebx + 0x78], ax
call fcn.00526949
push str.Speccy.ini
lea ecx, [ebp - 0x10]
call fcn.00519dde
push dword [ebp - 0x10]
lea ecx, [ebx + 0x14]
call fcn.00515b9f
push dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
lea ecx, [ebp - 0x10]
setne al
mov byte [ebx + 0x35], al
call fcn.00526949
push str.portable.dat
lea ecx, [ebp - 0x10]
call fcn.00519dde
push dword [ebp - 0x10]
call esi
test eax, eax
setne al
cmp byte [ebx + 0x35], 0
mov byte [ebx + 0x36], al
jne 0x533dfb
test al, al
jne 0x533dfb
xor eax, eax
jmp 0x533dfe
xor eax, eax
inc eax
mov byte [ebx + 0x35], al
mov byte [ebx + 0x285], 0
test al, al
jne 0x533e11
call fcn.00533f7c
push str.check_branding_dll
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.0053407b
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
mov eax, ebx
call fcn.00648ae5
ret 4