Function at 0x140034240
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13ff8]
mov eax, 0x140f8
call fcn.14009f8b0
sub rsp, rax
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0x13fe0], rax
movsxd rbx, dword [rbp + 0x14078]
mov rdi, rdx
movsxd r12, r8d
mov r15, rcx
xor edx, edx
movsxd r13, r9d
mov r8d, 0x3ffe
lea rcx, [rbp - 0x20]
call fcn.14007a110
lea rcx, [0x14010f5c0]
or esi, 0xffffffff
mov rax, qword [rcx + rbx*8 + 0x20]
mov rcx, rdi
mov r14, qword [rax + 0x90]
call fcn.140033fd0
mov rbx, rax
test rax, rax
jne 0x1400342cd
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x1400344d1
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14007a110
lea rdx, [0x14010f5c0]
mov dword [rsp + 0x70], WSAGetLastError
mov rax, qword [rdx + r12*8 + 0x20]
xor edi, edi
mov dword [rbp - 0x54], 0x10a
mov rcx, qword [rax + 0x90]
mov rax, qword [rdx + r13*8 + 0x20]
mov qword [rbp - 0x40], rcx
mov rcx, qword [rax + 0x90]
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x80], rdi
call fcn.140034190
test eax, eax
je 0x1400343bb
xor edx, edx
lea rcx, [rbp + 0x3fe0]
mov r8d, 0x10000
call fcn.14007a110
mov edx, 1
mov rcx, r14
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edx, 0x8000
lea rcx, [rbp + 0x3fe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400344f6
mov eax, dword [rbp + 0x14070]
lea r9, str._lsconhost.exe___headless___width__d___height__d___signal_0x_x_____ls
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], r14
mov edx, 0x1fff
mov dword [rsp + 0x30], eax
mov r8d, edx
mov eax, dword [rbp + 0x14068]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x3fe0]
mov qword [rsp + 0x20], rax
call fcn.140034130
mov rax, qword [rbp - 0x38]
xor edx, edx
xor ecx, ecx
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
jmp 0x1400343fa
mov rax, qword [0x1400ed428]
lea r9, str.__ls_ssh_shellhost.exe_____pty__ls
mov edx, 0x1fff
mov qword [rsp + 0x28], rbx
mov r8d, edx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140034130
mov eax, dword [rbp + 0x14068]
mov dword [rbp - 0x60], eax
mov eax, dword [rbp + 0x14070]
mov dword [rbp - 0x5c], eax
mov qword [rbp - 0x30], r14
lea rdx, [rbp - 0x20]
lea rcx, str.pty_commandline:__ls
call fcn.140046c70
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140034491
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.140031ce0
cmp eax, 0xffffffff
jne 0x14003447b
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400344bc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov esi, edi
mov dword [r15], eax
jmp 0x1400344bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rbp - 0x20]
lea rdx, str.exec_command_with_pty
lea rcx, str._s___failed_to_execute__ls__error:_d
call fcn.140046c10
call fcn.140084fc0
mov dword [rax], 0x83
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbx
call fcn.14007a8b4
mov eax, esi
mov rcx, qword [rbp + 0x13fe0]
xor rcx, rsp
call fcn.140078840
add rsp, 0x140f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.unable_to_retrieve_system32_path
call fcn.14004db00
int3