Function at 0x140051790
Capabilities:
Access peb ldr_data
Encode data using xor
Execute command
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140126f00]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rsi, rcx
mov qword [rbp + 0x3f], rcx
movdqa xmm0, xmmword [0x1400ed010]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x11], 0x84
mov byte [rbp - 0xf], 1
movdqa xmm0, xmmword [0x1400ed160]
movdqu xmmword [rbp - 0x51], xmm0
movdqa xmm1, xmmword [0x1400ed240]
movdqu xmmword [rbp - 0x41], xmm1
mov dword [rbp - 0x31], 0xcbd7c5c4
mov dword [rbp - 0x2d], 0x9d9a9d9a
mov dword [rbp - 0x29], 0xaea8dcdb
mov word [rbp - 0x25], 0xe2
mov byte [rbp - 0x23], 1
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x51], al
inc rcx
cmp rcx, 0x2d
jb 0x140051820
mov byte [rbp - 0x23], 0
lea rax, [rbp - 0x51]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x140051840
mov rdx, qword [rsi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x140051b1c
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140051870
mov rax, qword [rsi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x51]
mov r8, rsi
movzx edx, byte [rbp - 0x59]
lea rcx, [rbp + 0x1f]
call fcn.140049cc0
nop
cmp byte [rbp - 0xf], 0
je 0x1400518b4
xor ecx, ecx
nop dword [rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x21], al
inc rcx
cmp rcx, 0x11
jb 0x1400518a0
mov byte [rbp - 0xf], 0
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x51]
call fcn.140003590
nop
lea r8, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae r8, qword [rbp + 0x1f]
mov r9, qword [rbp + 0x2f]
xor edx, edx
lea rcx, [rbp - 0x51]
call fcn.1400033e0
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140051956
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051951
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051951
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6f64
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400519a8
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400519a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400519a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6f64
movdqa xmm0, xmmword [0x140111b00]
movdqu xmmword [rbp + 7], xmm0
mov byte [rbp - 9], 0
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400519f7
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400519f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400519f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6f64
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140051a86
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140051a86
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x6fb4eb9d
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140051a81
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140051a60
cmp r8d, 0x93c04cd
je 0x140051a8b
test r9d, r9d
jne 0x140051a40
mov rax, qword [rax]
jmp 0x140051a10
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
xor ecx, ecx
call rdx
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140051add
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051ad8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b15
mov rcx, r8
call fcn.1400e6f64
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400e6f00
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400021a0
nop
int3