Function at 0x140031ac4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x328]
sub rsp, 0x410
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x300], rax
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
cmp dword [rcx + 0x128], r15d
je 0x140031ed5
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x140031ed5
cmp dword [rdi + 0x124], r15d
je 0x140031eb9
cmp dword [rdi + 0x12c], r15d
je 0x140031eb9
call fcn.14001ab20
test eax, eax
je 0x140031eb9
mov rcx, qword [rdi + 0x78]
lea r9d, [r15 + 1]
mov edx, r9d
xor r8d, r8d
call fcn.14001e894
mov ebx, eax
test eax, eax
jns 0x140031b76
mov rcx, qword [rdi + 0x78]
lea r9d, [r15 + 1]
mov r8d, r9d
xor edx, edx
call fcn.14001e894
mov ebx, eax
test eax, eax
js 0x140031ecb
mov r8, qword [rdi + 0x78]
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x38], r15
mov r12d, 0x105
mov qword [rsp + 0x30], r15
or r9d, 0xffffffff
mov dword [rsp + 0x28], r12d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov r9, rdi
lea r8, [0x14002e6f0]
xor edx, edx
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SETUPAPI.dll_SetupIterateCabinetA]
nop dword [rax + rax]
test eax, eax
je 0x140031e7b
mov r8, qword [rdi + 0x78]
lea rdx, str._Cab_extraction_succeeded_for__S._r_n
mov ecx, 4
call fcn.140019b1c
cmp dword [rdi + 0x134], r15d
je 0x140031e68
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140031eb5
cmp r15w, word [rax]
je 0x140031eb5
lea rdx, str..exe
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140031dbe
mov rax, qword [rdi + 0x88]
lea r8, str.__s_s_
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x20]
mov edx, r12d
mov qword [rsp + 0x20], rax
call fcn.140010e44
test eax, eax
js 0x140031eb5
mov ebx, 0x70
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rdi + 0x90]
lea r9, [0x1400486c8]
mov rax, qword [rbp - 0x70]
lea r8, [rbp - 0x20]
test rcx, rcx
mov dword [rsp + 0x74], 0x40
lea rdx, str.Executing:__S__S._r_n
mov dword [rsp + 0x70], ebx
cmovne rax, rcx
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x70], rax
cmovne r9, rcx
mov rax, qword [0x14005a748]
lea ecx, [rbx - 0x6c]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x78], rax
mov rax, qword [rdi + 0x80]
mov qword [rbp - 0x68], rax
call fcn.140019b1c
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop dword [rax + rax]
test eax, eax
je 0x140031d83
mov r12d, 0x14
mov ebx, r15d
mov ecx, r12d
mov r14d, 0x1f4
call fcn.14001923c
xor ecx, ecx
call fcn.140019314
mov edx, r14d
jmp 0x140031d44
cmp ebx, r12d
je 0x140031d31
mov ecx, ebx
call fcn.140018f5c
inc ebx
lea eax, [r14 + 0x12c]
cmp ebx, 0xe
cmovbe eax, r14d
mov r14d, eax
mov edx, eax
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
je 0x140031d23
mov ecx, r12d
call fcn.140018f5c
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp qword [rbp - 0x58], 0x20
mov ebx, 0x80004005
cmova ebx, r15d
jmp 0x140031da5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140031d9a
lea ebx, [rax + 0x57]
jmp 0x140031d9c
jle 0x140031da5
movzx ebx, bx
or ebx, 0x80070000
mov r8d, ebx
lea rdx, str._Service_install_returned_0x_x._r_n
mov ecx, 4
call fcn.140019b1c
jmp 0x140031eb5
lea rdx, str..inf
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140031e5f
mov rax, qword [rdi + 0x88]
lea r8, str._s_s
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov rdx, r12
mov dword [rsp + 0x60], 0x2a
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
call fcn.140010e44
test eax, eax
js 0x140031e53
xor r9d, r9d
lea r8, str.DefaultInstall
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.140039a8c
mov r9d, eax
lea r8, [rbp - 0x20]
lea rdx, str._Install_for__S_returned_0x_x._r_n
mov ecx, 4
mov ebx, eax
call fcn.140019b1c
lea rcx, [rsp + 0x40]
call fcn.140038aac
jmp 0x140031eb5
lea rdx, str.ERROR:_Unknown_install_type_in_Service_provider_install._r_n
jmp 0x140031e6f
lea rdx, str.ERROR:_Install_files_were_not_available._r_n
mov ecx, 2
call fcn.140019ae0
jmp 0x140031eb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140031e92
lea ebx, [rax + 0x57]
jmp 0x140031e94
jle 0x140031e9d
movzx ebx, bx
or ebx, 0x80070000
mov r8, qword [rdi + 0x78]
lea rdx, str.ERROR:_Cab_extraction_failed_for__S.__Error_0x_x._r_n
mov r9d, ebx
mov ecx, 2
call fcn.140019b1c
test ebx, ebx
js 0x140031ecb
mov rcx, rdi
call fcn.14002fc8c
test eax, eax
mov ecx, 0x80040152
cmove ebx, ecx
mov dword [rdi + 0x138], ebx
mov eax, ebx
jmp 0x140031eda
mov eax, 1
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret