Function at 0x18002cdb8
Capabilities:
Create pipe
Create reverse shell
Create two anonymous pipes
Impersonate user
Query environment variable

Disassembly:
push rbp
sub rsp, 0x540
lea rbp, [rsp + 0x60]
mov qword [rsp], rax
mov rax, 0x53c
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x18002cdd0
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x2b0], rsi
mov qword [rbp + 0x2a8], rbx
mov qword [rbp + 0x4f0], rcx
mov qword [rbp + 0x4f8], rdx
mov qword [rbp + 0x500], r8
mov dword [rbp + 0x508], r9d
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x4d0], rax
mov byte [rbp + 0x14b], 0
mov byte [rbp + 0x148], 0
mov byte [rbp + 0x14c], 0
mov byte [rbp + 0x149], 0
mov byte [rbp + 0x14a], 0
mov dword [rbp + 0x150], 0x57
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x28], 0
lea rax, [rbp + 0x58]
mov edx, 1
mov rcx, qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov qword [rbp + 0x218], rcx
mov rcx, rax
mov rax, qword [rbp + 0x218]
call rax
mov dword [rbp + 0x154], eax
lea rax, [rbp + 0x58]
mov edx, 1
mov ecx, 0
mov ebx, 0
mov rsi, qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp + 0x220], rcx
mov rcx, rax
mov rax, qword [rbp + 0x220]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x158], eax
mov qword [rbp + 0x88], 0
mov rax, qword [rbp + 0x500]
lea rdx, [rbp + 0x2c0]
mov ecx, 0x104
mov rbx, qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rbp + 0x228], ecx
mov rcx, rax
mov eax, dword [rbp + 0x228]
mov r8d, eax
call rbx
mov dword [rbp + 0x15c], eax
mov eax, dword [rbp + 0x15c]
test eax, eax
jne 0x18002cf34
lea rax, [rbp + 0x2c0]
lea rdx, [0x1801026ac]
mov rcx, rax
call fcn.180062660
mov qword [rbp + 0x1d8], rax
mov eax, dword [rbp + 0x508]
test eax, eax
je 0x18002d193
mov dword [rbp + 0x38], 0x18
mov dword [rbp + 0x48], 0
lea rax, [rbp + 0x58]
mov qword [rbp + 0x40], rax
mov eax, 0x400
mov edx, 0
mov ecx, dword [rbp + 0x508]
mov rbx, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [rbp + 0x230], ecx
mov ecx, eax
mov eax, dword [rbp + 0x230]
mov r8d, eax
call rbx
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1e8]
test rax, rax
je 0x18002d321
mov byte [rbp + 0x148], 1
mov rax, qword [rbp + 0x1e8]
mov edx, reloc.WS2_32.dll_inet_addr
lea rcx, [rbp + 0x128]
mov rbx, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov qword [rbp + 0x238], rcx
mov rcx, rax
mov rax, qword [rbp + 0x238]
mov r8, rax
call rbx
mov dword [rbp + 0x164], eax
mov eax, dword [rbp + 0x164]
test eax, eax
je 0x18002d175
movzx eax, byte [rbp + 0x148]
test eax, eax
jne 0x18002d00c
lea rax, [0x1801026b4]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x128]
mov edx, 0x2000000
lea rcx, [rbp + 0x38]
mov ebx, 2
mov dword [rsp + 0x20], 1
lea rsi, [rbp + 0x88]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov qword [rbp + 0x240], rcx
mov rcx, rax
mov rax, qword [rbp + 0x240]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x174], eax
mov eax, dword [rbp + 0x174]
test eax, eax
je 0x18002d137
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp + 0x184], eax
mov byte [rbp + 0x149], 1
mov eax, dword [rbp + 0x184]
lea rdx, [rbp + 8]
mov rcx, qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov qword [rbp + 0x248], rcx
mov ecx, eax
mov rax, qword [rbp + 0x248]
call rax
mov dword [rbp + 0x190], eax
mov byte [rbp + 0x14a], 1
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x18c], eax
movzx eax, byte [rbp + 0x14a]
test eax, eax
jne 0x18002d0d5
lea rax, [0x1801026c0]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x18c]
cmp eax, 1
jne 0x18002d142
mov byte [rbp + 0x149], 1
mov rax, qword [rbp + 0x88]
mov edx, reloc.WS2_32.dll_inet_ntoa
lea rcx, [rbp + 8]
mov ebx, 4
mov rsi, qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov qword [rbp + 0x250], rcx
mov rcx, rax
mov rax, qword [rbp + 0x250]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x1a4], eax
mov byte [rbp + 0x14a], 1
mov eax, dword [rbp + 0x1a4]
mov dword [rbp + 0x18c], eax
jmp 0x18002d142
mov qword [rbp + 0x88], 0
movzx eax, byte [rbp + 0x148]
test eax, eax
jne 0x18002d15c
lea rax, [0x1801026b4]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x128]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x198], eax
mov rax, qword [rbp + 0x1e8]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x16c], eax
jmp 0x18002d321
mov rax, qword [rbp + 0x510]
movzx eax, word [rax]
movzx eax, ax
test eax, eax
je 0x18002d214
mov rax, qword [rbp + 0x510]
mov edx, 0
mov rcx, qword [rbp + 0x518]
mov ebx, 2
mov dword [rsp + 0x20], 0
lea rsi, [rbp + 0x88]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_LogonUserW]
mov qword [rbp + 0x258], rcx
mov rcx, rax
mov rax, qword [rbp + 0x258]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x160], eax
mov eax, dword [rbp + 0x160]
test eax, eax
jne 0x18002d321
mov qword [rbp + 0x88], 0
jmp 0x18002d321
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp + 0x1f0], rax
mov byte [rbp + 0x14b], 1
mov rax, qword [rbp + 0x1f0]
mov edx, reloc.WS2_32.dll_inet_addr
lea rcx, [rbp + 0x138]
mov rbx, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov qword [rbp + 0x260], rcx
mov rcx, rax
mov rax, qword [rbp + 0x260]
mov r8, rax
call rbx
mov dword [rbp + 0x168], eax
mov eax, dword [rbp + 0x168]
test eax, eax
je 0x18002d321
movzx eax, byte [rbp + 0x14b]
test eax, eax
jne 0x18002d289
lea rax, [0x1801026c4]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x138]
mov edx, 0x2000000
mov ecx, 0
mov ebx, 2
mov dword [rsp + 0x20], 1
lea rsi, [rbp + 0x88]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov qword [rbp + 0x268], rcx
mov rcx, rax
mov rax, qword [rbp + 0x268]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x17c], eax
mov eax, dword [rbp + 0x17c]
test eax, eax
jne 0x18002d2ee
mov qword [rbp + 0x88], 0
movzx eax, byte [rbp + 0x14b]
test eax, eax
jne 0x18002d308
lea rax, [0x1801026c4]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x138]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x194], eax
mov rax, qword [rbp + 0x88]
test rax, rax
jne 0x18002d389
mov eax, 5
mov rdx, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, eax
call rdx
mov eax, 5
mov dword [rbp + 0x1c8], eax
lea rax, reloc.WS2_32.dll_inet_addr
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x4d0]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x1c8]
mov rbx, qword [rbp + 0x2a8]
mov rsi, qword [rbp + 0x2b0]
lea rsp, [rbp + 0x4e0]
pop rbp
ret
mov eax, dword [rbp + 0x520]
test eax, eax
je 0x18002d495
mov dword [rbp + 0x38], 0x18
mov dword [rbp + 0x48], 1
lea rax, [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x18]
mov rdx, qword [rbp + 0x4f0]
lea rdx, [rdx + 0x58]
lea rcx, [rbp + 0x38]
mov ebx, 0
mov rsi, qword [sym.imp.KERNEL32.dll_CreatePipe]
mov qword [rbp + 0x270], rcx
mov rcx, rax
mov rax, qword [rbp + 0x270]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x170], eax
mov rax, qword [rbp + 0x4f0]
lea rax, [rax + 0x60]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x38]
mov ebx, 0
mov rsi, qword [sym.imp.KERNEL32.dll_CreatePipe]
mov qword [rbp + 0x278], rcx
mov rcx, rax
mov rax, qword [rbp + 0x278]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x178], eax
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x58]
mov edx, 1
mov ecx, 0
mov rbx, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp + 0x280], ecx
mov rcx, rax
mov eax, dword [rbp + 0x280]
mov r8d, eax
call rbx
mov dword [rbp + 0x180], eax
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x60]
mov edx, 1
mov ecx, 0
mov rbx, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp + 0x288], ecx
mov rcx, rax
mov eax, dword [rbp + 0x288]
mov r8d, eax
call rbx
mov dword [rbp + 0x188], eax
lea rax, [rbp + 0x98]
mov edx, 0
mov ecx, 0x68
mov qword [rbp + 0x290], rcx
mov rcx, rax
mov rax, qword [rbp + 0x290]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0x1f8], rax
lea rax, [rbp + 0x108]
mov edx, 0
mov ecx, 0x18
mov qword [rbp + 0x298], rcx
mov rcx, rax
mov rax, qword [rbp + 0x298]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0x200], rax
mov dword [rbp + 0x98], WSASetLastError
mov word [rbp + 0xd8], 0
mov dword [rbp + 0xd4], 1
mov eax, dword [rbp + 0x520]
test eax, eax
je 0x18002d550
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0xf8], rax
mov eax, dword [rbp + 0xd4]
or eax, 0x100
mov dword [rbp + 0xd4], eax
mov qword [rbp + 0x208], 0
mov byte [rbp + 0x14a], 1
mov dword [rbp + 0x18c], 0
movzx eax, byte [rbp + 0x14a]
test eax, eax
jne 0x18002d586
lea rax, [0x1801026c0]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x18c]
cmp eax, 1
jne 0x18002d5a2
mov eax, dword [rbp + 0xd4]
or eax, 0x400
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x88]
mov edx, 0
mov rcx, qword [rbp + 0x4f8]
mov ebx, 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x30], 0x210
mov rsi, qword [rbp + 0x208]
mov qword [rsp + 0x38], rsi
lea rsi, [rbp + 0x2c0]
mov qword [rsp + 0x40], rsi
lea rsi, [rbp + 0x98]
mov qword [rsp + 0x48], rsi
lea rsi, [rbp + 0x108]
mov qword [rsp + 0x50], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov qword [rbp + 0x2a0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x2a0]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x19c], eax
mov byte [rbp + 0x14a], 1
mov eax, dword [rbp + 0x19c]
mov dword [rbp + 0x18c], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x1a0], eax
mov byte [rbp + 0x14c], 1
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 0x1a8], eax
mov rax, qword [rbp + 0x208]
test rax, rax
je 0x18002d67f
mov rax, qword [rbp + 0x208]
mov rcx, rax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov dword [rbp + 0x1ac], eax
mov rax, qword [rbp + 0x88]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1b0], eax
mov eax, dword [rbp + 0x520]
test eax, eax
je 0x18002d6ce
mov rax, qword [rbp + 0x18]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1b4], eax
mov rax, qword [rbp + 0x28]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1b8], eax
movzx eax, byte [rbp + 0x14a]
test eax, eax
jne 0x18002d6e8
lea rax, [0x1801026c0]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x18c]
test eax, eax
jne 0x18002d7fb
mov eax, dword [rbp + 0x520]
test eax, eax
je 0x18002d769
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x58]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1c0], eax
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x60]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1c4], eax
mov qword [rbp + 0x210], 0
mov rax, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0x210]
mov qword [rax + 0x60], rdx
mov rax, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0x210]
mov qword [rax + 0x58], rdx
movzx eax, byte [rbp + 0x14c]
test eax, eax
jne 0x18002d783
lea rax, [0x1801026d0]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x1a8]
mov rdx, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, eax
call rdx
movzx eax, byte [rbp + 0x14c]
test eax, eax
jne 0x18002d7ae
lea rax, [0x1801026d0]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x1a8]
mov dword [rbp + 0x1cc], eax
lea rax, reloc.WS2_32.dll_inet_addr
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x4d0]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x1cc]
mov rbx, qword [rbp + 0x2a8]
mov rsi, qword [rbp + 0x2b0]
lea rsp, [rbp + 0x4e0]
pop rbp
ret
mov rax, qword [rbp + 0x110]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1bc], eax
mov rax, qword [rbp + 0x4f0]
mov edx, dword [rbp + 0x118]
mov dword [rax + 0x50], edx
mov rax, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0x108]
mov qword [rax + 0x48], rdx
mov eax, 0
mov dword [rbp + 0x1d0], eax
lea rax, reloc.WS2_32.dll_inet_addr
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x4d0]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x1d0]
mov rbx, qword [rbp + 0x2a8]
mov rsi, qword [rbp + 0x2b0]
lea rsp, [rbp + 0x4e0]
pop rbp
ret