Function at 0x14021c770
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x40
cmp dword [0x140348ca4], 1
mov r12, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x38], r14
je 0x14021c938
mov edx, 0x44892540
mov cl, reloc.WLDAP32.dll_Ordinal_26
mov eax, edx
shr eax, cl
test al, 1
je 0x14021c7ba
xor cl, cl
mov eax, edx
inc cl
shr eax, cl
test al, 1
jne 0x14021c7e6
xor ecx, ecx
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021c7e6
add cl, 2
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021c7e6
mov cl, 9
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021c7e6
mov cl, ntohs
shr edx, cl
test dl, 1
je 0x14021c938
mov edx, 0x6c6fd6d3
mov cl, reloc.WLDAP32.dll_Ordinal_27
mov eax, edx
shr eax, cl
test al, 1
je 0x14021c801
mov cl, 2
mov eax, edx
inc cl
shr eax, cl
test al, 1
jne 0x14021c833
mov cl, 2
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021c833
add cl, cl
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021c833
mov cl, 9
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021c833
mov cl, listen
shr edx, cl
test dl, 1
jne 0x14021c833
mov r8d, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14021c918
mov rax, qword gs:[0x60]
mov ebp, 0xffffffff
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14021c8da
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14021c8da
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
add r11d, ebp
mov r10d, 0x33d7cded
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx r8d, byte [r9]
inc r9
test r8b, r8b
je 0x14021c8d5
movsx ecx, r8b
lea r9, [r9 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r9 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r8b, r8b
jne 0x14021c8a0
cmp r10d, 0xf845ce0e
je 0x14021c8e2
test r11d, r11d
jne 0x14021c880
mov rax, qword [rax]
jmp 0x14021c850
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
call rax
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub r8d, ecx
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
mulsd xmm1, qword [0x140326d90]
movsd qword [0x140345db0], xmm1
jmp 0x14021ca34
mov ecx, 0x89
mov qword [rsp + 0x30], r15
call fcn.1402622d0
imul rax, rax, 0x19660d
xor edx, edx
mov ebp, 0xffffffff
div rbp
lea r15, [rdx + 0x3c6ef35f]
xor edx, edx
mov rax, r15
div rbp
imul rax, rbp
sub r15, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14021ca0a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14021ca0a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
add r11d, ebp
mov r10d, 0xa320464b
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx r8d, byte [r9]
inc r9
test r8b, r8b
je 0x14021ca05
movsx ecx, r8b
lea r9, [r9 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r9 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r8b, r8b
jne 0x14021c9d0
cmp r10d, 0x5de86c49
je 0x14021ca12
test r11d, r11d
jne 0x14021c9b0
mov rax, qword [rax]
jmp 0x14021c980
mov edx, dword [rsi + 0x24]
mov ecx, r15d
add rdx, rbx
movzx r8d, word [rdx + r11*2]
mov edx, dword [rsi + 0x1c]
add rdx, rbx
mov eax, dword [rdx + r8*4]
add rax, rbx
call rax
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov edx, 0xb39148ee
mov rdi, qword [rsp + 0x68]
mov eax, edx
mov rsi, qword [rsp + 0x60]
mov cl, Ordinal_30
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
shr eax, cl
test al, 1
je 0x14021ca68
xor cl, cl
mov eax, edx
inc cl
shr eax, cl
test al, 1
jne 0x14021ca9e
xor ecx, ecx
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021ca9e
add cl, 2
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021ca9e
mov cl, 9
mov eax, edx
shr eax, cl
test al, 1
jne 0x14021ca9e
mov cl, reloc.WS2_32.dll_recvfrom
shr edx, cl
test dl, 1
jne 0x14021ca9e
test r12, r12
jne 0x14021ca9e
xor al, al
add rsp, 0x40
pop r12
ret
mov al, 1
add rsp, 0x40
pop r12
ret