Function at 0x180046b30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov qword [rbp + 0x128], 0xfffffffffffffffe
mov qword [rsp + 0x550], rbx
mov rax, qword [0x180111b10]
xor rax, rsp
mov qword [rbp + 0x3f8], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x140], rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
lea rbx, [rcx + 0x20]
mov qword [rsp + 0x30], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
call fcn.180048d90
mov qword [rbx], rax
cmp qword [rdi + 0x18], 8
jb 0x180046bbb
mov rcx, qword [rdi]
jmp 0x180046bbe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, rax
lea rcx, [rbp + 0x130]
call fcn.180063600
nop
mov rdx, rax
mov rcx, r14
call fcn.18002f7d0
nop
mov rbx, qword [rbp + 0x138]
test rbx, rbx
je 0x180046c09
lock dec dword [rbx + 8]
jne 0x180046c09
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x180046c09
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov rax, qword [r14]
test rax, rax
je 0x1800472dd
cmp qword [rax], 0
je 0x1800472dd
test rax, rax
mov r12, r15
je 0x180046c2a
mov r12, qword [rax]
movsxd r13, dword [r12 + 0x3c]
add r13, r12
mov eax, dword [r13 + 0x2c]
mov ebx, dword [r13 + 0x50]
sub ebx, eax
lea edx, [rbx + rax]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180046cf8
call fcn.180047760
mov rdx, rax
lea rcx, [rbp + 0x290]
call fcn.1800071b0
nop
mov rdx, rdi
mov rcx, rax
call fcn.1800072f0
mov rdx, rax
lea rcx, [rbp + 0x148]
call fcn.180007370
nop
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.18004c380
nop
cmp qword [rax + 0x18], 0x10
jb 0x180046ca1
mov rax, qword [rax]
mov qword [rbp], rax
lea rdx, [rbp]
lea rcx, [rbp + 0xf8]
call fcn.180085490
nop
cmp qword [rbp + 0x38], 0x10
jb 0x180046cc6
mov rcx, qword [rbp + 0x20]
call fcn.180085648
mov qword [rbp + 0x38], setsockopt
mov qword [rbp + 0x30], r15
mov byte [rbp + 0x20], 0
lea rax, vtable.message_exception.0
mov qword [rbp + 0xf8], rax
lea rdx, [0x18010f350]
lea rcx, [rbp + 0xf8]
call fcn.18008aed8
nop
movzx r8d, byte [rbp + 0x390]
mov rdx, rax
lea rcx, [r14 + 0x10]
call fcn.180048e90
mov rcx, qword [r14 + 0x10]
mov eax, dword [r13 + 0x2c]
mov r8d, ebx
lea rdx, [rax + r12]
add rcx, rax
call fcn.180085770
mov eax, dword [r13 + 0x88]
add rax, r12
mov qword [rbp - 0x10], rax
mov ecx, dword [rax + 0x20]
add rcx, r12
mov qword [rbp - 8], rcx
mov edx, dword [rax + 0x1c]
add rdx, r12
mov qword [rbp + 8], rdx
mov r8d, dword [rax + 0x24]
add r8, r12
mov qword [rbp + 0x10], r8
xor esi, esi
mov r15d, esi
cmp dword [rax + 0x18], esi
jbe 0x1800472d5
nop
mov eax, r15d
mov r14d, dword [rcx + rax*4]
add r14, r12
movzx eax, word [r8 + rax*2]
mov ebx, dword [rdx + rax*4]
mov ecx, dword [r13 + 0x88]
cmp ebx, ecx
jb 0x1800471a5
add ecx, dword [r13 + 0x8c]
cmp ebx, ecx
jae 0x1800471a5
lea rdx, [r12 + rbx]
mov qword [rbp + 0x3a8], rsi
mov qword [rbp + 0x3b0], rsi
mov qword [rbp + 0x3b0], setsockopt
mov qword [rbp + 0x3a8], rsi
mov byte [rbp + 0x398], 0
cmp byte [rdx], 0
jne 0x180046dc5
mov r8, rsi
jmp 0x180046dda
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180046dd0
lea rcx, [rbp + 0x398]
call fcn.180005b80
nop
mov byte [rbp + 0x390], 0x2e
mov rsi, qword [rbp + 0x3a8]
test rsi, rsi
je 0x180046e64
cmp rsi, 1
jb 0x180046e64
lea rdi, [rbp + 0x398]
cmp qword [rbp + 0x3b0], 0x10
cmovae rdi, qword [rbp + 0x398]
test rsi, rsi
je 0x180046e64
mov r8, rsi
mov edx, 0x2e
mov rcx, rdi
call fcn.180085f20
mov rbx, rax
test rax, rax
je 0x180046e64
cmp byte [rax], 0x2e
je 0x180046e48
sub rdi, rax
dec rdi
add rsi, rdi
lea rdi, [rax + 1]
jmp 0x180046e17
lea rax, [rbp + 0x398]
cmp qword [rbp + 0x3b0], 0x10
cmovae rax, qword [rbp + 0x398]
sub rbx, rax
jmp 0x180046e68
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x398]
call fcn.18002ec40
nop
mov rdx, rax
lea rcx, [rbp + 0x3d8]
call fcn.18004c310
nop
cmp qword [rbp + 0xd8], 0x10
jb 0x180046ea8
mov rcx, qword [rbp + 0xc0]
call fcn.180085648
mov qword [rbp + 0xd8], setsockopt
xor esi, esi
mov qword [rbp + 0xd0], rsi
mov byte [rbp + 0xc0], sil
lea r8, [rbx + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x398]
call fcn.18002ec40
nop
mov rdx, rax
lea rcx, [rbp + 0x3b8]
call fcn.18004c310
nop
cmp qword [rbp + 0x78], 0x10
jb 0x180046efc
mov rcx, qword [rbp + 0x60]
call fcn.180085648
mov qword [rbp + 0x78], setsockopt
mov qword [rbp + 0x70], rsi
mov byte [rbp + 0x60], 0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x78], setsockopt
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x60], 0
cmp byte [r14], 0
jne 0x180046f34
mov r8, rsi
jmp 0x180046f4a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x180046f40
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.180005b80
nop
lea rdx, [rbp + 0x3d8]
lea rcx, [rbp + 0x110]
call fcn.180046900
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rbx, qword [rax + 8]
mov rdi, qword [rax]
test rbx, rbx
je 0x180046f9b
lock inc dword [rbx + 0xc]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180046f9b
lock dec dword [rcx + 0xc]
jne 0x180046f9b
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea rax, [rsp + 0x20]
mov qword [rbp + 0x120], rax
mov dword [rbp - 0x80], esi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x3b8]
lea rcx, [rbp - 0x78]
call fcn.180006360
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
test rbx, rbx
je 0x180047014
lock inc dword [rbx + 0xc]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180047014
lock dec dword [rcx + 0xc]
jne 0x180047014
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180047033
lock dec dword [rcx + 0xc]
jne 0x180047033
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xa0]
call fcn.18004c310
nop
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.180047ef0
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.1800479f0
nop
cmp qword [rbp + 0xb8], 8
jb 0x180047075
mov rcx, qword [rbp + 0xa0]
call fcn.180085648
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], rsi
mov word [rbp + 0xa0], si
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1800470a4
lock dec dword [rcx + 0xc]
jne 0x1800470a4
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
cmp qword [rbp - 0x60], 8
jb 0x1800470b4
mov rcx, qword [rbp - 0x78]
call fcn.180085648
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
mov rbx, qword [rbp + 0x118]
test rbx, rbx
je 0x1800470ee
lock dec dword [rbx + 8]
jne 0x1800470ee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x1800470ee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180047100
mov rcx, qword [rsp + 0x60]
call fcn.180085648
mov qword [rsp + 0x78], setsockopt
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x60], 0
cmp qword [rbp + 0x3d0], 8
jb 0x180047129
mov rcx, qword [rbp + 0x3b8]
call fcn.180085648
mov qword [rbp + 0x3d0], 7
mov qword [rbp + 0x3c8], rsi
mov word [rbp + 0x3b8], si
cmp qword [rbp + 0x3f0], 8
jb 0x180047158
mov rcx, qword [rbp + 0x3d8]
call fcn.180085648
mov qword [rbp + 0x3f0], 7
mov qword [rbp + 0x3e8], rsi
mov word [rbp + 0x3d8], si
cmp qword [rbp + 0x3b0], 0x10
jb 0x180047187
mov rcx, qword [rbp + 0x398]
call fcn.180085648
mov qword [rbp + 0x3b0], setsockopt
mov qword [rbp + 0x3a8], rsi
mov byte [rbp + 0x398], 0
jmp 0x1800472b4
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
cmp byte [r14], 0
jne 0x1800471cd
mov r8, rsi
jmp 0x1800471db
or r8, 0xffffffffffffffff
inc r8
cmp byte [r14 + r8], 0
jne 0x1800471d1
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.180005b80
nop
mov dword [rbp - 0x48], ebx
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.18004c310
nop
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.180047ef0
mov rcx, rax
lea rdx, [rbp - 0x48]
call fcn.1800479f0
nop
cmp qword [rbp + 0x58], 8
jb 0x180047245
mov rcx, qword [rbp + 0x40]
call fcn.180085648
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rsi
mov word [rbp + 0x40], si
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18004726f
lock dec dword [rcx + 0xc]
jne 0x18004726f
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
cmp qword [rbp - 0x28], 8
jb 0x18004727f
mov rcx, qword [rbp - 0x40]
call fcn.180085648
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
cmp qword [rsp + 0x58], 0x10
jb 0x1800472a1
mov rcx, qword [rsp + 0x40]
call fcn.180085648
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
inc r15d
mov rax, qword [rbp - 0x10]
cmp r15d, dword [rax + 0x18]
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp + 8]
mov r8, qword [rbp + 0x10]
jb 0x180046d60
mov r14, qword [rbp + 0x18]
mov rax, r14
jmp 0x18004738f
call fcn.180047640
mov rdx, rax
lea rcx, [rbp + 0x190]
call fcn.1800071b0
nop
mov rdx, rdi
mov rcx, rax
call fcn.1800072f0
mov rdx, rax
lea rcx, [rbp + 0x168]
call fcn.180007370
nop
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.18004c380
nop
cmp qword [rax + 0x18], 0x10
jb 0x180047327
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xe0]
call fcn.180085490
nop
cmp qword [rbp + 0x98], 0x10
jb 0x180047354
mov rcx, qword [rbp + 0x80]
call fcn.180085648
mov qword [rbp + 0x98], setsockopt
mov qword [rbp + 0x90], r15
mov byte [rbp + 0x80], 0
lea rax, vtable.message_exception.0
mov qword [rbp + 0xe0], rax
lea rdx, [0x18010f350]
lea rcx, [rbp + 0xe0]
call fcn.18008aed8
nop
mov rcx, qword [rbp + 0x3f8]
xor rcx, rsp
call fcn.180085420
mov rbx, qword [rsp + 0x550]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret