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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov ebp, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r14, qword [rsp + 0x1b0]
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, rdx
call fcn.1401a9c30
mov rcx, qword [rdi + 0x50]
mov qword [rdi + 0x50], rax
test rcx, rcx
je 0x140149393
call fcn.1400a1350
mov rcx, rsi
call fcn.1401a9c30
mov r13, rax
xor eax, eax
xor esi, esi
cmp qword [r14 + 0x68], rax
setne sil
shl esi, 0x13
or esi, 0x40c
cmp qword [rdi + 0x30], rax
je 0x1401493ca
call fcn.1400a12a0
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
mov r12, qword [rsp + 0x1c0]
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
xor edx, edx
mov qword [rax + 0x10], rdx
movzx ebp, bpl
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdx
mov rdx, rbx
mov r8, r13
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14014951f
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.1400a0520
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14014944f
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140149533
mov rbx, qword [rdi + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140149609
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xb0]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1401495d5
mov rdx, qword [rsp + 0xb0]
lea rbp, [rsp + 0xa0]
mov qword [rbp], 0
mov rcx, rbp
call fcn.140004730
mov r14, qword [rbp]
mov ecx, 0x4c
call fcn.140190820
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x3c], xmm0
lea rax, [rsp + 0xac]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov edx, 0x1f
mov r8, rbp
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140149554
mov r15, qword [rbp]
test r15, r15
je 0x140149554
mov ecx, 0x44
call fcn.140190820
mov r14, rax
mov rcx, rax
mov rdx, r15
call fcn.140146750
mov sil, 1
jmp 0x140149559
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov edi, reloc.WS2_32.dll_select
jmp 0x1401496c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, setsockopt
jmp 0x1401496b8
xor r14d, r14d
xor esi, esi
mov rcx, rbp
call fcn.140190860
lea rcx, [rsp + 0xa0]
call fcn.140004790
test sil, sil
je 0x1401495bc
lea r8, [rdi + 0x58]
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r14
call fcn.140149b00
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8, rbp
xor r9d, r9d
call fcn.140107190
test eax, eax
sete sil
mov rcx, rbp
call fcn.140149c90
jmp 0x1401495be
xor esi, esi
test r14, r14
je 0x1401495cb
mov rcx, r14
call fcn.140190860
test sil, sil
je 0x1401495d5
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0xb0]
mov qword [rcx], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x140149692
lea rcx, [rdi + 0x20]
call fcn.140004790
lea rcx, [rsp + 0x60]
call fcn.140004790
mov rcx, qword [rsp + 0x1b8]
lea rdx, [rsp + 0x68]
call fcn.1400a0710
test al, al
je 0x140149656
mov rcx, qword [rsp + 0x68]
call fcn.1400bbee0
mov qword [rdi + 0x48], rax
test rax, rax
je 0x140149674
lea rcx, [rsp + 0x68]
lea rbx, [rsp + 0xb0]
mov rdx, rbx
call fcn.1400a0810
mov rcx, rdi
mov rdx, rbx
call fcn.1400a0570
xor edi, edi
jmp 0x1401496b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, reloc.WS2_32.dll_socket
jmp 0x1401496b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x1401496b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x60]
call fcn.140004790
mov edi, reloc.WS2_32.dll_setsockopt
lea rcx, [rsp + 0x68]
call fcn.1400a05d0
test r13, r13
je 0x1401496cf
mov rcx, r13
call fcn.1400a1350
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret