Function at 0x140006148
Capabilities:
Create process on windows
Get system information on windows
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x350
mov rax, qword [0x1400380d8]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor esi, esi
lea rcx, str.Kernel32.dll
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r14d, [rsi + 1]
mov r15d, 0x80070000
mov rdi, rax
test rax, rax
jne 0x1400061c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006417
lea rdx, str.SetDefaultDllDirectories
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006200
mov ecx, 0x800
call rax
test eax, eax
jne 0x140006200
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006417
call fcn.140014874
mov ebx, eax
test eax, eax
js 0x140006417
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x6c]
lea r9, [rsp + 0x54]
mov dword [0x140038ac0], eax
lea r8, [rsp + 0x50]
mov eax, 0x10000
mov dword [0x140038ac4], 0x3c
lea rdx, [rsp + 0x60]
mov dword [0x140038acc], eax
lea rcx, [rsp + 0x60]
mov dword [0x140038ad4], eax
mov dword [0x140038adc], eax
mov dword [0x140038ac8], r14d
mov dword [0x140038ad0], r14d
mov dword [0x140038ad8], r14d
mov dword [0x140038ae0], r14d
call fcn.140006038
mov ebx, eax
test eax, eax
js 0x140006417
cmp eax, r14d
je 0x140006415
cmp dword [rsp + 0x50], esi
je 0x1400062a1
xor edx, edx
xor ecx, ecx
call fcn.140005bb8
mov ebx, eax
jmp 0x140006417
cmp dword [rsp + 0x54], esi
je 0x1400063d1
mov ebx, 0x68
lea rcx, [rbp - 0x40]
mov r8d, ebx
xor edx, edx
call fcn.140015a40
mov r8d, 0x104
mov dword [rbp - 0x40], ebx
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400062f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006417
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x140029e28]
lea rcx, [0x140029e30]
call fcn.140011ad0
mov ebx, eax
test eax, eax
js 0x140006417
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x30]
xor r9d, r9d
mov r8d, r14d
call fcn.1400118d4
mov ebx, eax
test eax, eax
js 0x140006417
mov rcx, qword [rsp + 0x58]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8, qword [rsp + 0x58]
lea rdx, str.__s___standalone
lea rcx, [rsp + 0x68]
call fcn.1400108f0
mov ebx, eax
test eax, eax
js 0x140006417
mov rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400063b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006417
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006417
mov rax, qword [str.ose64]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea rax, [0x14000e860]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140006415
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006417
mov ebx, esi
cmp dword [0x140038ae4], esi
je 0x140006427
mov ecx, r14d
call fcn.140014204
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140006436
call fcn.140010e7c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140006445
call fcn.140010e7c
call fcn.140015098
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140014bd0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret