Function at 0x140047390
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 qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1400d5058]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x30], 0x130
mov r12d, edx
mov rax, qword gs:[0x60]
mov r15, rcx
mov qword [rsp + 0x28], rcx
xor r13d, r13d
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x140047479
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x140047479
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xb63c0986
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx ecx, byte [r9]
inc r9
test cl, cl
je 0x140047474
nop
movsx edx, cl
lea r9, [r9 + 1]
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
movzx ecx, byte [r9 - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test cl, cl
jne 0x140047440
cmp r10d, 0xd4acea5e
je 0x140047481
test r11d, r11d
jne 0x140047420
mov rax, qword [rax]
jmp 0x1400473f0
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]
xor edx, edx
add rax, rbx
lea ecx, [rdx + 2]
call rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400474ce
mov qword [r15], r13
mov r8, rax
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], r13b
nop dword [rax]
inc r8
cmp byte [r8 + r13], r13b
jne 0x1400474c0
jmp 0x140047629
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 0x14004756a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14004756a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x5aa7190b
lea rcx, [r14 + r11*4]
mov r8d, dword [rcx + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x140047565
movsx ecx, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x140047530
cmp r10d, 0x298a81f5
je 0x140047572
test r11d, r11d
jne 0x140047510
mov rax, qword [rax]
jmp 0x1400474e0
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]
lea rdx, [rsp + 0x30]
add rax, rbx
mov rcx, rbp
call rax
mov rcx, rbp
cmp r12d, dword [rsp + 0x38]
jne 0x1400475d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], r13
lea rax, [rsp + 0x5c]
mov qword [r15 + 0x10], r13
mov r8, 0xffffffffffffffff
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], r13b
inc r8
cmp byte [rax + r8], r13b
jne 0x1400475c1
lea rdx, [rsp + 0x5c]
jmp 0x14004762b
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400475fd
mov rcx, rbp
cmp r12d, dword [rsp + 0x38]
je 0x140047667
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400475e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], r13
mov r8, 0xffffffffffffffff
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], r13b
nop
inc r8
cmp byte [r8 + r13], r13b
jne 0x140047620
xor edx, edx
mov rcx, r15
call fcn.140004f40
mov rax, r15
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400aa330
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], r13
lea rax, [rsp + 0x5c]
mov qword [r15 + 0x10], r13
mov r8, 0xffffffffffffffff
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], r13b
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x140047690
lea rdx, [rsp + 0x5c]
jmp 0x14004762b