Function at 0x140043040
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
lea rbp, [rax - 0x258]
sub rsp, 0x340
mov rax, qword [0x1400b2040]
xor rax, rsp
mov qword [rbp + 0x230], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], bx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
or r12d, 0xffffffff
mov r13d, 0x811c9dc5
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x14004310e
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x14004310e
mov esi, dword [r10 + 0x20]
add r9d, r12d
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov r11d, r13d
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140043109
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400430ea
cmp r11d, 0x9053f9c2
je 0x140043113
test r9d, r9d
jne 0x1400430d0
mov rax, qword [rax]
jmp 0x1400430ab
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [r10 + 0x24]
add rax, r8
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r8
movabs rax, 0x88154cc0f2ca6a0f
mov qword [rbp + 0x1f0], rax
movabs rax, 0x618e98990b47842c
mov qword [rbp + 0x1f8], rax
movabs rax, 0x5ff692ee75ff3da1
mov qword [rbp + 0x200], rax
movabs rax, 0x1e9dd5d73de5981e
mov qword [rbp + 0x208], rax
movabs rcx, 0xa87021a580be124a
mov qword [rsp + 0x30], rcx
movabs rcx, 0x13e1ecfa6e2dea65
mov qword [rsp + 0x38], rcx
movabs rcx, 0x5f93ea8b5bcc4b81
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rbp + 0x1f0]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmmword [rbp + 0x200]
movdqa xmmword [rbp - 0x80], xmm1
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0xfde9
call r10
movsxd r14, eax
test eax, eax
jle 0x140043350
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.140041018
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x14004326d
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x14004326d
mov esi, dword [r10 + 0x20]
add r9d, r12d
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov r11d, r13d
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140043268
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140043249
cmp r11d, 0x9053f9c2
je 0x140043272
test r9d, r9d
jne 0x14004322f
mov rax, qword [rax]
jmp 0x14004320a
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [r10 + 0x24]
add rax, r8
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r8
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rax, qword [rbp - 0x70]
movabs rcx, 0x88154cc0f2ca6a0f
mov qword [rbp + 0x210], rcx
movabs rcx, 0x618e98990b47842c
mov qword [rbp + 0x218], rcx
movabs rcx, 0x5ff692ee75ff3da1
mov qword [rbp + 0x220], rcx
movabs rcx, 0x1e9dd5d73de5981e
mov qword [rbp + 0x228], rcx
movabs rdx, 0xa87021a580be124a
mov qword [rsp + 0x50], rdx
movabs rdx, 0x13e1ecfa6e2dea65
mov qword [rsp + 0x58], rdx
movabs rdx, 0x5f93ea8b5bcc4b81
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp + 0x210]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmmword [rbp + 0x220]
movdqa xmmword [rbp - 0x80], xmm1
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0xfde9
call r10
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
movsxd rcx, dword [rdx + 0x3c]
mov r10d, dword [rcx + rdx + 0x88]
add r10, rdx
cmp r10, rdx
je 0x1400433c6
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400433c6
mov esi, dword [r10 + 0x20]
add r9d, r12d
lea rcx, [rsi + r9*4]
mov r8d, dword [rcx + rdx]
add r8, rdx
mov r11d, r13d
mov cl, byte [r8]
inc r8
test cl, cl
je 0x1400433c1
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x1400433a1
cmp r11d, 0x185776b5
je 0x1400433cb
test r9d, r9d
jne 0x140043386
mov rax, qword [rax]
jmp 0x140043361
mov ecx, dword [r10 + 0x1c]
add rcx, rdx
mov eax, dword [r10 + 0x24]
add rax, rdx
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, rdx
xor edx, edx
lea ecx, [rdx + 2]
call r8
mov r14, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x4c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x50], 0x238
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
movsxd rcx, dword [rdx + 0x3c]
mov r10d, dword [rcx + rdx + 0x88]
add r10, rdx
cmp r10, rdx
je 0x140043482
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140043482
mov esi, dword [r10 + 0x20]
add r9d, r12d
lea rcx, [rsi + r9*4]
mov r8d, dword [rcx + rdx]
add r8, rdx
mov r11d, r13d
mov cl, byte [r8]
inc r8
test cl, cl
je 0x14004347d
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x140043459
cmp r11d, 0xe81b808
je 0x1400435b4
test r9d, r9d
jne 0x14004343e
mov rax, qword [rax]
jmp 0x140043419
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
movsxd rcx, dword [rdx + 0x3c]
mov r10d, dword [rcx + rdx + 0x88]
add r10, rdx
cmp r10, rdx
je 0x1400434fd
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400434fd
mov esi, dword [r10 + 0x20]
add r9d, r12d
lea rcx, [rsi + r9*4]
mov r8d, dword [rcx + rdx]
add r8, rdx
mov r11d, r13d
mov cl, byte [r8]
inc r8
test cl, cl
je 0x1400434f8
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x1400434d8
cmp r11d, 0x28976ce8
je 0x140043502
test r9d, r9d
jne 0x1400434bd
mov rax, qword [rax]
jmp 0x140043498
mov ecx, dword [r10 + 0x1c]
add rcx, rdx
mov eax, dword [r10 + 0x24]
add rax, rdx
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, rdx
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x24]
call r8
test eax, eax
je 0x140043625
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
movsxd rcx, dword [rdx + 0x3c]
mov r10d, dword [rcx + rdx + 0x88]
add r10, rdx
cmp r10, rdx
je 0x1400435af
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400435af
mov esi, dword [r10 + 0x20]
add r9d, r12d
lea rcx, [rsi + r9*4]
mov r8d, dword [rcx + rdx]
add r8, rdx
mov r11d, r13d
mov cl, byte [r8]
inc r8
test cl, cl
je 0x1400435aa
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x14004358a
cmp r11d, 0xabe5123f
je 0x1400435b4
test r9d, r9d
jne 0x14004356f
mov rax, qword [rax]
jmp 0x14004354a
mov eax, dword [r10 + 0x24]
add rax, rdx
mov ecx, dword [r10 + 0x1c]
movzx eax, word [rax + r9*2]
add rcx, rdx
mov r8d, dword [rcx + rax*4]
add r8, rdx
lea rdx, [rbp - 0x50]
mov rcx, r14
call r8
test eax, eax
jne 0x140043487
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x70]
call fcn.14004108c
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140061e40
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
mov ebx, 0x3000
jmp 0x1400435ea