Function at 0x140027448
Capabilities:
Create process on windows
Write and execute a file
Write file 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 [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x300], rax
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
cmp dword [rcx + 0x128], r15d
je 0x14002789e
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14002789e
cmp dword [rdi + 0x124], r15d
je 0x140027882
cmp dword [rdi + 0x12c], r15d
je 0x140027882
call fcn.140017488
test eax, eax
je 0x140027882
mov rcx, qword [rdi + 0x78]
lea r9d, [r15 + 1]
mov edx, r9d
xor r8d, r8d
call fcn.140019028
mov ebx, eax
test eax, eax
jns 0x1400274fa
mov rcx, qword [rdi + 0x78]
lea r9d, [r15 + 1]
mov r8d, r9d
xor edx, edx
call fcn.140019028
mov ebx, eax
test eax, eax
js 0x140027894
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]
mov r9, rdi
lea r8, [0x1400278e0]
xor edx, edx
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SETUPAPI.dll_SetupIterateCabinetA]
test eax, eax
je 0x140027848
mov r8, qword [rdi + 0x78]
lea rdx, str._Cab_extraction_succeeded_for__S._r_n
mov ecx, 4
call fcn.1400168a8
cmp dword [rdi + 0x134], r15d
je 0x1400277f9
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov r14, rax
test rax, rax
je 0x14002787e
cmp r15w, word [rax]
je 0x14002787e
lea rdx, str..exe
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140027710
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.140001734
test eax, eax
js 0x14002787e
mov ebx, 0x70
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x90]
lea r9, [0x14003f4a0]
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 [0x1400516d8]
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.1400168a8
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400276d9
mov r12d, 0x14
mov ebx, r15d
mov ecx, r12d
mov r14d, 0x1f4
call fcn.140015c44
xor ecx, ecx
call fcn.140015a28
mov edx, r14d
jmp 0x1400276a6
cmp ebx, r12d
je 0x140027693
mov ecx, ebx
call fcn.140015d00
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]
cmp eax, 0x102
je 0x140027685
mov ecx, r12d
call fcn.140015d00
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x58], 0x20
mov ebx, 0x80004005
cmova ebx, r15d
jmp 0x1400276f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
lea rdx, str._Service_install_returned_0x_x._r_n
mov ecx, 4
call fcn.1400168a8
jmp 0x14002787e
lea rdx, str..inf
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400277b7
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 + 0x68], 0x2a
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
call fcn.140001734
test eax, eax
js 0x14002779f
xor r9d, r9d
lea r8, str.DefaultInstall
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.140034dd0
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.1400168a8
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002787e
call fcn.14003c408
jmp 0x14002787e
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x1400277dd
lea edx, [rcx + 3]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14002787e
cmp dword [0x1400516e0], 2
jl 0x14002787e
mov r8d, 0x3a
lea rdx, str.ERROR:_Unknown_install_type_in_Service_provider_install._r_n
jmp 0x140027831
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14002781b
lea edx, [rcx + 3]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14002787e
cmp dword [0x1400516e0], 2
jl 0x14002787e
mov r8d, 0x2a
lea rdx, str.ERROR:_Install_files_were_not_available._r_n
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14002787e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi + 0x78]
lea rdx, str.ERROR:_Cab_extraction_failed_for__S.__Error_0x_x._r_n
test eax, eax
mov ecx, 0x57
cmove eax, ecx
mov ecx, 2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
call fcn.1400168a8
test ebx, ebx
js 0x140027894
mov rcx, rdi
call fcn.140026b64
test eax, eax
mov ecx, 0x80040152
cmove ebx, ecx
mov dword [rdi + 0x138], ebx
mov eax, ebx
jmp 0x1400278a3
mov eax, 1
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14003c810
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