joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427bb0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43fc54]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 5], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x10
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x427c83
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x427c83
cmp dword [ebp - 0xc], 0
je 0x427c83
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x427c83
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x427c83
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00427ac0
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x427c83
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00427340
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427c83
mov byte [ebp - 5], 1
cmp dword [ebp - 0xc], 0
je 0x427c93
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], 0
je 0x427ca5
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410c05
mov esp, ebp
pop ebp
ret
Function at 0x4288e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x428920
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42892d
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x428940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4289d2
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x4289d2
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4289e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x428a3f
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4290a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x429151
push 0x208
call fcn.00410fb8
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x429151
mov edx, dword [ebp - 0x14]
push edx
call fcn.00410edb
add esp, 4
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00410fb8
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x429163
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00402780
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00410edb
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x429180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f93a
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x43fc54]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4291ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x438c70
push 0x438c78
call fcn.00428bf0
add esp, 0xc
mov eax, 1
jmp 0x4293d4
mov dword [ebp - 0x24c], 0x22c
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42922b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x438c74
push 0x438cb8
call fcn.00428bf0
add esp, 0xc
mov eax, 1
jmp 0x4293d4
push str.explorer.exe
lea ecx, [ebp - 0x46c]
call fcn.00402640
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
mov dword [ebp - 0x478], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x470]
call fcn.00402640
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x478]
push ecx
mov edx, dword [ebp - 0x47c]
push edx
call fcn.00402eb0
add esp, 8
mov byte [ebp - 0x465], al
lea ecx, [ebp - 0x470]
call fcn.00402740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x46c]
call fcn.00402740
movzx eax, byte [ebp - 0x465]
test eax, eax
je 0x4293b6
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x258]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x4292ec
cmp dword [ebp - 0x254], 0xffffffff
jne 0x4292f7
mov eax, dword [ebp - 0x250]
jmp 0x4293d4
lea eax, [ebp - 0x14]
push eax
push 8
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4293a9
xor edx, edx
mov word [ebp - 0x45c], dx
push 0x1fe
push 0
lea eax, [ebp - 0x45a]
push eax
call fcn.00411600
add esp, 0xc
push 0x100
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411600
add esp, 0xc
mov dword [ebp - 0x460], 0x100
mov dword [ebp - 0x464], 0x100
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x460]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00428770
add esp, 0x14
test eax, eax
je 0x42939f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4293d4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42922b
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00410c05
mov esp, ebp
pop ebp
ret
Function at 0x429920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402640
lea ecx, [ebp - 0xc]
call fcn.00402fc0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4299d1
cmp dword [ebp + 0x18], 1
je 0x429977
cmp dword [ebp + 0x18], 2
jne 0x4299a1
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4299c7
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xc]
call fcn.00402740
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4299f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fbc9
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x43fc54]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x234]
call fcn.0042ea70
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x240]
call fcn.00402640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00402740
lea ecx, [ebp - 0x234]
call fcn.00401e60
test eax, eax
jne 0x429a87
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0042ea50
jmp 0x429c77
lea ecx, [ebp - 0x234]
call fcn.00401e30
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x429aad
mov dword [ebp - 0x248], 0x443c48
jmp 0x429ab7
mov dword [ebp - 0x248], 0x443c4c
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x238]
call fcn.00402620
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.00402600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x234]
call fcn.0042ef30
lea ecx, [ebp - 0x228]
call fcn.00402600
mov byte [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x228]
call fcn.00402fa0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.00403000
push 0x438324
lea ecx, [ebp - 0x228]
call fcn.004027c0
mov dword [ebp - 0x10], 0x104
xor edx, edx
mov word [ebp - 0x224], dx
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00411600
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.004016d0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0x438338
lea ecx, [ebp - 0x23c]
call fcn.004016d0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004016d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402640
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00402fe0
movzx ecx, al
test ecx, ecx
je 0x429bcd
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402760
cmp dword [ebp - 0x22c], 0
je 0x429bf0
mov ecx, 0x443c40
call fcn.004016d0
push eax
push 0x43833c
lea ecx, [ebp - 0x14]
call fcn.004028c0
jmp 0x429c08
mov ecx, 0x443c44
call fcn.004016d0
push eax
push 0x438364
lea ecx, [ebp - 0x14]
call fcn.004028c0
push 0
lea ecx, [ebp - 0x238]
call fcn.004016d0
push eax
lea ecx, [ebp - 0x14]
call fcn.004016d0
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00402740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.00402740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.00402740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00402740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0042ea50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00410c05
mov esp, ebp
pop ebp
ret
Function at 0x42a160
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc8d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x43fc54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.00402600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402ef0
mov eax, dword [ebp + 0x14]
push eax
call fcn.00401d30
add esp, 4
test eax, eax
jne 0x42a1e6
push str.Localization_file_missing:
lea ecx, [ebp - 0x18]
call fcn.00402640
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 1
call fcn.0042e380
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402740
jmp 0x42a22c
mov ecx, dword [ebp + 0x14]
call fcn.004016d0
push eax
push 0xff
push 0xff
lea ecx, [ebp - 0x10]
call fcn.00402fa0
push eax
push 0x436318
mov ecx, dword [ebp + 0x10]
call fcn.004016d0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004016d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403000
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402620
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42c850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430207
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x43fc54]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00411600
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42c8cb
mov dword [ebp - 0x134], 0x114
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42c926
cmp dword [ebp - 0x130], 6
jne 0x42c926
cmp dword [ebp - 0x12c], 2
jne 0x42c926
push str.IsWin8WinServer2012_returns_1
lea ecx, [ebp - 0x138]
call fcn.00402640
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x138]
push eax
push 2
call fcn.0042e9d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00402740
mov eax, 1
jmp 0x42c928
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410c05
mov esp, ebp
pop ebp
ret

Function at 0x42c950
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43023a
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x43fc54]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00411600
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42c9cb
mov dword [ebp - 0x134], 0x114
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42ca26
cmp dword [ebp - 0x130], 5
jne 0x42ca26
cmp dword [ebp - 0x12c], 0
jne 0x42ca26
push str.IsWin2K_returns_1
lea ecx, [ebp - 0x138]
call fcn.00402640
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x138]
push eax
push 2
call fcn.0042e9d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00402740
mov eax, 1
jmp 0x42ca28
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410c05
mov esp, ebp
pop ebp
ret
Function at 0x42e210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov byte [0x443c24], 1
mov dword [0x443c20], 1
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, 0x443c80
call fcn.004016d0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42e296
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, 0x443c84
call fcn.004016d0
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x42e2ac
cmp dword [ebp - 0xc], 1
jne 0x42e2ac
mov dword [0x443c20], 2
mov esp, ebp
pop ebp
ret
Function at 0x100026e8
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.10003768
test esi, esi
jne 0x1000271e
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.1000382c
jmp 0x1000273c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.100025fc
mov edi, eax
test esi, esi
je 0x1000273c
cmp dword [ebx], 0
je 0x1000273c
dec esi
jmp 0x10002725
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x10002bf8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x10006008], 0x8088405
inc edx
mov dword [ebx + 0x10006008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x10002f0c
Capabilities:
Query or enumerate registry value

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

Function at 0x100035ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x10007034], 0
je 0x1000364d
cmp word [0x10007208], 0xd7b2
jne 0x10003615
cmp dword [0x10007210], 0
jbe 0x10003615
mov eax, 0x10007204
call dword [0x10007220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1000605c
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 0x10003674
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x1000601c], 0
jne 0x10003669
push 0
push 0x10006054
push 0x1000605c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x10003c88
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 0x10003cee
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.10003868
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.10002c80
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x10003cd8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10003cf5
lea eax, [ebp - 0x10]
call fcn.10003768
ret
Function at 0x100040bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.10003a70
xor eax, eax
push ebp
push 0x10004132
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.10003880
mov esi, eax
test esi, esi
jle 0x10004111
mov ebx, 1
lea eax, [ebp - 4]
call fcn.10003ad0
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
inc edi
inc ebx
dec esi
jne 0x100040f6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.100037bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10004139
lea eax, [ebp - 4]
call fcn.10003768
ret

Function at 0x10004140
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], edx
mov dword [esp], eax
push 0x100041e4
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x100041f4
push ebx
call sub.kernel32.dll_GetProcAddress
mov edi, eax
push 0x10004204
push ebx
call sub.kernel32.dll_GetProcAddress
mov esi, eax
push 0x10004214
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 8], eax
push 0x10004224
push ebx
call sub.kernel32.dll_GetProcAddress
mov ebp, eax
push 0x10004234
push ebx
call sub.kernel32.dll_GetProcAddress
push 0xa
mov edx, dword [esp + 8]
push edx
mov edx, dword [0x10007650]
push edx
call eax
mov ebx, eax
nop
nop
nop
push ebx
mov eax, dword [0x10007650]
push eax
call edi
mov edx, dword [esp]
mov dword [edx], eax
push ebx
mov eax, dword [0x10007650]
push eax
call esi
mov ebx, eax
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x100041d7
push ebx
call dword [esp + 0xc]
mov eax, esi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10004c30
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffd0
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x10004ca4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x10004c96
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
add esp, 0x30
ret