Function at 0x1400297a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov qword [rsp + 0x60], rcx
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x70], rcx
or r14, 0xffffffffffffffff
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x68], r14
mov r12d, r9d
mov qword [rbp - 0x80], rax
mov r13, r8
mov r15, rdx
call fcn.14002e970
cmp eax, r14d
je 0x140029fa8
lea rcx, [rsp + 0x58]
call fcn.14002e970
cmp eax, r14d
je 0x140029fa8
lea rcx, [rsp + 0x78]
call fcn.14002e970
cmp eax, r14d
je 0x140029fa8
mov rdi, qword [rsp + 0x68]
mov ecx, edi
call fcn.14003d7d0
mov ecx, dword [rsp + 0x6c]
call fcn.14003d7d0
mov rbx, qword [rsp + 0x58]
mov ecx, ebx
call fcn.14003d7d0
mov ecx, dword [rsp + 0x5c]
call fcn.14003d7d0
mov rsi, qword [rsp + 0x78]
mov ecx, esi
call fcn.14003d7d0
mov ecx, dword [rsp + 0x7c]
call fcn.14003d7d0
mov ecx, dword [rsp + 0x6c]
lea edx, [r14 + 9]
lea r8d, [r14 + 2]
call fcn.14002eee0
lea edx, [r14 + 9]
mov ecx, ebx
lea r8d, [r14 + 2]
call fcn.14002eee0
lea edx, [r14 + 9]
mov ecx, esi
lea r8d, [r14 + 2]
call fcn.14002eee0
cmp dword [0x1400eee98], 0
jne 0x1400298c6
mov rcx, qword [rsp + 0x60]
mov rdx, r15
call fcn.140029490
test eax, eax
jne 0x140029fa8
mov dword [0x1400eee98], 1
cmp dword [0x1400eedd4], 0
jne 0x1400298dc
mov rcx, qword [r15 + 0x10]
mov rcx, qword [rcx + 0x20]
call fcn.14002a730
mov eax, dword [r15 + 0xc8]
xor ecx, ecx
cmp eax, 3
mov dword [rsp + 0x50], r14d
mov rax, qword [r15 + 0x10]
cmovl ecx, r12d
mov dword [rsp + 0x54], ecx
lea rcx, str.echo_This_service_allows_sftp_connections_only.
cmovl rcx, r13
mov qword [rbp - 0x78], rcx
mov rcx, qword [rax + 0x28]
mov rax, r14
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140029910
add eax, 3
movsxd r12, eax
mov rcx, r12
call fcn.140088334
mov r13, rax
test rax, rax
jne 0x14002993f
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x140029fa8
mov r9, qword [r15 + 0x10]
lea r8, str.__s_
mov rdx, r12
mov rcx, r13
mov r9, qword [r9 + 0x28]
call fcn.140028f60
mov rdx, r13
lea rcx, str.shell:__s
call fcn.140046c70
mov rcx, qword [r15 + 0x10]
lea rdx, str.system32cmd
mov rcx, qword [rcx + 0x28]
call fcn.14007950c
test rax, rax
je 0x14002998c
mov r14d, 1
jmp 0x140029a12
mov rcx, qword [r15 + 0x10]
lea rdx, str.powershell
mov rcx, qword [rcx + 0x28]
call fcn.14007950c
test rax, rax
je 0x1400299ad
mov r14d, 2
jmp 0x140029a12
mov rcx, qword [r15 + 0x10]
lea rdx, str.ssh_shellhost
mov rcx, qword [rcx + 0x28]
call fcn.14007950c
test rax, rax
je 0x1400299ce
mov r14d, 5
jmp 0x140029a12
mov rcx, qword [r15 + 0x10]
lea rdx, str._bash
mov rcx, qword [rcx + 0x28]
call fcn.14007950c
test rax, rax
je 0x1400299ef
mov r14d, 3
jmp 0x140029a12
mov rcx, qword [r15 + 0x10]
lea rdx, str.cygwin
mov rcx, qword [rcx + 0x28]
call fcn.14007950c
xor r14d, r14d
mov ecx, 4
test rax, rax
cmovne r14d, ecx
mov r12, qword [0x1400eeec8]
test r12, r12
jne 0x140029a34
cmp r14d, 1
lea r12, [0x1400d3200]
lea rax, [0x1400d3204]
cmovne r12, rax
mov rdx, r12
lea rcx, str.shell_option:__s
call fcn.140046c70
cmp dword [rsp + 0x54], 0
je 0x140029b59
mov ecx, dword [r15 + 0x30]
mov edx, 8
lea r8d, [rdx - 7]
call fcn.14002eee0
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x140029b0a
or rdx, 0xffffffffffffffff
mov rcx, rdx
inc rcx
cmp byte [rax + rcx], 0
jne 0x140029a74
mov rax, rdx
inc rax
cmp byte [r12 + rax], 0
jne 0x140029a80
add rcx, rax
mov rax, rdx
cmp byte [rax + r13 + 1], 0
lea rax, [rax + 1]
jne 0x140029a90
lea r14, [rax + 3]
add r14, rcx
mov ecx, 1
mov rdx, r14
call fcn.14007a834
mov r8, r13
mov qword [rbp - 0x60], rax
mov rdx, r14
mov rcx, rax
call fcn.14008903c
mov rcx, qword [rbp - 0x60]
lea r8, [0x1400cf4f0]
mov rdx, r14
call fcn.14008909c
mov r8, r12
mov rdx, r14
mov r12, qword [rbp - 0x60]
mov rcx, r12
call fcn.14008909c
lea r8, [0x1400cf4f0]
mov rdx, r14
mov rcx, r12
call fcn.14008909c
mov r8, qword [rbp - 0x78]
mov rdx, r14
mov rcx, r12
call fcn.14008909c
jmp 0x140029b0d
mov r12, r13
mov eax, dword [r15 + 0x34]
lea rcx, [rsp + 0x50]
mov r9d, dword [rsp + 0x5c]
mov r8d, edi
mov dword [rsp + 0x38], eax
mov rdx, r12
mov eax, dword [r15 + 0x3c]
mov dword [rsp + 0x30], eax
mov eax, dword [r15 + 0x40]
mov dword [rsp + 0x28], eax
call fcn.140034240
cmp eax, 0xffffffff
je 0x140029f8a
mov ecx, dword [r15 + 0x34]
call fcn.14002ed90
or r12, 0xffffffffffffffff
mov dword [r15 + 0x34], r12d
jmp 0x140029d42
mov rcx, qword [rbp - 0x78]
xor eax, eax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xa0], 0
call fcn.14002ba50
mov rdx, rax
mov qword [rsp + 0x70], rax
lea rcx, str.exec_command:__s
call fcn.140046c70
movzx ecx, byte [0x1400ed440]
lea eax, [r14 - 2]
cmp eax, 2
jbe 0x140029c75
test r14d, r14d
jne 0x140029bb9
test cl, cl
jne 0x140029c75
or rdx, 0xffffffffffffffff
mov rax, rdx
inc rax
cmp byte [rax + r13], 0
jne 0x140029bc0
mov r8, qword [rsp + 0x70]
inc eax
test r8, r8
je 0x140029c03
mov rcx, rdx
nop dword [rax]
inc rcx
cmp byte [r12 + rcx], 0
jne 0x140029be0
nop word [rax + rax]
cmp byte [r8 + rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140029bf0
add ecx, eax
lea eax, [rdx + 4]
add eax, ecx
movsxd r14, eax
mov rcx, r14
call fcn.140088334
mov qword [rbp - 0x70], rax
mov rcx, rax
test rax, rax
jne 0x140029c2a
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x140029f67
mov rax, qword [rsp + 0x70]
mov r9, r13
mov rdx, r14
test rax, rax
je 0x140029c52
mov qword [rsp + 0x28], rax
lea r8, str._s__s___s_
mov qword [rsp + 0x20], r12
call fcn.140028f60
jmp 0x140029c5e
lea r8, [0x1400ca854]
call fcn.140028f60
mov rcx, qword [rbp - 0x70]
mov r14, rcx
mov qword [rbp + 0xa0], rcx
movzx ecx, byte [0x1400ed440]
jmp 0x140029c97
mov rax, qword [rsp + 0x70]
mov r14, r13
mov qword [rbp + 0xa0], r13
test rax, rax
je 0x140029c97
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], rax
test cl, cl
lea rax, str.TRUE
lea rdx, str.FALSE
cmovne rdx, rax
lea rcx, str.arg_escape_option:__s
call fcn.140046c70
mov rdx, r14
lea rcx, str.spawn_argv_0_:__s
call fcn.140046c70
xor edx, edx
lea rcx, [rbp - 0x50]
lea r8d, [rdx + 0x60]
call fcn.14007a110
mov eax, dword [rsp + 0x5c]
lea r8, [rbp - 0x50]
mov dword [rbp - 0x4c], eax
lea rcx, [rsp + 0x50]
mov eax, dword [rsp + 0x7c]
xor r9d, r9d
mov dword [rbp - 0x48], eax
mov rdx, r14
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x50], edi
call fcn.140030150
test eax, eax
je 0x140029d3e
call fcn.140084fc0
mov dword [rax], 0x83
call fcn.140084fc0
mov ecx, dword [rax]
call fcn.14002af70
mov rdx, rax
lea rcx, str.posix_spawn:__s
call fcn.140046b30
jmp 0x140029f67
or r12, 0xffffffffffffffff
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x90
call fcn.14007a110
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
mov dword [rbp + 0x20], 0x2800
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x140029d98
call fcn.140084fc0
mov dword [rax], 0x83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.cannot_get_process_handle:__d
call fcn.140046b30
jmp 0x140029f67
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140029f31
mov r9d, 0x90
lea r8, [rbp + 0x10]
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140029f31
mov rcx, qword [rbp - 0x80]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140029f31
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp - 0x80]
lea r9, [rbp - 0x58]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov r8, r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140029f31
mov eax, dword [rsp + 0x50]
mov ecx, edi
mov dword [r15 + 0x20], eax
call fcn.14002ed90
mov ecx, dword [rsp + 0x5c]
call fcn.14002ed90
mov ecx, dword [rsp + 0x7c]
call fcn.14002ed90
cmp dword [rsp + 0x54], 0
je 0x140029ebe
mov rax, qword [rsp + 0x60]
mov rdi, qword [rax]
cmp dword [rdi + 0x1b4], 0
jne 0x140029e7d
mov rcx, rax
mov dword [rdi + 0x1b4], 1
mov dword [rdi + 0x110], 1
call fcn.140047d30
test eax, eax
je 0x140029e78
mov ecx, dword [rdi]
call fcn.14003da60
mov rax, qword [rsp + 0x60]
mov edx, dword [r15 + 0xbc]
cmp edx, 0xffffffff
je 0x140029fd5
mov r9d, dword [rsp + 0x6c]
mov r8d, ebx
mov dword [rsp + 0x38], 1
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], r12d
call fcn.140056e30
xor r12d, r12d
mov qword [rbp - 0x68], r12
jmp 0x140029f67
mov r14, qword [rsp + 0x60]
xor eax, eax
cmp qword [r15 + 0x90], rax
setne al
mov rdi, qword [r14]
cmp dword [rdi + 0x1b4], 0
jne 0x140029efe
mov rcx, r14
mov dword [rdi + 0x1b4], 1
mov dword [rdi + 0x110], eax
call fcn.140047d30
test eax, eax
je 0x140029efe
mov ecx, dword [rdi]
call fcn.14003da60
mov eax, dword [r15 + 0xc8]
mov r9d, ebx
mov r8d, dword [rsp + 0x6c]
mov rdx, r15
mov dword [rsp + 0x30], 0
mov rcx, r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
call fcn.140021190
xor r12d, r12d
mov qword [rbp - 0x68], r12
jmp 0x140029f67
call fcn.140084fc0
mov dword [rax], 0x83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.cannot_associate_job_object:__d
call fcn.140046b30
mov edx, 0xff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140029f79
mov rcx, rax
call fcn.14007a8b4
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x140029f8a
mov rcx, rax
call fcn.14007a8b4
mov rcx, r13
call fcn.14007a8b4
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140029fa4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rbp - 0x68]
mov eax, r14d
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140078840
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [r15 + 4]
lea rcx, str.no_channel_for_session__d
call fcn.14004db00
int3