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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400e20c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, r8d
mov r14, rdx
xor r9d, r9d
cmp ecx, 0x7b
ja 0x1400039df
movsxd rax, ecx
lea r9, [0x1400fc2f0]
mov r9, qword [r9 + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
test r9, r9
jne 0x140003a25
mov qword [rbp - 0x18], 0xa
movsd xmm0, qword [str.Select_Key]
movsd qword [rbp - 0x28], xmm0
movzx eax, word [0x1400ca8b8]
mov word [rbp - 0x20], ax
mov byte [rbp - 0x1e], r9b
jmp 0x140003a62
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140003a30
lea rcx, [rbp - 0x28]
cmp rbx, 0xf
ja 0x140003a5a
mov qword [rbp - 0x18], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x28], 0
jmp 0x140003a62
mov rdx, rbx
call fcn.140013710
cmp edi, 1
jne 0x140003ab4
mov rax, qword [rbp - 0x10]
cmp rax, 0xd
jb 0x140003a9f
lea rbx, [rbp - 0x28]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x28]
mov qword [rbp - 0x18], reloc.WS2_32.dll_listen
lea r8d, [rdi + 0xc]
lea rdx, str.Press_the_key
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xd], 0
jmp 0x140003ab4
lea r9, str.Press_the_key
mov edx, reloc.WS2_32.dll_listen
lea rcx, [rbp - 0x28]
call fcn.140013710
mov dword [rbp - 0x30], 0x42aa0000
mov dword [rbp - 0x2c], 0x41c80000
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x30]
call fcn.140044390
test al, al
je 0x140003bb5
test edi, edi
jne 0x140003bb5
mov rax, qword [0x1400ff6a0]
test rax, rax
jne 0x140003b97
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x10]
mov rdi, rsi
nop dword [rax]
mov r9, qword [rdi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x140003b83
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x140003b83
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
lea rax, [rbx + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
mov edx, 0x811c9dc5
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x140003b7e
nop dword [rax]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
test al, al
jne 0x140003b60
cmp edx, 0x60ac7e39
je 0x140003bee
test r8d, r8d
jne 0x140003b40
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rsi
jne 0x140003b10
xor eax, eax
mov qword [0x1400ff6a0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, r14
xor edx, edx
xor ecx, ecx
call rax
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140003c0e
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [r11 + 0x24]
add rax, r9
movzx eax, word [rax + r8*2]
mov eax, dword [rcx + rax*4]
add rax, r9
jmp 0x140003b90
call fcn.1400b6ac0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b6aa0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret