Function at 0x1400a77b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rbx, qword [rbp + 0xc0]
xor r13d, r13d
mov rdi, rdx
mov rsi, r8
mov rdx, rcx
mov ecx, r13d
mov dword [rbp + 0xa8], ecx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbx + 0x18]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + 0x28]
mov qword [rdx + 0x18], rax
cmp dword [rbx + 0x44], ecx
je 0x1400a7825
cmp dword [0x140175f00], 0x1e
mov eax, 8
cmovge ecx, eax
mov dword [rbp + 0xa8], ecx
mov r14, qword [rbp + 0xc8]
or r12, 0xffffffffffffffff
cmp byte [rdi], 0x22
jne 0x1400a785c
mov r8, r12
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], r13b
jne 0x1400a7840
sub r8, 2
lea rdx, [rdi + 1]
mov rcx, r14
call fcn.1400a03e0
mov rdi, rax
mov eax, dword [rbx + 0x40]
lea r15, [0x140108890]
dec eax
mov qword [rsp + 0x20], r14
mov r9d, reloc.WS2_32.dll_recv
mov r8, rdi
cmp eax, 1
jbe 0x1400a7898
mov rdx, r15
mov qword [rsp + 0x78], r13
lea rcx, [rsp + 0x78]
call fcn.14009e5a0
test eax, eax
jne 0x1400a7902
mov rdi, qword [rsp + 0x78]
jmp 0x1400a7902
mov rdx, qword [rbx + 0x38]
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], r13
call fcn.14009e5a0
mov esi, eax
test eax, eax
je 0x1400a78f7
cmp qword [rbx + 0x48], r13
je 0x1400a78f0
mov r9, qword [rbx + 0x38]
lea rax, str._progname:
mov qword [rsp + 0x30], r13
lea r8, str._currdir:
mov qword [rsp + 0x28], rdi
lea rdx, str.filepath_merge_failed.
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400a0250
mov r8, rax
mov edx, esi
mov rcx, r14
call qword [rbx + 0x48]
mov eax, esi
jmp 0x1400a82c2
mov rdi, qword [rbp - 0x80]
mov rsi, qword [rbp + 0xb0]
mov rcx, rdi
call fcn.1400a8680
lea rcx, [0x140120178]
test rax, rax
je 0x1400a7933
mov r9, rcx
mov qword [rsp + 0x20], r13
mov rdx, rcx
mov r8, rdi
mov rcx, r14
call fcn.1400a0250
mov qword [rsp + 0x60], rax
jmp 0x1400a7938
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400a79aa
lea rbx, [0x140120178]
mov rcx, qword [rsi + 8]
add rsi, 8
test rcx, rcx
je 0x1400a79a3
call fcn.1400a8680
test rax, rax
jne 0x1400a797f
mov r9, qword [rsi]
cmp byte [r9], r13b
je 0x1400a797f
lea r8, [0x140120180]
mov qword [rsp + 0x20], r13
mov rdx, r15
mov rcx, r14
call fcn.1400a0250
mov r15, rax
jmp 0x1400a7944
mov r9, qword [rsi]
lea r8, [0x14012017c]
mov qword [rsp + 0x28], r13
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.1400a0250
mov r15, rax
jmp 0x1400a7944
mov rbx, qword [rbp + 0xc0]
test dword [rbx + 0x40], 0xfffffffb
je 0x1400a7b4a
mov rax, r12
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], r13b
jne 0x1400a79c0
cmp rax, 4
jb 0x1400a7b1e
lea rsi, [rax + rdi]
lea rcx, [rsi - 4]
lea rdx, str..bat
call fcn.1400c81e8
test eax, eax
je 0x1400a7a03
lea rdx, str..cmd
lea rcx, [rsi - 4]
call fcn.1400c81e8
test eax, eax
jne 0x1400a7b1e
lea rcx, str.COMSPEC
call fcn.1400da538
mov rsi, rax
test rax, rax
je 0x1400a7b5e
cmp byte [rax], 0x22
jne 0x1400a7a41
mov r8, r12
inc r8
cmp byte [rax + r8], r13b
jne 0x1400a7a23
sub r8, 2
lea rdx, [rax + 1]
mov rcx, r14
call fcn.1400a03e0
mov rdi, rax
jmp 0x1400a7a71
mov rcx, rsi
mov rdi, rsi
call fcn.1400a8680
test rax, rax
je 0x1400a7a71
lea rax, [0x140120178]
mov qword [rsp + 0x20], r13
mov r9, rax
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.1400a0250
mov rsi, rax
mov rax, r12
inc rax
cmp byte [rdi + rax], r13b
jne 0x1400a7a74
cmp rax, 0xb
jb 0x1400a7ac0
lea rcx, [rax - 0xb]
add rcx, rdi
lea rdx, str.command.com
call fcn.1400c81e8
test eax, eax
jne 0x1400a7ac0
mov r9, qword [rsp + 0x60]
lea r8, str.__C
mov qword [rsp + 0x28], r13
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], r15
call fcn.1400a0250
jmp 0x1400a7c38
mov rdx, r15
mov rcx, r14
call fcn.1400a7720
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140120178]
mov r9, rcx
cmp byte [rcx], 0x22
mov rcx, r14
je 0x1400a7b0a
mov qword [rsp + 0x38], r13
lea r8, str.__C___
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call fcn.1400a0250
jmp 0x1400a7c38
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
jmp 0x1400a7c29
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov r8, r15
mov rcx, r14
call fcn.1400a0250
cmp dword [rbx + 0x40], 3
mov qword [rbp + 0xc0], rax
jne 0x1400a7c3f
mov rdi, r13
jmp 0x1400a7c3f
lea rcx, str.COMSPEC
call fcn.1400da538
mov rsi, rax
test rax, rax
jne 0x1400a7b82
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1400a7b78
lea r8, str.COMSPEC_envar_is_not_set
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, r14
call rax
mov eax, reloc.WS2_32.dll_shutdown
jmp 0x1400a82c2
cmp byte [rax], 0x22
jne 0x1400a7bae
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x1400a7b90
sub r8, 2
lea rdx, [rax + 1]
mov rcx, r14
call fcn.1400a03e0
mov rdi, rax
jmp 0x1400a7bde
mov rcx, rsi
mov rdi, rsi
call fcn.1400a8680
test rax, rax
je 0x1400a7bde
lea rax, [0x140120178]
mov qword [rsp + 0x20], r13
mov r9, rax
mov rdx, rax
mov r8, rsi
mov rcx, r14
call fcn.1400a0250
mov rsi, rax
mov rax, r12
inc rax
cmp byte [rdi + rax], r13b
jne 0x1400a7be1
cmp rax, 0xb
jb 0x1400a7c0b
lea rcx, [rax - 0xb]
add rcx, rdi
lea rdx, str.command.com
call fcn.1400c81e8
test eax, eax
je 0x1400a7a9a
mov r9, qword [rsp + 0x60]
lea rax, [0x140120178]
mov qword [rsp + 0x30], r13
mov rcx, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r8, str.__C__
mov rdx, rsi
call fcn.1400a0250
mov qword [rbp + 0xc0], rax
mov r9, qword [rbp + 0xb8]
test r9, r9
je 0x1400a7d77
mov eax, dword [rbx + 0x40]
sub eax, 2
test eax, 0xfffffffd
je 0x1400a7d77
mov rcx, qword [r9]
mov edx, 1
mov qword [rbp - 0x78], rdx
mov r8, r13
test rcx, rcx
je 0x1400a7c9c
mov rax, r12
inc rax
cmp byte [rcx + rax], r13b
jne 0x1400a7c77
mov rcx, qword [r9 + r8*8 + 8]
inc r8
inc rdx
add rdx, rax
mov qword [rbp - 0x78], rdx
test rcx, rcx
jne 0x1400a7c74
test r8, r8
jne 0x1400a7ca3
inc rdx
mov qword [rbp - 0x78], rdx
add rdx, rdx
mov rcx, r14
call fcn.1400a0a70
or dword [rbp + 0xa8], 0x400
mov rsi, rax
mov qword [rbp - 0x70], rax
mov r15, r13
mov rax, qword [rbp + 0xb8]
cmp qword [rax], r13
je 0x1400a7d2e
mov rcx, rax
mov rcx, qword [rcx]
mov rdx, r12
inc rdx
cmp byte [rcx + rdx], r13b
jne 0x1400a7cd7
inc rdx
lea r9, [rbp - 0x78]
mov qword [rsp + 0x70], rdx
mov r8, rsi
lea rdx, [rsp + 0x70]
call fcn.1400a8a80
mov r12d, eax
test eax, eax
jne 0x1400a7d40
xor edx, edx
mov rcx, rsi
call fcn.1400c05e8
inc r15
mov r12, 0xffffffffffffffff
lea rsi, [rax + 2]
mov rax, qword [rbp + 0xb8]
cmp qword [rax + r15*8], r13
lea rcx, [rax + r15*8]
jne 0x1400a7cd1
test r15, r15
jne 0x1400a7d36
mov word [rsi], r13w
add rsi, 2
mov word [rsi], r13w
or r12, 0xffffffffffffffff
jmp 0x1400a7d7b
cmp qword [rbx + 0x48], r13
je 0x1400a7d6f
mov rax, qword [rbp + 0xb8]
lea rdx, str.utf8_to_ucs2_conversion_failed_on_this_string:
xor r9d, r9d
mov rcx, r14
mov r8, qword [rax + r15*8]
call fcn.1400a0250
mov r8, rax
mov edx, r12d
mov rcx, r14
call qword [rbx + 0x48]
mov eax, r12d
jmp 0x1400a82c2
mov qword [rbp - 0x70], r13
mov r15, qword [rbp + 0xc0]
mov rsi, r13
mov rax, qword [rbp + 0xa0]
mov dword [rbp + 0xc0], r13d
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x60], r13d
mov qword [rax + 0x20], r15
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x68], r13
test rdi, rdi
je 0x1400a7e27
mov rdx, r12
inc rdx
cmp byte [rdi + rdx], sil
jne 0x1400a7db2
inc rdx
mov rcx, r14
mov qword [rbp - 0x58], rdx
add rdx, 6
mov qword [rbp - 0x60], rdx
add rdx, rdx
call fcn.1400a0a70
lea r9, [rbp - 0x60]
mov qword [rsp + 0x70], rax
mov r8, rax
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1400a8a80
mov esi, eax
test eax, eax
je 0x1400a7e24
cmp qword [rbx + 0x48], r13
je 0x1400a78f0
xor r9d, r9d
lea rdx, str.utf8_to_ucs2_conversion_failed_on_progname:
mov r8, rdi
mov rcx, r14
call fcn.1400a0250
mov r8, rax
mov edx, esi
mov rcx, r14
call qword [rbx + 0x48]
mov eax, esi
jmp 0x1400a82c2
mov rsi, r13
test r15, r15
je 0x1400a7e9b
mov rdx, r12
nop
inc rdx
cmp byte [r15 + rdx], r13b
jne 0x1400a7e30
inc rdx
mov rcx, r14
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x80], rdx
add rdx, rdx
call fcn.1400a0a70
lea r9, [rbp - 0x80]
mov qword [rbp - 0x68], rax
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.1400a8a80
mov edi, eax
test eax, eax
je 0x1400a7e9b
cmp qword [rbx + 0x48], r13
je 0x1400a7e94
mov r8, r15
lea rdx, str.utf8_to_ucs2_conversion_failed_on_cmdline:
xor r9d, r9d
mov rcx, r14
call fcn.1400a0250
mov r8, rax
mov edx, edi
mov rcx, r14
call qword [rbx + 0x48]
mov eax, edi
jmp 0x1400a82c2
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x1400a7ef4
inc r12
cmp byte [rax + r12], r13b
jne 0x1400a7ea4
inc r12
mov rcx, r14
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], r12
lea rdx, [r12 + r12]
call fcn.1400a0a70
mov rcx, qword [rbx + 0x38]
lea r9, [rbp - 0x50]
mov r8, rax
lea rdx, [rbp - 0x48]
mov rsi, rax
call fcn.1400a8a80
mov edi, eax
test eax, eax
je 0x1400a7ef4
cmp qword [rbx + 0x48], r13
je 0x1400a7e94
mov r8, qword [rbx + 0x38]
lea rdx, str.utf8_to_ucs2_conversion_failed_on_currdir:
jmp 0x1400a7e7e
xor edx, edx
lea rcx, [rbp - 0x20]
lea r8d, [rdx + 0x68]
call fcn.1400c0ac0
mov dword [rbp - 0x20], 0x68
cmp dword [rbx + 0x44], r13d
je 0x1400a7f19
or dword [rbp + 0x1c], 1
mov word [rbp + 0x20], r13w
lea rcx, [0x140175ed0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400a7f35
cmp qword [rax + 8], r13
jne 0x1400a7f5b
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1400a7f44
cmp qword [rax + 8], r13
jne 0x1400a7f5b
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x1400a809e
cmp qword [rax + 8], r13
je 0x1400a809e
or dword [rbp + 0x1c], 0x100
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [rbx + 0x10]
mov qword [rbp + 0x30], rax
test rcx, rcx
je 0x1400a7fce
cmp qword [rcx + 8], r13
je 0x1400a7fce
lea rdx, [rbp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400a7fae
and dword [rbp + 0xc0], 1
je 0x1400a7fae
mov rcx, qword [rbp + 0x30]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
mov qword [rbp + 0x30], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400a7fce
mov edx, 1
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [rbx + 0x20]
mov qword [rbp + 0x38], rax
test rcx, rcx
je 0x1400a8036
cmp qword [rcx + 8], r13
je 0x1400a8036
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400a8016
and dword [rsp + 0x68], 1
je 0x1400a8016
mov rcx, qword [rbp + 0x38]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 8]
mov qword [rbp + 0x38], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400a8036
mov edx, 1
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [rbx + 0x30]
mov qword [rbp + 0x40], rax
test rcx, rcx
je 0x1400a809e
cmp qword [rcx + 8], r13
je 0x1400a809e
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400a807e
and dword [rsp + 0x60], 1
je 0x1400a807e
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 8]
mov qword [rbp + 0x40], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400a809e
mov edx, 1
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400a8155
lea rax, str.Winsta0Default
mov qword [rbp - 0x10], rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1400a80fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400a80cf
mov edi, r13d
jmp 0x1400a80db
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [rax + 0xafc80]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140175ed0]
mov qword [rbx + 0x58], r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x1400a82c2
mov r9, qword [rbx + 0x60]
lea rax, [rbp - 0x40]
mov r8, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0xa8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x1400a819e
mov rdx, qword [rbp - 0x68]
lea rax, [rbp - 0x40]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0xa8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400a81ad
cmp qword [rax + 8], r13
jne 0x1400a81cb
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1400a81bc
cmp qword [rax + 8], r13
jne 0x1400a81cb
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x1400a8235
cmp qword [rax + 8], r13
je 0x1400a8235
cmp dword [rbp + 0xc0], r13d
je 0x1400a81f1
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 0xc0]
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp dword [rsp + 0x68], r13d
je 0x1400a8213
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x68]
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp dword [rsp + 0x60], r13d
je 0x1400a8235
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x60]
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rcx, [0x140175ed0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1400a8262
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400a825d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13d, [rax + 0xafc80]
mov eax, r13d
jmp 0x1400a82c2
mov rcx, qword [rbp + 0xa0]
lea rdi, [0x14016b430]
mov rax, qword [rbp - 0x40]
mov qword [rcx + 0x28], rax
mov eax, dword [rbp - 0x30]
mov dword [rcx], eax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a8290
cmp rcx, rdi
je 0x1400a8290
call fcn.14009f6c0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400a82a3
cmp rcx, rdi
je 0x1400a82a3
call fcn.14009f6c0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a82b6
cmp rcx, rdi
je 0x1400a82b6
call fcn.14009f6c0
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret