Function at 0x18000154c
Capabilities:
Create process on windows
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
xor ebp, ebp
mov r15, r8
lea rcx, [rsp + 0x50]
lea r8d, [rbp + 0x2c]
xor edx, edx
mov r14d, r9d
mov qword [rsp + 0x48], rbp
call sub.ntdll.dll_memset
mov eax, dword [0x18000f5cc]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], eax
mov rdi, rbp
mov r13d, ebp
lea rsi, [0x18000f640]
mov ebx, ebp
lea r12d, [rbp + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180003e60
cmp eax, ebp
je 0x1800015f5
mov rcx, qword [rsp + 0x38]
mov edx, 0xd
call fcn.18000554c
cmp rax, rbp
je 0x1800015e1
add ebx, 1
mov qword [rsi], rax
add rsi, r12
cmp ebx, 3
jae 0x1800015f8
jmp 0x1800015aa
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x18000f5b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, 3
jne 0x180001c10
lea rdx, [0x180011459]
lea rcx, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
call fcn.180003ab4
cmp rax, rbp
mov qword [0x18000f638], rax
je 0x180001c10
lea rdx, [0x180011578]
lea rcx, [rsp + 0x34]
mov r9d, 1
xor r8d, r8d
call fcn.180003ab4
cmp rax, rbp
mov qword [0x18000ff60], rax
je 0x180001c10
xor edx, edx
mov r8, rax
lea ebx, [rdx + 4]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp rax, rbp
mov rsi, rax
je 0x1800016fd
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp rax, rbp
mov rbx, rax
je 0x1800016f4
lea rdx, [rsp + 0x80]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, rbp
je 0x1800016e9
cmp qword [rsp + 0x98], 0x10
jbe 0x1800016e9
cmp dword [rbx], ebp
je 0x1800016b8
lea rdi, [rbx + 0x10]
cmp dword [rbx + 8], ebp
je 0x1800016d6
mov eax, dword [rbx + 4]
mov ecx, dword [rbx]
add rax, rbx
lea rcx, [rcx + rax + 0x10]
mov qword [rsp + 0x70], rcx
mov eax, dword [rbx + 8]
mov dword [rsp + 0x78], eax
cmp dword [rbx + 4], ebp
je 0x1800016f4
mov eax, dword [rbx]
lea rcx, [rax + rbx + 0x10]
mov qword [rsp + 0x50], rcx
jmp 0x1800016f4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 5
xor esi, esi
mov dword [rsp + 0x34], 1
cmp byte [0x18000f5c4], bl
mov ebp, 0x2000
jbe 0x180001854
lea r8, [rsp + 0x40]
mov edx, 0x20008
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x180001803
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9d, [rbx - 1]
lea r8, [rsp + 0x34]
lea edx, [rbx + 0xf]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x14]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11d, dword [rsp + 0x30]
cmp r11d, esi
je 0x1800017f8
mov rcx, qword [0x18000f5b0]
mov r8, r11
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x1800017f6
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x14]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800017e4
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov cl, byte [rax]
sub cl, 1
movzx edx, cl
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebp, dword [rax]
mov rcx, qword [0x18000f5b0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x34], esi
jne 0x180001854
cmp ebp, 0x1000
jne 0x180001854
mov ecx, dword [0x18000f5c0]
call fcn.1800036a0
cmp eax, esi
mov r13d, eax
jne 0x180001854
cmp rdi, rsi
jne 0x180001842
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.180004368
cmp rax, rsi
mov rdi, rax
je 0x1800019c3
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.180004490
jmp 0x1800019c3
cmp rdi, rsi
jne 0x180001904
mov rcx, qword [0x18000f5b8]
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x80]
mov r9d, 0x30
xor edx, edx
mov qword [rsp + 0x20], rax
mov rdi, rsi
call qword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
cmp eax, esi
jl 0x1800018ff
mov r8d, dword [rsp + 0xa8]
cmp r8d, esi
je 0x1800018ff
xor edx, edx
mov ecx, 0x418
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, rsi
mov rbx, rax
je 0x1800018ff
mov rcx, qword [0x18000f5b0]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rsi
mov rdi, rax
je 0x1800018f6
mov r9d, 0x800
mov r8, rax
xor edx, edx
mov rcx, rbx
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp eax, esi
jne 0x1800018f6
mov rcx, qword [0x18000f5b0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, rsi
je 0x180001926
cmp dword [rsp + 0x78], esi
jne 0x180001926
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180004fb0
cmp eax, esi
mov ebx, eax
jne 0x180001c13
mov ebx, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov r8d, dword [0x18000f5cc]
mov edx, ebx
mov rcx, rsi
mov r9d, 1
call fcn.180007160
mov r8d, dword [0x18000f5cc]
mov r9d, 1
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x68], ebx
call fcn.180007160
mov rcx, qword [0x18000f648]
xor esi, esi
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x6c], r14d
cmp qword [rsp + 0x50], rsi
lea rdx, [0x180011510]
jne 0x180001995
lea rdx, [0x1800114c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rsp + 0x48]
lea r9, [fcn.180004640]
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.180004b9c
mov ebx, eax
cmp rdi, rsi
je 0x1800019d0
mov rcx, rdi
call fcn.180003d00
cmp ebx, esi
jne 0x180001c13
cmp r13d, esi
je 0x180001a6b
mov rdx, qword [0x18000f638]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, esi
jne 0x180001a6b
mov eax, dword [rsp + 0x68]
cmp eax, esi
je 0x180001a2f
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
lea rdx, [0x1800114ae]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rsp + 0x6c]
cmp eax, esi
je 0x180001a60
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
lea rdx, [0x1800114b7]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x48]
je 0x180001abb
mov dx, 0x20
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, rsi
je 0x180001a8d
mov word [rax], si
add rax, 2
mov r8, qword [rsp + 0x48]
lea rdx, [0x180011130]
mov r9, rax
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp eax, 0x20
cmovg ebx, esi
jmp 0x180001c13
mov edx, 0x104
call fcn.1800054c0
cmp rax, rsi
mov rbx, rax
je 0x180001c10
mov rcx, rax
call qword [sym.imp.SHELL32.dll_PathGetShortPath]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.180005200
xor r13d, r13d
cmp rax, r13
mov rsi, rax
je 0x180001bfe
mov rcx, qword [0x18000f5b0]
lea r8d, [rdi + 0xb]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
mov rdi, rax
je 0x180001bec
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x18001114f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r9, [0x18000d44c]
lea rdx, [0x180011506]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [0x18000f5b0]
xor edx, edx
mov r8d, 0x30c
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
mov rbp, rax
je 0x180001bda
mov r8d, dword [0x18000f5a8]
lea rdx, [0x180011587]
mov rcx, rax
imul r8d, r8d, 0x19660d
add r8d, 0x3c6ef35f
mov dword [0x18000f5a8], r8d
shr r8d, 1
mov r9d, r8d
not r9d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r8d
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9, rdi
mov rdx, rbp
mov rcx, rsi
mov r8d, eax
mov dword [rsp + 0x20], r13d
call fcn.180003bf4
mov rcx, qword [0x18000f5b0]
mov r8, rbp
xor edx, edx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18000f5b0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18000f5b0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18000f5b0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, r12d
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret