joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bf7c
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
lea rdi, [rcx + 0x220]
mov rdx, qword [rdi]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
mov r14d, 0x104
sub eax, r14d
or eax, ecx
jge 0x14000bfbe
mov edx, r14d
mov rcx, rdi
call fcn.1400017ac
mov rdx, qword [rdi]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
test eax, eax
je 0x14000c19c
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14000bfdd
mov eax, ebp
jmp 0x14000bfee
movsxd rdx, dword [rcx - 0xc]
call fcn.1400388c8
test eax, eax
js 0x14000c1b1
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14000c1b1
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bp
mov rcx, qword [rdi]
sub rcx, 0x18
call fcn.14000148c
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
mov rsi, qword [rdi]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, r14d
or eax, ecx
jge 0x14000c041
mov edx, r14d
mov rcx, rdi
call fcn.1400017ac
mov rsi, qword [rdi]
cmp dword [rbx - 8], 1
jle 0x14000c05f
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400015b4
mov rbx, qword [rsp + 0x90]
mov r9, rsi
xor r8d, r8d
lea rdx, [0x14005c6b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop
lea rdx, [rbx - 0x18]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000c09a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14000c0a6
mov eax, ebp
jmp 0x14000c0b7
movsxd rdx, dword [rcx - 0xc]
call fcn.1400388c8
test eax, eax
js 0x14000c1b1
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14000c1b1
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bp
lea rcx, [rsp + 0x40]
call fcn.14001fd34
nop
xor r9d, r9d
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140009be4
nop
lea r9, [rsp + 0x20]
mov r8d, 0x1001
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
call fcn.1400203b0
test eax, eax
jne 0x14000c113
mov rcx, rdi
call fcn.140001534
jmp 0x14000c15f
lea r8, str.LOCALIZATION_INI
mov edx, 0x87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x40]
call fcn.140020790
nop
lea rax, vtable.CFileException.0
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000c192
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
nop
lea rcx, [rsp + 0x40]
call fcn.14001fd8c
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140001474
int3
Function at 0x14000c1e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rcx, qword [rdx]
sub rcx, 0x18
call fcn.14000148c
lea rsi, [rax + 0x18]
mov qword [rsp + 0x78], rsi
mov rdx, qword [rbx]
mov edi, 1
mov ecx, edi
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x14000c230
mov edx, 0x104
mov rcx, rbx
call fcn.1400017ac
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
lea rdx, [rsi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor esi, esi
sub eax, 1
jg 0x14000c263
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000c26f
mov eax, esi
jmp 0x14000c280
movsxd rdx, dword [rcx - 0xc]
call fcn.1400388c8
test eax, eax
js 0x14000c334
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000c334
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
lea rcx, [rsp + 0x20]
call fcn.14002161c
nop
mov rdx, qword [rbx]
cmp dword [rdx - 0x10], esi
je 0x14000c314
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.1400219f0
test eax, eax
je 0x14000c314
lea rcx, [rsp + 0x20]
call fcn.140021ce0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.140021e80
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400013f0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c308
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
lea rcx, [rsp + 0x20]
call fcn.140021974
jmp 0x14000c316
mov edi, esi
lea rcx, [rsp + 0x20]
call fcn.140021824
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001474
int3
Function at 0x14000c8f4
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.1400338b0
sub rsp, rax
mov rax, qword [0x140077698]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, r8
mov esi, edx
mov rbx, rcx
mov rcx, r8
call fcn.140001534
nop
and dword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, qword [rbx]
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x14000ca92
lea rdx, str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea rcx, [rsp + 0x30]
call fcn.1400019ac
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea r9d, [rax + 0xa]
lea r8d, [rax + 0x14]
lea rdx, [rsp + 0x38]
mov ecx, esi
call fcn.140042798
lea rcx, [rsp + 0x38]
call fcn.14003879c
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140003a24
nop
and dword [rsp + 0x20], 0
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x14000ca4f
xor edx, edx
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x14000ca4f
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x14000c9e7
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x14000ca4f
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x60]
call fcn.1400345b0
mov dword [rsp + 0x2c], 0x800
lea r9, [rsp + 0x2c]
lea r8, [rsp + 0x60]
mov edx, 1
mov ecx, dword [rsp + 0x20]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x14000ca4f
lea rcx, [rsp + 0x60]
call fcn.14003879c
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140001858
nop
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x14000ca5d
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
mov ecx, dword [rsp + 0x24]
test ecx, ecx
je 0x14000ca6b
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000ca92
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
nop
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x14000ca9f
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.140033470
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000cac4
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15, r8
mov rbx, rdx
xor r12d, r12d
mov dword [rax - 0x38], r12d
call fcn.14001269c
mov rcx, rax
test rax, rax
je 0x14000cbca
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140016c1a.0]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
lea edi, [r12 + 0x7d]
mov rbp, qword [rsp + 0x90]
add edi, edi
js 0x14000cbd5
mov rax, qword [rbx]
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edi
or edx, ecx
jge 0x14000cb4f
mov edx, edi
mov rcx, rbx
call fcn.1400017ac
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, qword [rbx]
lea r8, [0x1400578cc]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000cb81
mov eax, r12d
jmp 0x14000cb8e
movsxd rdx, dword [rcx - 0xc]
call fcn.1400388c8
test eax, eax
js 0x14000cbd5
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000cbd5
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r12w
lea eax, [rsi + 1]
cmp edi, eax
jbe 0x14000cb29
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140001474
int3
mov ecx, 0x80070057
call fcn.140001474
int3
Function at 0x14000e150
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
cmp dword [rcx + 0x1a0], 0
jne 0x14000e215
call fcn.14001269c
mov rcx, rax
test rax, rax
je 0x14000e252
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140016c1a.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8d, 0x92
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000cbe0
nop
mov r8, qword [rbx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x30]
call fcn.1400016a4
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000e1df
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14000a428
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000e215
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
cmp dword [rdi + 0x198], 0
je 0x14000e240
lea rcx, str.OS_requirement:_Unsupported_Internet_Explorer_detected.
call fcn.14003879c
mov r8d, eax
lea rdx, str.OS_requirement:_Unsupported_Internet_Explorer_detected.
lea rcx, [rdi + 0x178]
call fcn.140001858
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400102b0
mov ecx, 0x80004005
call fcn.140001474
int3
Function at 0x14001002c
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140077698]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140010097
lea rcx, str.OpenSCManager_failed
call fcn.14003879c
lea rdx, str.OpenSCManager_failed
mov r8d, eax
lea rcx, [0x1400795c8]
call fcn.140001858
lea rcx, [0x140079450]
call fcn.1400102b0
xor eax, eax
jmp 0x140010148
mov r8d, 4
lea rdx, str.MSIServer
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x1400100d3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.OpenService_failed
call fcn.14003879c
lea rdx, str.OpenService_failed
jmp 0x140010075
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140010127
lea rcx, str.QueryServiceStatusEx_failed
call fcn.14003879c
mov r8d, eax
lea rdx, str.QueryServiceStatusEx_failed
lea rcx, [0x1400795c8]
call fcn.140001858
lea rcx, [0x140079450]
call fcn.1400102b0
jmp 0x140010134
cmp dword [rsp + 0x40], 4
mov eax, 1
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140033470
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400102b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
xor r14d, r14d
cmp dword [rcx + 0x198], r14d
je 0x1400104af
mov rax, qword [0x140061d18]
cmp qword [rcx + 0x230], rax
jne 0x14001046a
call fcn.14001269c
mov rcx, rax
test rax, rax
je 0x1400104c4
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140016c1a.0]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x20], rbx
lea edx, [r14 + 1]
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov esi, 0x104
sub eax, esi
or eax, edx
jge 0x140010336
mov edx, esi
lea rcx, [rbp + 0x20]
call fcn.1400017ac
mov rbx, qword [rbp + 0x20]
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
or esi, 0xffffffff
test eax, eax
je 0x1400103ff
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400388c8
test eax, eax
js 0x1400104cf
cmp eax, dword [rbx - 0xc]
jg 0x1400104cf
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
lea rcx, str.BootStrap.log
call fcn.14003879c
mov r8d, eax
lea rdx, str.BootStrap.log
lea rcx, [rbp + 0x20]
call fcn.140003a24
xor r9d, r9d
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140009be4
nop
lea rcx, [rdi + 0x228]
mov rax, qword [rcx]
lea r9, [rbp - 0x20]
mov r8d, 0x1021
mov rdx, qword [rbp + 0x20]
mov rax, qword [rax + 0x48]
call qword [case.0x140016c1a.0]
nop
mov rdx, qword [rbp - 8]
mov edx, dword [rbp - 8]
add rdx, 0xffffffffffffffe8
test eax, eax
lea rax, vtable.CFileException.0
mov qword [rbp - 0x20], rax
mov eax, esi
jne 0x140010429
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400103fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
mov rbx, qword [rbp + 0x20]
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400104af
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
jmp 0x1400104af
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140010445
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
nop
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001046a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
lea rsi, [rdi + 0x178]
mov rdx, qword [rsi]
cmp dword [rdx - 0x10], r14d
je 0x1400104af
lea rbx, [rdi + 0x228]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xb0]
call qword [case.0x140016c1a.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x98]
call qword [case.0x140016c1a.0]
mov rcx, rsi
call fcn.140001534
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001474
nop
mov ecx, 0x80070057
call fcn.140001474
int3
Function at 0x1400107b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp dword [rcx + 0x1a0], 0
jne 0x140010811
mov r8d, 0x94
lea rdx, [rsp + 0x30]
call fcn.14000cbe0
nop
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rcx, qword [rax]
call fcn.14000a428
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140010811
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
cmp dword [rdi + 0x198], 0
je 0x14001083c
lea rcx, str.OS_requirement:_Unsupported_OS_detected.
call fcn.14003879c
mov r8d, eax
lea rdx, str.OS_requirement:_Unsupported_OS_detected.
lea rcx, [rdi + 0x178]
call fcn.140001858
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400102b0

Function at 0x140010850
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov rbx, rax
mov dword [rsp + 0x68], ecx
test rax, rax
je 0x14001089c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x68]
mov rax, rbx
call qword [case.0x140016c1a.0]
mov ecx, dword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
test ecx, ecx
je 0x1400108e1
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400108ec
lea rcx, [rsp + 0x20]
call qword [case.0x140016c1a.0]
jmp 0x1400108ec
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x50
pop rbx
ret
Function at 0x14001100c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp dword [rcx + 0x1a0], 0
jne 0x1400110df
call fcn.14001269c
mov rcx, rax
test rax, rax
je 0x140011121
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140016c1a.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8d, 0x93
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14000cbe0
nop
mov r9, qword [rbx]
mov r8, qword [rsi]
mov rdx, qword [rax]
lea rcx, [rsp + 0x30]
call fcn.1400016a4
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400110a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14000a428
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400110df
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140016c1a.0]
cmp dword [rdi + 0x198], 0
je 0x14001110a
lea rcx, str.OS_requirement:_Unsupported_OS_detected.
call fcn.14003879c
mov r8d, eax
lea rdx, str.OS_requirement:_Unsupported_OS_detected.
lea rcx, [rdi + 0x178]
call fcn.140001858
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400102b0
mov ecx, 0x80004005
call fcn.140001474
int3
Function at 0x14001112c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov rdx, r9
lea rcx, [rax - 0x28]
call fcn.1400019ac
nop
mov rax, qword [rsp + 0x60]
mov r15d, dword [rax - 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf023f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400111f0
mov r9d, dword [rsp + 0xb0]
lea eax, [r9 - 1]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x58]
cmp eax, 1
jbe 0x1400111c6
mov dword [rsp + 0x28], r15d
jmp 0x1400111ce
lea eax, [r15 + r15]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor esi, esi
test eax, eax
sete sil
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140011242
lea rcx, str.Failed_to_register_value:
call fcn.14003879c
mov r8d, eax
lea rdx, str.Failed_to_register_value:
lea rcx, [0x1400795c8]
call fcn.140001858
test rbp, rbp
jne 0x14001121b
xor eax, eax
jmp 0x140011223
mov rcx, rbp
call fcn.14003879c
mov r8d, eax
mov rdx, rbp
lea rcx, [0x1400795c8]
call fcn.140003a24
lea rcx, [0x140079450]
call fcn.1400102b0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140011268
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140016c1a.0]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140011284
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x60
lea rax, [r11 - 0x18]
xor edi, edi
mov qword [r11 - 0x28], rax
mov rbp, r8
lea rax, [r11 - 0x10]
xor r9d, r9d
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov qword [r11 - 0x38], rdi
mov rbx, rdx
mov dword [rsp + 0x28], 0xf023f
mov rsi, rcx
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400113e6
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x58]
mov r9d, 0xf023f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rsi, [0x1400795c8]
test eax, eax
jne 0x140011350
mov rcx, qword [rsp + 0x58]
lea r9d, [rdi + 4]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140011399
lea edi, [rbx + 1]
jmp 0x1400113e2
lea rcx, str.RegOpenKeyEx_Failed_for:
call fcn.14003879c
mov r8d, eax
lea rdx, str.RegOpenKeyEx_Failed_for:
mov rcx, rsi
call fcn.140001858
test rbx, rbx
jne 0x140011377
mov eax, edi
jmp 0x14001137f
mov rcx, rbx
call fcn.14003879c
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.140003a24
lea rcx, [0x140079450]
call fcn.1400102b0
lea rcx, str.Failed_to_register_DWORD_value:
call fcn.14003879c
mov r8d, eax
lea rdx, str.Failed_to_register_DWORD_value:
mov rcx, rsi
call fcn.140001858
test rbp, rbp
jne 0x1400113c0
mov eax, edi
jmp 0x1400113c8
mov rcx, rbp
call fcn.14003879c
mov r8d, eax
mov rdx, rbp
mov rcx, rsi
call fcn.140003a24
lea rcx, [0x140079450]
call fcn.1400102b0
mov eax, edi
jmp 0x140011436
lea rcx, str.RegCreateKeyEx_failed_for:
call fcn.14003879c
lea rsi, [0x1400795c8]
mov r8d, eax
mov rcx, rsi
lea rdx, str.RegCreateKeyEx_failed_for:
call fcn.140001858
test rbx, rbx
je 0x14001141a
mov rcx, rbx
call fcn.14003879c
mov edi, eax
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.140003a24
lea rcx, [0x140079450]
call fcn.1400102b0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret