Function at 0x140055310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r13, rdx
mov qword [rsp + 0x40], rdx
mov r12, rcx
mov dword [rbp + 0x190], 0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x140055375
mov rdx, qword [r12]
mov r8d, 0x20
lea rcx, [rbp + 0x60]
call fcn.1400707d0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x140055cef
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x170], xmm0
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x1b0], rax
mov word [rbp + 0x1b8], 1
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0xa8]
mov qword [rbp + 0x190], rax
test rax, rax
sete byte [rbp + 0x198]
mov byte [rbp + 0x199], 0
mov qword [rbp + 0x170], 0
mov qword [rbp + 0x178], 0
mov qword [rbp + 0x180], 0
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rbp + 0x1b0]
movdqa xmmword [rbp + 0x1b0], xmm0
movaps xmm1, xmmword [rbp + 0x190]
movdqa xmmword [rbp + 0x190], xmm1
movzx esi, byte [rbp + 0x199]
mov rbx, qword [rbp + 0x190]
movzx r15d, byte [rbp + 0x1b8]
mov rdi, qword [rbp + 0x1b0]
test rax, rax
jne 0x140055489
movzx r14d, byte [rbp + 0x198]
jmp 0x1400554a6
test rbx, rbx
je 0x1400554a1
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400554a1
movzx esi, al
jmp 0x1400554a3
xor ebx, ebx
mov r14b, 1
test r15b, r15b
jne 0x1400554c3
test rdi, rdi
je 0x1400554be
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x1400554c0
xor edi, edi
mov r15b, 1
test rbx, rbx
jne 0x140055720
test rdi, rdi
jne 0x140055729
lea rcx, [rbp + 0x70]
call fcn.140071c80
test rax, rax
jne 0x140055500
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rbp + 0x178]
mov r10, qword [rbp + 0x170]
sub rax, r10
mov qword [rbp + 0x1f0], rax
mov r15, 0xffffffffffffffff
mov r9, r15
inc r9
cmp byte [r9 + r13], 0
jne 0x140055522
xor esi, esi
mov r8d, esi
test rax, rax
je 0x14005556e
nop word [rax + rax]
movzx ecx, byte [r10 + r8]
xor edx, edx
mov rax, r8
div r9
xor cl, byte [rdx + r13]
mov byte [r10 + r8], cl
inc r8
mov rax, qword [rbp + 0x178]
mov r10, qword [rbp + 0x170]
sub rax, r10
cmp r8, rax
jb 0x140055540
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
cmp qword [r12 + 0x18], 0xf
jbe 0x14005558c
mov r12, qword [r12]
lea rax, [0x14007eb20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0x190], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
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_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x58], rax
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], rsi
mov rax, qword [0x14008d300]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], rsi
mov r8d, 0x22
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.140071d40
test rax, rax
jne 0x140055661
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x140055c4f
mov rbx, r15
nop dword [rax + rax]
inc rbx
cmp byte [rbx + r13], 0
jne 0x1400556b0
xorps xmm0, xmm0
mov rcx, qword [rbp + 0x178]
mov r14, rcx
mov r8, qword [rbp + 0x170]
sub r14, r8
movdqu xmmword [rbp + 0x1b0], xmm0
mov rax, rsi
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x1c0], rax
mov r12, rsi
mov rdi, rsi
je 0x14005582e
movabs rax, 0x1fffffffffffffff
cmp r14, rax
ja 0x140055d65
lea r14, [r14*8]
test r14, r14
jne 0x1400557a8
mov rdi, rsi
jmp 0x1400557e5
test rdi, rdi
jne 0x1400554d5
test r14b, r14b
jne 0x140055748
test rbx, rbx
je 0x140055746
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140055746
movzx esi, al
jmp 0x140055748
xor ebx, ebx
mov byte [rsp + 0x30], sil
mov rax, qword [rbp + 0x178]
cmp rax, qword [rbp + 0x180]
je 0x140055769
mov byte [rax], sil
inc qword [rbp + 0x178]
jmp 0x140055781
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x178]
lea rcx, [rbp + 0x170]
call fcn.1400728d0
test rbx, rbx
je 0x1400554a1
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400554a1
mov byte [rbp + 0x198], 0
jmp 0x140055489
cmp r14, 0x1000
jb 0x1400557da
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140055d6b
call fcn.140073be8
test rax, rax
je 0x140055c3e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400557e5
mov rcx, r14
call fcn.140073be8
mov rdi, rax
mov rsi, rdi
mov qword [rbp + 0x1b0], rdi
lea r13, [r14 + rdi]
mov qword [rsp + 0x38], r13
mov r12, r13
mov qword [rbp + 0x1c0], r13
mov r8, r14
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rax, r13
mov qword [rbp + 0x1b8], rax
mov rcx, qword [rbp + 0x178]
mov r8, qword [rbp + 0x170]
mov r13, qword [rsp + 0x40]
jmp 0x14005583c
mov rax, qword [rbp + 0x1b8]
mov rsi, qword [rbp + 0x1b0]
mov qword [rbp + 0x190], rax
xor eax, eax
sub r12, rdi
sar r12, 3
test r12, r12
mov r12, qword [rbp + 0x190]
je 0x14005587c
mov rcx, r12
sub rcx, rsi
sar rcx, 3
mov qword [rsi + rax*8], rax
inc rax
cmp rax, rcx
jb 0x140055862
mov rcx, qword [rbp + 0x178]
mov r8, qword [rbp + 0x170]
xor r9d, r9d
mov r10, rcx
sub r10, r8
je 0x1400558d3
nop word [rax + rax]
xor edx, edx
mov rax, r9
div rbx
movsx rax, byte [rdx + r13]
add rax, r9
xor edx, edx
div r10
movzx ecx, byte [r8 + r9]
movzx eax, byte [r8 + rdx]
mov byte [r8 + r9], al
mov byte [r8 + rdx], cl
inc r9
mov rcx, qword [rbp + 0x178]
mov r10, rcx
mov r8, qword [rbp + 0x170]
sub r10, r8
cmp r9, r10
jb 0x140055890
xor r9d, r9d
mov r10, rcx
sub r10, r8
je 0x140055923
nop
xor edx, edx
mov rax, r9
div rbx
movsx rax, byte [rdx + r13]
add rax, r9
xor edx, edx
div r10
movzx ecx, byte [r8 + r9]
movzx eax, byte [r8 + rdx]
mov byte [r8 + r9], al
mov byte [r8 + rdx], cl
inc r9
mov rcx, qword [rbp + 0x178]
mov r10, rcx
mov r8, qword [rbp + 0x170]
sub r10, r8
cmp r9, r10
jb 0x1400558e0
xor r9d, r9d
mov r10, rcx
sub r10, r8
je 0x140055973
nop
xor edx, edx
mov rax, r9
div rbx
movsx rax, byte [rdx + r13]
add rax, r9
xor edx, edx
div r10
movzx ecx, byte [r8 + r9]
movzx eax, byte [r8 + rdx]
mov byte [r8 + r9], al
mov byte [r8 + rdx], cl
inc r9
mov rcx, qword [rbp + 0x178]
mov r10, rcx
mov r8, qword [rbp + 0x170]
sub r10, r8
cmp r9, r10
jb 0x140055930
xorps xmm0, xmm0
xor eax, eax
mov r14, rcx
sub r14, r8
movdqu xmmword [rbp + 0x190], xmm0
mov r13d, eax
mov qword [rbp + 0x1a0], rax
je 0x140055a1f
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140055d71
cmp r14, 0x1000
jb 0x1400559db
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140055d5f
call fcn.140073be8
test rax, rax
je 0x140055bf1
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400559e6
mov rcx, r14
call fcn.140073be8
mov rdi, rax
mov qword [rbp + 0x190], rdi
lea r13, [rdi + r14]
mov qword [rbp + 0x1a0], r13
mov r8, r14
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov r14, r13
mov qword [rbp + 0x198], r13
mov rcx, qword [rbp + 0x178]
mov r8, qword [rbp + 0x170]
jmp 0x140055a2d
mov r14, qword [rbp + 0x198]
mov rdi, qword [rbp + 0x190]
xor r10d, r10d
cmp rcx, r8
mov rcx, qword [rsp + 0x40]
je 0x140055a80
nop word [rax + rax]
mov rax, qword [rsi + r10*8]
movzx r8d, byte [r8 + rax]
lea r9, [r10 + 1]
lea rax, [r9 + 1]
xor edx, edx
div rbx
movzx eax, r10b
xor al, byte [rdx + rcx]
xor r8b, al
not r8b
mov byte [rdi + r10], r8b
mov r10, r9
mov rax, qword [rbp + 0x178]
mov r8, qword [rbp + 0x170]
sub rax, r8
cmp r9, rax
jb 0x140055a40
lea rdx, [rbp + 0x1f8]
call fcn.140073180
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1e0], xmm1
lea rax, [rbp + 0x1f8]
nop dword [rax + rax]
inc r15
cmp byte [rax + r15], 0
jne 0x140055ab0
mov r8, r15
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x1d0]
call fcn.140072240
nop
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 0xf
cmova rdx, qword [rbp + 0x1d0]
mov r8, qword [rbp + 0x1e0]
lea rcx, [rsp + 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov r8d, 8
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
sub r12, rsi
and r12, 0xfffffffffffffff8
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
sub r14, rdi
mov r8, r14
mov rdx, rdi
lea rcx, [rsp + 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x58]
call fcn.140071c80
test rax, rax
jne 0x140055b6d
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 0xf
jbe 0x140055bb1
inc rdx
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055bac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055bac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400736d0
movdqa xmm0, xmmword [0x14007f980]
movdqu xmmword [rbp + 0x1e0], xmm0
mov byte [rbp + 0x1d0], 0
test rdi, rdi
je 0x140055c04
sub r13, rdi
mov rax, rdi
cmp r13, 0x1000
jb 0x140055bf8
add r13, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055bf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r13
mov rcx, rdi
call fcn.1400736d0
nop
test rsi, rsi
je 0x140055c4d
mov rax, qword [rsp + 0x38]
sub rax, rsi
sar rax, 3
lea rdx, [rax*8]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140055c45
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055c45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400736d0
xor esi, esi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.1400715a0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp + 0x170]
test rcx, rcx
je 0x140055cef
mov rdx, qword [rbp + 0x180]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055cd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055cd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400736d0
mov qword [rbp + 0x170], rsi
mov qword [rbp + 0x178], rsi
mov qword [rbp + 0x180], rsi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.1400715a0
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400735e0
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14004ce40
nop
call fcn.1400728b0
int3
call fcn.14004ce40
nop
call fcn.1400728b0
int3