Function at 0x140045d30
Capabilities:
Attach user process memory
Contain obfuscated stackstrings
Find process by pid
Free user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1a8
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x808]
lea rdx, [rsp + 0x88]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x1400466a0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140045de8
mov dword [rsp + 0x5c], 1
jmp 0x140045df0
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x58], al
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140017eb0
movzx eax, al
test eax, eax
je 0x140045e5e
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x808]
mov dword [rsp + 0x20], eax
lea r9, [0x140047b60]
lea r8, [0x1400469d0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x88], 0
je 0x140045e54
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x1400466e0
mov rax, qword [rsp + 0x1c0]
cmp dword [rax], 2
jne 0x140045f72
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x818], 0
je 0x140045f72
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x820]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x818]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x820]
mov r8d, 0x4b555341
mov edx, eax
mov ecx, 0x100
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x820]
mov rcx, qword [rsp + 0x1c0]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rcx + 0x818]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
jmp 0x140045f72
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x180], 0x29
mov byte [rsp + 0x181], 0x98
mov byte [rsp + 0x182], 0x15
mov byte [rsp + 0x183], 0x9a
mov byte [rsp + 0x184], 7
mov byte [rsp + 0x185], 0x9c
mov byte [rsp + 0x186], 1
mov byte [rsp + 0x187], 0x9e
mov byte [rsp + 0x188], 3
mov byte [rsp + 0x189], 0x90
mov byte [rsp + 0x18a], 0x43
mov byte [rsp + 0x18b], 0x92
mov byte [rsp + 0x18c], 0x3f
mov byte [rsp + 0x18d], 0x94
mov byte [rsp + 0x18e], 0x39
mov byte [rsp + 0x18f], 0x96
mov byte [rsp + 0x190], 0x3b
mov byte [rsp + 0x191], 0x88
mov byte [rsp + 0x192], 0x89
mov byte [rsp + 0x193], 0x8a
mov byte [rsp + 0x52], 0
jmp 0x14004603a
movzx eax, byte [rsp + 0x52]
inc al
mov byte [rsp + 0x52], al
movzx eax, byte [rsp + 0x52]
cmp rax, 0x14
jae 0x140046094
movzx eax, byte [rsp + 0x52]
movzx eax, byte [rsp + rax + 0x180]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
xor eax, 0x98
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x52]
movzx ecx, byte [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
not eax
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x52]
movzx ecx, byte [rsp + 0x50]
mov byte [rsp + rax + 0x180], cl
jmp 0x14004602f
mov rax, qword [rsp + 0x1c0]
add rax, 4
mov rdx, rax
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x1c0]
cmp dword [rax], 2
jne 0x1400461cc
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x1c0]
add rax, 0x404
mov rcx, qword [rsp + 0x1c0]
mov ecx, dword [rcx + 0x820]
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x804]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x810]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x824]
mov byte [rsp + 0x20], al
mov r9d, ecx
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x88]
call fcn.140042bf0
mov dword [rsp + 0x54], eax
jmp 0x14004619c
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x88], 0
je 0x1400461c3
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x54]
jmp 0x1400466e0
movzx r8d, byte [rsp + 0x58]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call fcn.14003f140
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140046217
lea r9, [0x140047b60]
lea r8, [0x140047bf0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x54], 0xc0000225
cmp dword [rsp + 0x54], 0
jl 0x140046333
mov byte [rsp + 0x170], 0x65
mov byte [rsp + 0x171], 0x4c
mov byte [rsp + 0x172], 0x5d
mov byte [rsp + 0x173], 0x66
mov byte [rsp + 0x174], 0x5a
mov byte [rsp + 0x175], 0x4f
mov byte [rsp + 0x176], 0x43
mov byte [rsp + 0x177], 0x62
mov byte [rsp + 0x178], 0x5d
mov byte [rsp + 0x179], 0x5c
mov byte [rsp + 0x17a], 0x23
mov byte [rsp + 0x53], 0
jmp 0x14004628c
movzx eax, byte [rsp + 0x53]
inc al
mov byte [rsp + 0x53], al
movzx eax, byte [rsp + 0x53]
cmp rax, 0xb
jae 0x1400462e6
movzx eax, byte [rsp + 0x53]
movzx eax, byte [rsp + rax + 0x170]
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x51]
xor eax, 0xd6
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x53]
movzx ecx, byte [rsp + 0x51]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x51]
not eax
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x53]
movzx ecx, byte [rsp + 0x51]
mov byte [rsp + rax + 0x170], cl
jmp 0x140046281
xor r9d, r9d
mov r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x78]
call fcn.14003e9e0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140046333
lea r9, [0x140047b60]
lea r8, [0x140047c20]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x54], 0xc0000225
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
movzx eax, al
test eax, eax
je 0x14004638b
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax + 0x808]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0xac], 0
lea rcx, [rsp + 0xa0]
call fcn.14003df30
cmp dword [rsp + 0x54], 0
jl 0x140046658
mov qword [rsp + 0xb0], 0
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x1400463c7
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
call fcn.140045ae0
mov qword [rsp + 0x80], rax
jmp 0x1400463e1
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
call fcn.1400457c0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x1c0]
cmp dword [rax], 0
jne 0x14004653b
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1c0]
movzx r9d, byte [rax + 0x80c]
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.140017c10
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x98], 0
jge 0x140046475
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
lea r9, [0x140047b60]
lea r8, [0x140047c60]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140046539
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x5e0], 0
je 0x14004650c
mov rax, qword [rsp + 0x1c0]
cmp dword [rax + 0x804], 0
je 0x14004650c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x1c0]
lea rdi, [rax + 0x210]
lea rsi, [rcx + 0x404]
mov ecx, 0x3d0
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rax, 0x210
mov rcx, qword [rsp + 0x1c0]
mov ecx, dword [rcx + 0x804]
mov rdx, qword [rsp + 0x90]
add rcx, qword [rdx + 0x5e0]
lea rdx, [rsp + 0x98]
mov qword [rsp + 0x20], rdx
mov r9b, 1
mov r8d, 4
mov rdx, rax
call fcn.140017c10
jmp 0x140046539
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x5e0], 0
jne 0x140046539
lea r9, [0x140047b60]
lea r8, [0x140047ca0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x1400465b4
mov rax, qword [rsp + 0x1c0]
cmp dword [rax], 1
jne 0x140046583
mov rax, qword [rsp + 0x1c0]
add rax, 0x404
mov r9, rax
mov rax, qword [rsp + 0x1c0]
mov r8d, dword [rax + 0x804]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.140045540
mov dword [rsp + 0x54], eax
jmp 0x1400465b4
mov rax, qword [rsp + 0x1c0]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea r9, [0x140047b60]
lea r8, [0x140047cd0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x54], 0xc000000d
cmp dword [rsp + 0x54], 0
jl 0x140046635
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x5e0]
mov qword [rax + 0x828], rcx
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x80d]
test eax, eax
je 0x14004660e
movzx r8d, byte [rsp + 0x58]
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x5e0]
mov rcx, qword [rsp + 0x88]
call fcn.14003fb20
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x80e]
test eax, eax
je 0x140046635
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x5e0]
call fcn.140017aa0
mov r9d, 0x8000
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
cmp dword [rsp + 0xa0], 0
je 0x140046690
mov dword [rsp + 0xa4], 1
mov dword [rsp + 0xa8], 1
mov dword [rsp + 0xac], 1
lea rcx, [rsp + 0xa0]
call fcn.14003df30
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400466c3
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
lea r9, [0x140047b60]
lea r8, [0x140046820]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x88], 0
je 0x1400466dc
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140021990
add rsp, 0x1a8
pop rdi
pop rsi
ret