joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b3b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43962c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44eca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042b200
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401dc0
movzx ecx, al
test ecx, ecx
je 0x42b52c
lea ecx, [ebp - 0x38]
call fcn.00404fc0
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042b1e0
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x42b4f8
movzx ecx, byte [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe4
add ecx, 0x20
mov dword [ebp - 0x40], ecx
push 0
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x38]
call fcn.00405050
cmp dword [ebp - 0x18], 0
je 0x42b4f8
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x42b49d
mov ecx, dword [ebp - 0x40]
push ecx
push 0
lea ecx, [ebp - 0x38]
call fcn.00405110
push eax
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042b1e0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x20], eax
jmp 0x42b4c1
mov eax, dword [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0x38]
call fcn.00405110
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042b1e0
push eax
call sub.PSAPI.DLL_GetModuleBaseNameW
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jb 0x42b4f1
mov eax, dword [ebp - 0x40]
shl eax, 1
mov dword [ebp - 0x40], eax
push 0
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00405050
cmp dword [ebp - 0x20], 0x104
jbe 0x42b4ef
mov dword [ebp - 0x18], 0
jmp 0x42b4f3
jmp 0x42b4f8
jmp 0x42b465
cmp dword [ebp - 0x20], 0
ja 0x42b505
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 1
jne 0x42b51e
push 0
lea ecx, [ebp - 0x38]
call fcn.00405110
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004027d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00405030
jmp 0x42b533
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jne 0x42b541
mov ecx, dword [ebp + 0xc]
call fcn.00403120
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042b230
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42b760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44eca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00402690
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004031d0
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403240
cmp dword [ebp - 0x14], 0
jne 0x42b7de
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.004027b0
push str.AdobeARM1.0AdobeARM.exe
mov ecx, dword [ebp + 8]
call fcn.00402810
jmp 0x42b828
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x18]
call fcn.004026b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 1
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407a90
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a90
mov eax, dword [ebp - 0x1c]
jmp 0x42b841
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a90
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x42ba10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x452d54], eax
mov ecx, dword [ebp + 0x10]
mov dword [0x452d5c], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x452d58], edx
mov dword [0x452d6c], 0
push 0
push 0
push 0
push 0x42b960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x42bb70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0x20
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 8
jae 0x42bd0d
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 8
jae 0x42bc04
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
jmp 0x42bc0e
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x94], 8
jae 0x42bc46
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x94]
movzx edx, byte [ecx]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
jmp 0x42bc50
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x98]
shr edx, 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp + edx*2 - 0x90]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xa0]
shr ecx, 4
mov edx, dword [ebp - 0x98]
and edx, 3
shl edx, 4
or ecx, edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov cx, word [ebp + ecx*2 - 0x90]
mov word [edx + eax*2], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x9c]
shr eax, 6
mov ecx, dword [ebp - 0xa0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x90]
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x9c]
and edx, 0x3f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp + edx*2 - 0x90]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x42bbaa
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, 0x3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret
Function at 0x42c400
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 [0x44eca0]
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 0x42c4d3
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 0x42c4d3
cmp dword [ebp - 0xc], 0
je 0x42c4d3
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 0x42c4d3
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 0x42c4d3
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.0042c310
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x42c4d3
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0042bb70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42c4d3
mov byte [ebp - 5], 1
cmp dword [ebp - 0xc], 0
je 0x42c4e3
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], 0
je 0x42c4f5
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.00414831
mov esp, ebp
pop ebp
ret
Function at 0x42db60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0
push 0x80
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x40000000
mov ecx, dword [ebp + 0xc]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42dc59
mov dword [ebp - 0x18], 0x100000
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00414e65
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x42dc41
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42dc41
cmp dword [ebp - 0x10], 0
jbe 0x42dc41
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42dc20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414840
add esp, 0xc
jmp 0x42dbc7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00414d88
add esp, 4
jmp 0x42dc62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42dd00
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 0x42dd40
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 0x42dd4d
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 0x42dd60
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 0x42ddf2
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 0x42ddf2
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x42de00
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 0x42de5f
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 0x42e380
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 0x42e431
push 0x208
call fcn.00414e65
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 0x42e431
mov edx, dword [ebp - 0x14]
push edx
call fcn.00414d88
add esp, 4
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00414e65
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 0x42e443
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004027d0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414d88
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 0x42e460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4396b0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
call fcn.00403120
lea ecx, [ebp - 0x10]
call fcn.004016e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004016e0
mov byte [ebp - 4], 1
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x18]
call fcn.004026b0
mov byte [ebp - 4], 2
push 0x4426fc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00402f60
add esp, 0xc
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004027f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00407a90
lea ecx, [ebp - 0x10]
call fcn.00401720
push eax
lea ecx, [ebp - 0x18]
call fcn.00403210
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.msi.dll_MsiEnumClientsA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42e5bc
push 0
lea ecx, [ebp - 0x10]
call fcn.00403210
push eax
call sub.msi.dll_MsiViewModify
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42e5bc
lea ecx, [ebp - 0x14]
call fcn.00401720
push eax
lea ecx, [ebp - 0x10]
call fcn.00403210
push eax
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42e5bc
mov dword [ebp - 0x20], 0x104
push 0x104
push 0
lea edx, [ebp - 0x22c]
push edx
call fcn.00414840
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push 1
lea ecx, [ebp - 0x14]
call fcn.00403210
push eax
call sub.msi.dll_MsiRecordSetStreamA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42e5bc
lea edx, [ebp - 0x22c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004027d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00407a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401700
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret
Function at 0x42e610
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.004026b0
lea ecx, [ebp - 0xc]
call fcn.004031f0
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 0x42e6c1
cmp dword [ebp + 0x18], 1
je 0x42e667
cmp dword [ebp + 0x18], 2
jne 0x42e691
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 0x42e6b7
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.00407a90
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x42ee30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439ab4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44eca0]
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.00402690
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403120
mov eax, dword [ebp + 0x14]
push eax
call fcn.00401d70
add esp, 4
test eax, eax
jne 0x42eeb6
push str.Localization_file_missing:
lea ecx, [ebp - 0x18]
call fcn.004026b0
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 1
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407a90
jmp 0x42eefc
mov ecx, dword [ebp + 0x14]
call fcn.00403210
push eax
push 0xff
push 0xff
lea ecx, [ebp - 0x10]
call fcn.004031d0
push eax
push 0x44267c
mov ecx, dword [ebp + 0x10]
call fcn.00403210
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403240
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408060
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a90
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 0x42fcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.GetPrimaryTokenFromExplorer:
lea ecx, [ebp - 0x22c]
call fcn.004026b0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 2
call fcn.004381a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00407a90
lea ecx, [ebp - 0x10]
call fcn.00402690
mov dword [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.00414840
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x42fd79
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004027d0
push 0x4461e0
lea ecx, [ebp - 0x10]
call fcn.00402810
jmp 0x42fde3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
push 0x4461fc
lea ecx, [ebp - 0x230]
call fcn.004026b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x230]
push eax
push 1
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00407a90
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a90
mov eax, dword [ebp - 0x234]
jmp 0x42fe19
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f570
add esp, 0xc
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a90
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret