Function at 0x180037840
Capabilities:
Check os version
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x380], rbx
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, r9
movzx r12d, r8b
mov r15, rdx
mov rbx, rcx
xor r13d, r13d
test r9, r9
je 0x180037895
mov qword [r9], r13
cmp qword [rcx + 0x10], r13
jne 0x1800378a2
xor al, al
jmp 0x180037de7
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
lea rdx, [rbp]
call fcn.180028480
xor sil, sil
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.18003e670
nop
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
lea rdx, [0x1801ab238]
call fcn.180022390
movzx esi, sil
mov r14d, 1
test al, al
cmovne esi, r14d
test r12b, r12b
je 0x18003797e
mov ecx, r14d
call fcn.180139f6c
mov r14, rax
mov qword [rbp + 0x60], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp + 0x100]
call fcn.180140c00
mov dword [rbp + 0x100], 0x11c
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180037954
cmp dword [rbp + 0x104], 6
setae al
mov byte [r14], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rbp + 0x60]
call fcn.180060b40
movzx esi, sil
test al, al
cmove esi, r13d
lea rcx, [rbp + 0x60]
call fcn.18005dff0
mov r14d, 1
test sil, sil
je 0x180037b81
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x90]
call fcn.180140c00
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rbp + 0x90], 0x68
mov word [rbp + 0xd0], r14w
mov dword [rbp + 0xcc], 0x81
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
mov rsi, qword [rbp - 0x10]
cmp rsi, 0x104
ja 0x180037a26
mov rcx, qword [rbp - 8]
cmp rcx, 0x104
je 0x180037a26
jae 0x180037a10
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.180005d50
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x10], rsi
lea rax, [rbp - 0x20]
cmp rcx, 8
cmovae rax, qword [rbp - 0x20]
mov word [rax + rsi*2], r13w
mov r8, r14
lea rdx, [0x1801ab180]
lea rcx, [rbp - 0x20]
call fcn.180005920
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.180005670
mov r8, r14
lea rdx, [0x1801ab180]
lea rcx, [rbp - 0x20]
call fcn.1800057b0
cmp qword [r15 + 0x10], 0
je 0x180037a8c
mov r8, r14
lea rdx, [0x1801ab184]
lea rcx, [rbp - 0x20]
call fcn.1800057b0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.180005670
cmp qword [rbp + 0x10], 0
jne 0x180037a98
mov rax, r13
jmp 0x180037aa6
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
cmp qword [rbx + 0x18], 8
jb 0x180037ac0
mov rcx, qword [rbx]
jmp 0x180037ac3
mov rcx, rbx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x48], r8
lea r8, [rbp + 0x90]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x30
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180037b60
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180037b15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x180037b23
xor bl, bl
jmp 0x180037b3a
test rdi, rdi
je 0x180037b2d
mov qword [rdi], rcx
jmp 0x180037b38
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r13
mov bl, 1
cmp qword [rbp - 8], 8
jb 0x180037b4a
mov rcx, qword [rbp - 0x20]
call fcn.180139b7c
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
jmp 0x180037d9c
cmp qword [rbp - 8], 8
jb 0x180037b70
mov rcx, qword [rbp - 0x20]
call fcn.180139b7c
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r13
mov word [rbp + 0x20], r13w
mov r8d, 4
lea rdx, str.open
lea rcx, [rbp + 0x20]
call fcn.180005920
nop
test r12b, r12b
je 0x180037be6
lea rcx, [rbp + 0x100]
call fcn.180031b50
cmp dword [rbp + 0x104], 6
setae al
test al, al
je 0x180037be6
mov r8d, 5
lea rdx, str.runas
lea rcx, [rbp + 0x20]
call fcn.180005920
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp + 0x40]
call fcn.180005330
nop
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x70]
call fcn.180140c00
mov dword [rsp + 0x70], 0x70
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x74], 0x100540
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
mov qword [rbp - 0x80], rax
cmp qword [rbx + 0x18], 8
jb 0x180037c54
mov rbx, qword [rbx]
mov qword [rbp - 0x78], rbx
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rax, qword [rbp + 0x40]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x60], r14d
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
mov r8d, 0xb
lea rdx, [0x1801aa748]
lea rcx, [rbp - 0x20]
call fcn.180005920
nop
mov eax, dword [0x18034db90]
test al, 1
jne 0x180037cde
or eax, 1
mov dword [0x18034db90], eax
xor eax, eax
mov qword [0x18034db88], rax
call fcn.180064890
lea rcx, [0x180197b50]
call fcn.180139aec
nop
lea rdx, [rbp - 0x20]
lea rcx, [0x18034db88]
call fcn.180064a80
mov rbx, rax
cmp qword [rbp - 8], 8
jb 0x180037d01
mov rcx, qword [rbp - 0x20]
call fcn.180139b7c
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
test rbx, rbx
je 0x180037d58
lea rdx, [0x1801ab268]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180037d58
lea rcx, [rsp + 0x70]
call rax
test eax, eax
je 0x180037d58
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180037d58
test rdi, rdi
je 0x180037d4a
mov qword [rdi], rcx
jmp 0x180037d54
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x28], r13
mov bl, 1
jmp 0x180037d5a
xor bl, bl
cmp qword [rbp + 0x58], 8
jb 0x180037d6a
mov rcx, qword [rbp + 0x40]
call fcn.180139b7c
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp qword [rbp + 0x38], 8
jb 0x180037d8b
mov rcx, qword [rbp + 0x20]
call fcn.180139b7c
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r13
mov word [rbp + 0x20], r13w
cmp qword [rbp + 0x80], 8
jb 0x180037daf
mov rcx, qword [rbp + 0x68]
call fcn.180139b7c
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], r13
mov word [rbp + 0x68], r13w
cmp qword [rbp + 0x18], 8
jb 0x180037dd3
mov rcx, qword [rbp]
call fcn.180139b7c
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.180139310
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret