Function at 0x140039608
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
xorps xmm0, xmm0
lea rdx, [rbp - 0x69]
xor eax, eax
lea rcx, [0x14003a570]
movups xmmword [0x140033938], xmm0
mov qword [0x140033948], rax
xor r14b, r14b
xor r12d, r12d
call fcn.14001e7f4
lea rdx, [rbp - 0x51]
lea rcx, [0x14003a590]
call fcn.14001e7f4
lea rdx, [rbp - 0x39]
lea rcx, [0x14003a5c0]
call fcn.14001e7f4
xor r9d, r9d
lea rdx, [0x14003a5f0]
xor r8d, r8d
xor ecx, ecx
call fcn.140004160
mov r13b, al
mov byte [rbp + 0x67], al
call fcn.140038f88
mov rsi, rax
test rax, rax
jne 0x14003969d
lea rdx, [0x14003a630]
jmp 0x140039a71
add rsi, 0x20
cmp dword [rsi + 0x10], 0xfff
ja 0x140039691
lea rcx, [0x14003a650]
call fcn.140023754
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400396cb
lea rdx, [0x14003a650]
jmp 0x140039a71
mov edx, dword [rsi + 0x10]
mov r8b, 1
mov rcx, qword [0x140033700]
shl edx, 2
call fcn.140015224
mov r12, rax
test rax, rax
je 0x140039a7e
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140039a6a
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140039734
mov r8d, dword [rsi + 0x10]
mov rcx, r12
mov rdx, qword [rsi]
shl r8, 2
call fcn.140028c00
mov r14b, 1
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test r14b, r14b
je 0x140039a6a
lea rcx, [0x14003a690]
xor r14b, r14b
call fcn.140006ca4
mov qword [rbp - 0x71], rax
test rax, rax
je 0x140039a7e
lea r9, [rbp + 0x7f]
mov rcx, rax
lea r8, [rsp + 0x30]
lea rdx, [0x14003a6a0]
call fcn.1400373d4
mov dword [rbp + 0x77], eax
mov r15d, eax
test eax, eax
je 0x140039a7e
mov rbx, qword [rsp + 0x30]
cmp byte [rbx], 0x4e
jne 0x140039a1b
cmp byte [rbx + 1], 0x74
jne 0x140039a1b
add rbx, 2
mov qword [rsp + 0x30], rbx
xor edi, edi
cmp byte [rdi + rbx], r14b
je 0x1400397c4
inc edi
cmp edi, 0x40
jb 0x1400397b7
test r13b, r13b
jne 0x1400398ad
cmp edi, 0x12
jne 0x1400397fd
movabs rcx, 0x6165724372657355
cmp qword [rbx], rcx
jne 0x1400397fd
movabs rcx, 0x776f646e69576574
cmp qword [rbx + 8], rcx
jne 0x1400397fd
cmp word [rbx + 0x10], 0x7845
je 0x1400399f9
cmp edi, 7
jne 0x14003981c
cmp dword [rbx], 0x49696447
jne 0x14003981c
cmp word [rbx + 4], 0x696e
jne 0x14003981c
cmp byte [rbx + 6], 0x74
je 0x1400399f9
cmp edi, 0xc
jne 0x14003983d
movabs rcx, 0x5374696e49696447
cmp qword [rbx], rcx
jne 0x14003983d
cmp dword [rbx + 8], 0x6c6f6f70
je 0x1400399f9
cmp edi, 0x1b
jne 0x14003985c
mov r8d, edi
lea rdx, [0x14003a6b0]
mov rcx, rbx
call fcn.140026470
test eax, eax
je 0x1400399f9
cmp edi, 0x21
jne 0x14003987b
mov r8d, edi
lea rdx, [0x14003a6d0]
mov rcx, rbx
call fcn.140026470
test eax, eax
je 0x1400399f9
cmp edi, 0x14
jne 0x1400398ad
movabs rcx, 0x5474655372657355
cmp qword [rbx], rcx
jne 0x1400398b2
movabs rcx, 0x7365446461657268
cmp qword [rbx + 8], rcx
jne 0x1400398b2
cmp dword [rbx + 0x10], 0x706f746b
jne 0x1400398b2
jmp 0x1400399f9
cmp edi, 8
jb 0x1400398c5
movabs rcx, 0x4944446444696447
cmp qword [rbx], rcx
jne 0x1400398c5
mov al, 1
jmp 0x1400398c7
xor al, al
lea r9, [rbp - 0x51]
mov byte [rsp + 0x20], al
lea r8, [rbp - 0x69]
mov edx, edi
mov rcx, rbx
call fcn.14001ed70
test al, al
je 0x1400399f9
mov rcx, qword [rbp - 0x71]
mov edx, r15d
and qword [rbp - 0x79], 0
and dword [rbp + 0x6f], 0
call fcn.140037658
test rax, rax
je 0x1400399ef
mov rcx, rax
call fcn.140038c2c
mov r15d, eax
cmp eax, 0xfffffffe
je 0x1400399f9
cmp eax, 0xffffffff
je 0x1400399ef
lea rax, [rbp + 0x6f]
mov r8d, r15d
lea r9, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rsi
call fcn.14001e6d8
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x1400399ef
mov rcx, qword [0x140033700]
lea edx, [rdi + 0x41]
mov r8b, 1
and r15d, 0xfff
call fcn.140015224
xor ecx, ecx
mov r13, rax
test rax, rax
je 0x140039a7e
mov word [rax + 0x10], r15w
lea r8, [rbp - 0x39]
movzx eax, word [rbp + 0x6f]
mov edx, edi
mov word [r13 + 0x12], ax
mov eax, dword [rbp + 0x77]
mov dword [r13 + 0x14], eax
mov qword [r13 + 0x18], rbx
mov qword [r13 + 0x20], rcx
mov qword [r13 + 0x28], rcx
mov qword [r13 + 0x30], rcx
mov rcx, qword [rsp + 0x30]
call fcn.14001e73c
test eax, eax
mov word [r13 + 0x3a], di
lea rcx, [r13 + 0x3c]
mov r8d, edi
setne al
mov byte [r13 + 0x38], al
mov rdx, qword [rsp + 0x30]
call fcn.140028c00
mov r8, r13
mov byte [rdi + r13 + 0x3c], r14b
xor edx, edx
lea rcx, [0x140033938]
call fcn.14000d45c
cmp r15d, dword [0x140033930]
mov r13b, byte [rbp + 0x67]
jbe 0x1400399f9
mov dword [0x140033930], r15d
jmp 0x1400399f9
mov rcx, qword [rsp + 0x30]
call fcn.140038bdc
mov rcx, qword [rbp - 0x71]
lea r9, [rbp + 0x7f]
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.1400373d4
mov dword [rbp + 0x77], eax
mov r15d, eax
test eax, eax
jne 0x140039794
cmp dword [0x140033930], 0x64
mov r14b, 1
jae 0x140039a3e
xor r8d, r8d
lea rdx, [0x14003a700]
mov ecx, 0xc1010459
call fcn.140014f9c
xor r14b, r14b
cmp dword [0x140033930], 0x7d0
jb 0x140039a63
xor r8d, r8d
lea rdx, [0x14003a710]
mov ecx, 0xc1010459
call fcn.140014f9c
xor r14b, r14b
jmp 0x140039a7e
test r14b, r14b
jne 0x140039a85
jmp 0x140039a7e
lea rdx, [0x14003a670]
xor r8d, r8d
mov ecx, 0xc1010459
call fcn.140014f9c
and dword [0x140033930], 0
lea rcx, [rbp - 0x69]
call fcn.14001e390
lea rcx, [rbp - 0x51]
call fcn.14001e390
lea rcx, [rbp - 0x39]
call fcn.14001e390
test r12, r12
je 0x140039ab3
mov edx, dword [rsi + 0x10]
mov rcx, r12
shl edx, 2
call fcn.14000ee44
mov al, r14b
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret