Function at 0x1400503f0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x84], 0xffffffff
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0x58]
call fcn.140064930
cmp eax, 0xffffffff
je 0x140050471
lea rcx, [rsp + 0x50]
call fcn.140064930
cmp eax, 0xffffffff
je 0x140050471
lea rcx, [rsp + 0x68]
call fcn.140064930
cmp eax, 0xffffffff
jne 0x140050476
jmp 0x140050a82
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + rax + 0x58]
call fcn.140003370
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x58]
call fcn.140003370
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + rax + 0x50]
call fcn.140003370
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x50]
call fcn.140003370
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + rax + 0x68]
call fcn.140003370
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x68]
call fcn.140003370
mov eax, 4
imul rax, rax, 1
mov r8d, 1
mov edx, 8
mov ecx, dword [rsp + rax + 0x58]
call fcn.140063fd0
mov eax, 4
imul rax, rax, 0
mov r8d, 1
mov edx, 8
mov ecx, dword [rsp + rax + 0x50]
call fcn.140063fd0
mov eax, 4
imul rax, rax, 0
mov r8d, 1
mov edx, 8
mov ecx, dword [rsp + rax + 0x68]
call fcn.140063fd0
cmp dword [0x1400e74fc], 0
je 0x140050544
jmp 0x140050572
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1d0]
call fcn.140053fa0
test eax, eax
je 0x140050562
jmp 0x140050a82
mov dword [0x1400e74fc], 1
xor eax, eax
test eax, eax
jne 0x140050539
cmp dword [0x1400e74d8], 0
jne 0x140050590
mov rax, qword [rsp + 0x1d8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax + 0x20]
call fcn.14005e980
mov rax, qword [rsp + 0x1d8]
cmp dword [rax + 0xc8], 3
jl 0x1400505bb
lea rax, str.echo_This_service_allows_sftp_connections_only.
mov qword [rsp + 0x1e0], rax
mov dword [rsp + 0x1e8], 0
mov rax, qword [rsp + 0x1d8]
mov rax, qword [rax + 0x10]
mov r8, qword [rsp + 0x1e0]
mov rdx, qword [0x1400e8780]
mov rcx, qword [rax + 0x28]
call fcn.14005be50
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400505f1
jmp 0x140050a82
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], WSAGetLastError
mov dword [rsp + 0xd8], 5
mov dword [rsp + 0xdc], 5
mov rax, qword [rsp + 0x1d8]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0xe0], eax
mov rax, qword [rsp + 0x1d8]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0xec], 0x10a
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + rax + 0x58]
call fcn.140064160
mov qword [rsp + 0x100], rax
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x50]
call fcn.140064160
mov qword [rsp + 0x108], rax
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x68]
call fcn.140064160
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0x70]
call fcn.14005f460
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400506cb
jmp 0x140050a82
cmp dword [rsp + 0x1e8], 0
je 0x1400506e6
lea rax, [0x1400ddf14]
mov qword [rsp + 0xa0], rax
jmp 0x1400506f5
lea rax, str._no
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x70]
lea rcx, str.Executing_command:__s_with_spty
call fcn.140002df0
cmp dword [rsp + 0x1e8], 0
je 0x140050784
mov r8d, 1
mov edx, 8
mov rax, qword [rsp + 0x1d8]
mov ecx, dword [rax + 0x30]
call fcn.140063fd0
mov rax, qword [rsp + 0x1d8]
mov r9d, dword [rax + 0x34]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call fcn.14006a810
cmp eax, 0xffffffff
jne 0x140050763
jmp 0x140050a82
mov rax, qword [rsp + 0x1d8]
mov ecx, dword [rax + 0x34]
call fcn.140063bc0
mov rax, qword [rsp + 0x1d8]
mov dword [rax + 0x34], 0xffffffff
jmp 0x1400507fb
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
jne 0x1400507fb
call fcn.1400825b0
mov dword [rax], 0x83
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR._Cannot_create_process___u_._n
call fcn.140002d00
jmp 0x140050a82
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x90
rep stosb byte [rdi], al
mov dword [rsp + 0x130], 0x2800
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_CreateJobObjectW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1400508b8
mov r9d, 0x90
lea r8, [rsp + 0x120]
mov edx, 9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_SetInformationJobObject]
test eax, eax
je 0x1400508b8
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_job_l2_1_0.dll_AssignProcessToJobObject]
test eax, eax
je 0x1400508b8
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x1400508fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.cannot_associate_job_object:__d
call fcn.140002d00
call fcn.1400825b0
mov dword [rax], 0x83
mov edx, 0xff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140050a82
mov rax, qword [rsp + 0x1d8]
mov ecx, dword [rsp + 0x98]
mov dword [rax + 0x20], ecx
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
call fcn.1400668b0
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + rax + 0x58]
call fcn.140063bc0
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x50]
call fcn.140063bc0
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp + rax + 0x68]
call fcn.140063bc0
cmp dword [rsp + 0x1e8], 0
je 0x1400509d0
mov r9d, dword [0x1400eade4]
mov r8d, dword [0x1400eade0]
mov edx, 1
mov rcx, qword [0x1400ee240]
call fcn.140010e60
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rsp + rax + 0x50]
mov r8d, dword [rsp + rcx + 0x58]
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1d0]
call fcn.140053230
jmp 0x140050a77
mov rax, qword [rsp + 0x1d8]
cmp qword [rax + 0x90], 0
je 0x1400509ef
mov dword [rsp + 0x80], 1
jmp 0x1400509fa
mov dword [rsp + 0x80], 0
mov r9d, dword [0x1400eade4]
mov r8d, dword [0x1400eade0]
mov edx, dword [rsp + 0x80]
mov rcx, qword [0x1400ee240]
call fcn.140010e60
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0
mov edx, 4
imul rdx, rdx, 1
mov dword [rsp + 0x30], 0
mov rdi, qword [rsp + 0x1d8]
mov edi, dword [rdi + 0xc8]
mov dword [rsp + 0x28], edi
mov eax, dword [rsp + rax + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + rcx + 0x50]
mov r8d, dword [rsp + rdx + 0x58]
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1d0]
call fcn.140053230
mov dword [rsp + 0x84], 0
cmp qword [rsp + 0x70], 0
jne 0x140050a94
mov rcx, qword [rsp + 0x70]
call fcn.140077f70
cmp qword [rsp + 0x78], 0
jne 0x140050aa6
mov rcx, qword [rsp + 0x78]
call fcn.140077f70
cmp qword [rsp + 0x60], 0
je 0x140050ab9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140075860
add rsp, 0x1c0
pop rdi
ret