Function at 0x140006138
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 [0x1400380c8]
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 0x1400061b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063ea
lea rdx, str.SetDefaultDllDirectories
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400061d3
mov ecx, 0x800
call rax
call fcn.140014da0
mov ebx, eax
test eax, eax
js 0x1400063ea
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x6c]
lea r9, [rsp + 0x54]
mov dword [0x140038ab0], eax
lea r8, [rsp + 0x50]
mov eax, 0x10000
mov dword [0x140038ab4], 0x3c
lea rdx, [rsp + 0x60]
mov dword [0x140038abc], eax
lea rcx, [rsp + 0x60]
mov dword [0x140038ac4], eax
mov dword [0x140038acc], eax
mov dword [0x140038ab8], r14d
mov dword [0x140038ac0], r14d
mov dword [0x140038ac8], r14d
mov dword [0x140038ad0], r14d
call fcn.140006028
mov ebx, eax
test eax, eax
js 0x1400063ea
cmp eax, r14d
je 0x1400063e8
cmp dword [rsp + 0x50], esi
je 0x140006274
xor edx, edx
xor ecx, ecx
call fcn.140005ba8
mov ebx, eax
jmp 0x1400063ea
cmp dword [rsp + 0x54], esi
je 0x1400063a4
mov ebx, 0x68
lea rcx, [rbp - 0x40]
mov r8d, ebx
xor edx, edx
call fcn.140015780
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 0x1400062c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063ea
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x140029e38]
lea rcx, [0x140029e40]
call fcn.140011988
mov ebx, eax
test eax, eax
js 0x1400063ea
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x30]
xor r9d, r9d
mov r8d, r14d
call fcn.140011790
mov ebx, eax
test eax, eax
js 0x1400063ea
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.1400107ec
mov ebx, eax
test eax, eax
js 0x1400063ea
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 0x14000638c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063ea
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 0x1400063ea
mov rax, qword [str.ose64]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea rax, [0x14000e838]
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 0x1400063e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063ea
mov ebx, esi
cmp dword [0x140038ad4], esi
je 0x1400063fa
mov ecx, r14d
call fcn.140013f18
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140006409
call fcn.140010d78
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140006418
call fcn.140010d78
call fcn.1400145f8
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400148f0
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