Function at 0x140004770
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 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10d0]
mov eax, 0x11d0
call fcn.140039310
sub rsp, rax
mov rax, qword [0x14007e090]
xor rax, rsp
mov qword [rbp + 0x10c0], rax
mov rsi, rdx
mov r14, rcx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov edi, dword [rcx + r11 + 0x88]
add rdi, r11
cmp rdi, r11
je 0x140004836
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140004836
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r11]
add rdx, r11
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004831
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004810
cmp r8d, 0xe23b96e7
je 0x14000483b
test r9d, r9d
jne 0x1400047f0
mov rax, qword [rax]
jmp 0x1400047c0
mov ecx, dword [rdi + 0x1c]
add rcx, r11
mov eax, dword [rdi + 0x24]
add rax, r11
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r11
movabs r12, 0x9543eb88de3fda57
mov qword [rbp + 0xb0], r12
movabs r13, 0x18d622c5261d2a88
mov qword [rbp + 0xb8], r13
movabs rax, 0xf4279bddb14baf16
mov qword [rsp + 0x50], rax
movabs rax, 0x18d622c5266f4ffc
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [rbp + 0xb0]
pxor xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rsp + 0x50]
call r10
mov r15, rax
test rax, rax
jne 0x140004977
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r13
movabs rax, 0x7e9ff7c2da2083c1
mov qword [rbp + 0x90], rax
movabs rax, 0xa4a10d1718b05032
mov qword [rbp + 0x98], rax
movabs rcx, 0xe12685fabb4bb41e
mov qword [rsp + 0x30], rcx
movabs rcx, 0x71b744e548785ac7
mov qword [rsp + 0x38], rcx
movabs rcx, 0x7e9ff7c2f444e6ad
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rbp + 0x80]
pxor xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [rsp + 0x40]
pxor xmm1, xmmword [rbp + 0x90]
movdqa xmmword [rsp + 0x40], xmm1
lea rdx, [rsp + 0x30]
lea rcx, [0x14007fae0]
call fcn.14000d920
mov rcx, rax
call fcn.14000dbe0
xor al, al
jmp 0x14000510a
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov edi, dword [rcx + r11 + 0x88]
add rdi, r11
cmp rdi, r11
je 0x140004a06
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140004a06
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [r11 + r9*4]
mov edx, dword [rcx + rbx]
add rdx, r11
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004a01
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 0x1400049e0
cmp r8d, 0xf4cf8bbc
je 0x140004a0b
test r9d, r9d
jne 0x1400049c0
mov rax, qword [rax]
jmp 0x140004990
mov ecx, dword [rdi + 0x1c]
add rcx, r11
mov eax, dword [rdi + 0x24]
add rax, r11
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r11
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call r10
mov r14, rax
test rax, rax
jne 0x140004bae
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r13
movabs rax, 0x7e9ff7c2da2083c1
mov qword [rbp + 0x90], rax
movabs rax, 0xa4a10d1718b05032
mov qword [rbp + 0x98], rax
movabs rcx, 0xe12685fabb4bb41e
mov qword [rsp + 0x30], rcx
movabs rcx, 0x59ba509048785ac7
mov qword [rsp + 0x38], rcx
movabs rcx, 0x50fb92aeb341e5e1
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rbp + 0x80]
pxor xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [rsp + 0x40]
pxor xmm1, xmmword [rbp + 0x90]
movdqa xmmword [rsp + 0x40], xmm1
lea rdx, [rsp + 0x30]
lea rcx, [0x14007fae0]
call fcn.14000d920
mov rcx, rax
call fcn.14000dbe0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140004b86
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140004b86
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004b81
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004b60
cmp r8d, 0x4ddde966
je 0x140004b8b
test r9d, r9d
jne 0x140004b40
mov rax, qword [rax]
jmp 0x140004b10
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
mov rcx, r15
call rax
xor al, al
jmp 0x14000510a
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x60]
call fcn.14003b0e0
mov r8d, 0x20
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140009f30
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x70], 6
je 0x140004e00
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r13
movabs rax, 0x7e9ff7c2da2083c1
mov qword [rbp + 0x90], rax
movabs rax, 0xa4a10d1718b05032
mov qword [rbp + 0x98], rax
movabs rax, 0xe1638fedb256bb11
mov qword [rsp + 0x30], rax
movabs rax, 0x7da243a0547e0ae7
mov qword [rsp + 0x38], rax
movabs rax, 0x18bf9ba3b94fefe1
mov qword [rsp + 0x40], rax
movabs rax, 0xa4a10d1736d53c5b
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rbp + 0x80]
pxor xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [rsp + 0x40]
pxor xmm1, xmmword [rbp + 0x90]
movdqa xmmword [rsp + 0x40], xmm1
lea rdx, [rsp + 0x30]
lea rcx, [0x14007fae0]
call fcn.14000d920
mov rcx, rax
call fcn.14000dbe0
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 0x140004d26
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140004d26
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, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004d21
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004d00
cmp r8d, 0x4ddde966
je 0x140004d2b
test r9d, r9d
jne 0x140004ce0
mov rax, qword [rax]
jmp 0x140004cb0
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, r14
call rdx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140004dd6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140004dd6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004dd1
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004db0
cmp r8d, 0x4ddde966
je 0x140004ddb
test r9d, r9d
jne 0x140004d90
mov rax, qword [rax]
jmp 0x140004d60
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, r15
call rdx
xor bl, bl
jmp 0x140005099
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov edi, dword [rcx + r11 + 0x88]
add rdi, r11
cmp rdi, r11
je 0x140004e96
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140004e96
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rbx + r9*4]
mov ecx, dword [rcx + r11]
add rcx, r11
mov r8d, 0x811c9dc5
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140004e91
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140004e70
cmp r8d, 0x960cb4c6
je 0x140004e9b
test r9d, r9d
jne 0x140004e50
mov rax, qword [rax]
jmp 0x140004e20
mov ecx, dword [rdi + 0x1c]
add rcx, r11
mov eax, dword [rdi + 0x24]
add rax, r11
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r11
lea r9, [rbp + 0x70]
mov r8d, 0x1000
lea rdx, [rbp + 0xc0]
mov rcx, r14
call r10
test eax, eax
je 0x140004eee
mov eax, dword [rbp + 0x70]
test eax, eax
je 0x140004eee
mov r8d, eax
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.14000a550
jmp 0x140004e00
lea rcx, [rsp + 0x68]
call fcn.14000be10
test rax, rax
jne 0x140004f30
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x58], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x70]
and eax, 0x17
mov dword [rsp + rcx + 0x70], eax
mov edx, dword [rsp + rcx + 0x74]
and edx, eax
jne 0x140005134
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
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 0x140004fc6
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140004fc6
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, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004fc1
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004fa0
cmp r8d, 0x4ddde966
je 0x140004fcb
test r9d, r9d
jne 0x140004f80
mov rax, qword [rax]
jmp 0x140004f50
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, r14
call rdx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140005076
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140005076
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140005071
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140005050
cmp r8d, 0x4ddde966
je 0x14000507b
test r9d, r9d
jne 0x140005030
mov rax, qword [rax]
jmp 0x140005000
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
mov rcx, r15
call rdx
mov bl, 1
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140009e80
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x5c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1400374f4
nop
movzx eax, bl
mov rcx, qword [rbp + 0x10c0]
xor rcx, rsp
call fcn.140038af0
mov rbx, qword [rsp + 0x1220]
add rsp, 0x11d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140005142
lea rbx, str.ios_base::badbit_set
jmp 0x140005157
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400021e0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140002b10
lea rdx, [0x14007c388]
lea rcx, [rbp + 0x80]
call fcn.14003a8a4
int3