Function at 0x14000615c
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], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x350
mov rax, qword [0x1400280c8]
xor rax, rsp
mov qword [rsp + 0x340], rax
xor esi, esi
lea rcx, str.Kernel32.dll
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ebp, [rsi + 1]
mov rdi, rax
mov r12d, 0x80070000
cmp rax, rsi
jne 0x1400061d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140006446
lea rdx, str.SetDefaultDllDirectories
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rsi
je 0x14000620e
mov ecx, 0x800
call rax
cmp eax, esi
jne 0x14000620e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140006446
call fcn.14001f3ec
cmp eax, esi
mov ebx, eax
jl 0x140006446
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x94]
mov eax, 0x10000
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
mov dword [0x140029520], r11d
mov dword [0x140029524], 0x3c
mov dword [0x140029528], ebp
mov dword [0x14002952c], eax
mov dword [0x140029530], ebp
mov dword [0x140029534], eax
mov dword [0x140029538], ebp
mov dword [0x14002953c], eax
mov dword [0x140029540], ebp
call fcn.140005760
cmp eax, esi
mov ebx, eax
jl 0x140006446
cmp eax, ebp
je 0x140006444
cmp dword [rsp + 0x54], esi
je 0x1400062b4
xor edx, edx
xor ecx, ecx
call fcn.140005c7c
mov ebx, eax
jmp 0x140006446
cmp dword [rsp + 0x50], esi
je 0x1400063f8
mov ebx, 0x68
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8, rbx
call fcn.140014860
lea rdx, [rsp + 0x130]
mov r8d, 0x104
xor ecx, ecx
mov dword [rsp + 0xc0], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jne 0x14000630f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140006446
lea r8, [rsp + 0x58]
lea rdx, [0x140022120]
lea rcx, [0x140021ec0]
xor r9d, r9d
call fcn.140010d18
cmp eax, esi
mov ebx, eax
jl 0x140006446
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x130]
xor r9d, r9d
mov r8d, ebp
call fcn.1400111e4
cmp eax, esi
mov ebx, eax
jl 0x140006446
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 + 0x60]
call fcn.1400108c0
cmp eax, esi
mov ebx, eax
jl 0x140006446
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
jne 0x1400063e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140006446
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 0x140006446
mov rax, qword [str.ose64]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x70], rax
lea rax, [0x14000eb30]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, esi
jne 0x140006444
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140006446
mov ebx, esi
cmp dword [0x140029550], esi
je 0x140006455
mov ecx, ebp
call fcn.140013760
mov rcx, qword [rsp + 0x60]
cmp rcx, rsi
je 0x140006464
call fcn.140010460
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x140006473
call fcn.140010460
call fcn.14001f3f0
mov eax, ebx
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400146fc
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret