Function at 0x140001900
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov r15, r8
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov r14d, r12d
lea r13, [0x140008070]
mov r9d, 1
sub r9, r13
mov r10d, 2
sub r10, r13
mov r11d, 3
sub r11, r13
mov ebx, 4
sub rbx, r13
mov edi, 5
sub rdi, r13
movabs r12, 0xcccccccccccccccd
nop dword [rax]
lea r8, [r14 + r13]
mov rax, r12
mul r14
shr rdx, 4
lea rax, [rdx + rdx*4]
shl rax, 2
mov rcx, r14
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x50]
xor byte [r8], al
lea rcx, [r8 + r9]
mov rax, r12
mul rcx
shr rdx, 4
lea rax, [rdx + rdx*4]
shl rax, 2
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x50]
xor byte [r8 + 1], al
lea rcx, [r8 + r10]
mov rax, r12
mul rcx
shr rdx, 4
lea rax, [rdx + rdx*4]
shl rax, 2
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x50]
xor byte [r8 + 2], al
lea rcx, [r8 + r11]
mov rax, r12
mul rcx
shr rdx, 4
lea rax, [rdx + rdx*4]
shl rax, 2
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x50]
xor byte [r8 + 3], al
lea rcx, [r8 + rbx]
mov rax, r12
mul rcx
shr rdx, 4
lea rax, [rdx + rdx*4]
shl rax, 2
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x50]
xor byte [r8 + 4], al
lea rcx, [r8 + rdi]
mov rax, r12
mul rcx
shr rdx, 4
lea rax, [rdx + rdx*4]
shl rax, 2
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x50]
xor byte [r8 + 5], al
add r14, 6
cmp r14, 0x1e7200
jb 0x140001980
mov eax, 0x5a4d
cmp word [0x140008070], ax
mov r12d, 0
je 0x140001a9b
lea rdx, str.Invalid_DOS_header.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002960
lea rdx, [0x140002b30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001f66
movsxd rdi, dword [0x1400080ac]
add rdi, r13
cmp dword [rdi], 0x4550
je 0x140001ab6
lea rdx, str.Invalid_NT_header.
jmp 0x140001a7a
mov rax, qword [rsi + 0x10]
mov r8d, 0x400
lea rdx, [rbp + 0x130]
xor ecx, ecx
call rax
cmp dword [rdi], 0x4550
jne 0x140001f66
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xorps xmm1, xmm1
movups xmmword [rbp + 0xc0], xmm1
movups xmmword [rbp + 0xd0], xmm1
movups xmmword [rbp + 0xe0], xmm1
movups xmmword [rbp + 0xf0], xmm1
movups xmmword [rbp + 0x100], xmm1
movups xmmword [rbp + 0x110], xmm1
mov qword [rbp + 0x120], rax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140005590]
mov qword [rbp - 0x50], rax
lea rax, [0x1400054c0]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 4
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x38], rax
mov rdx, r12
mov qword [rbp + 0x30], rdx
mov ecx, r12d
mov dword [rbp + 0x38], ecx
mov r14, qword [r15 + 8]
mov rbx, qword [r15]
cmp rbx, r14
je 0x140001bf9
nop dword [rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001bcd
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140002e20
mov rcx, rax
lea rdx, [0x14000546c]
call fcn.140002960
add rbx, 0x20
cmp rbx, r14
jne 0x140001bc0
mov ecx, dword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov dword [rsp + 0x50], 6
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001c3c
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
test rbx, rbx
je 0x140001c3c
mov rax, qword [rbp - 0x18]
mov r9, qword [rax]
cmp rbx, rdx
cmovb rbx, rdx
jmp 0x140001c5e
test cl, 4
jne 0x140001c92
mov rax, qword [rbp]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001c92
mov rax, qword [rbp - 0x20]
mov r9, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
test rax, rax
je 0x140001c92
lea rcx, [rbp - 0x78]
cmp rbx, 0xf
ja 0x140001c89
mov qword [rbp - 0x68], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x78], 0
jmp 0x140001c92
mov rdx, rbx
call fcn.140002c00
nop
mov rax, qword [rsi + 0x18]
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x130]
call rax
test eax, eax
je 0x140001edc
mov rax, qword [rsi]
mov edx, 0x4d0
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call rax
mov r15, rax
mov qword [rsp + 0x50], rax
mov dword [rax + 0x30], 0x10000b
mov r8, qword [rsi + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call r8
test eax, eax
je 0x140001edc
mov r10, qword [rsi + 0x28]
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rbp + 0xb0]
mov rcx, qword [rsp + 0x70]
call r10
mov rax, qword [rsi + 8]
lea r13, [rdi + 0x30]
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [r13]
mov rcx, qword [rsp + 0x70]
call rax
mov r12, rax
mov r10, qword [rsi + 0x30]
mov r9d, dword [rdi + 0x54]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r8, [0x140008070]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call r10
mov r14d, ebx
cmp bx, word [rdi + 6]
jae 0x140001df7
xor r13d, r13d
lea r15, [0x140008070]
nop dword [rax]
movzx eax, word [rdi + 0x14]
add rax, rbx
mov r10, qword [rsi + 0x30]
mov r9d, dword [rax + rdi + 0x28]
mov r8d, dword [rax + rdi + 0x2c]
add r8, r15
mov edx, dword [rax + rdi + 0x24]
add rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x70]
call r10
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x140001db0
mov r15, qword [rsp + 0x50]
lea r13, [rdi + 0x30]
xor ebx, ebx
mov rax, qword [rsi + 0x30]
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], rbx
mov r9d, 8
mov r8, r13
mov rcx, qword [rsp + 0x70]
call rax
mov eax, dword [rdi + 0x28]
add rax, r12
mov qword [r15 + 0x80], rax
mov rax, qword [rsi + 0x38]
mov rdx, r15
mov rcx, qword [rsp + 0x78]
call rax
mov rax, qword [rsi + 0x40]
mov rcx, qword [rsp + 0x78]
call rax
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140001e7d
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f0e
call fcn.140003324
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
lea rcx, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rdx - 0x50], rcx
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx - 0x54], r8d
lea rcx, [rbp - 0x38]
call fcn.140002760
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, 1
jmp 0x140001f68
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140001f1a
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003324
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
call fcn.140002760
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.1400031f0
mov rbx, qword [rsp + 0x688]
add rsp, 0x640
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret