Function at 0x140059f60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ebx, ebx
mov rax, rdx
and rax, 0xfffffffffffff000
mov r15, r8
add rax, 0x1000
mov r14, rdx
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbx - 1]
mov edx, ebx
mov rsi, rcx
call fcn.14004d870
mov rdi, rax
test rax, rax
jne 0x14005a07c
mov dword [rbp - 0x49], 0x16731606
mov ecx, 0x165d
mov dword [rbp - 0x45], 0x16401602
mov dword [rbp - 0x41], 0x16031622
mov dword [rbp - 0x3d], 0x1643160d
mov dword [rbp - 0x39], 0x16461611
mov dword [rbp - 0x35], 0x16041606
mov dword [rbp - 0x31], 0x16051605
mov dword [rbp - 0x2d], 0x160d1608
mov dword [rbp - 0x29], 0x160b1619
mov dword [rbp - 0x25], 0x1600164f
mov dword [rbp - 0x21], 0x16151610
mov dword [rbp - 0x1d], 0x16071616
mov dword [rbp - 0x19], 0x16101655
mov dword [rbp - 0x15], 0x160a1618
mov dword [rbp - 0x11], 0x16171659
mov dword [rbp - 0xd], 0x1610161f
mov word [rbp - 9], bx
mov byte [rbp - 7], 1
nop dword [rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x20
jb 0x14005a040
mov byte [rbp - 7], 0
lea rdx, [rbp - 0x49]
mov rcx, qword [0x140070250]
call fcn.140054ac0
lea rdx, [0x140054ca0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
jmp 0x14005a510
lea r8, [rax + 0x28]
mov dword [rbp + 0x27], ebx
mov r9d, 4
lea rdx, [rbp + 0x27]
mov rcx, rsi
call fcn.14004d360
test al, al
jne 0x14005a14e
mov dword [rbp - 0x49], 0x16731606
mov ecx, 0x165d
mov dword [rbp - 0x45], 0x16401602
mov dword [rbp - 0x41], 0x16031622
mov dword [rbp - 0x3d], 0x1643160d
mov dword [rbp - 0x39], 0x16461611
mov dword [rbp - 0x35], 0x160d1615
mov dword [rbp - 0x31], 0x160e1608
mov dword [rbp - 0x2d], 0x1618164b
mov dword [rbp - 0x29], 0x160b1605
mov dword [rbp - 0x25], 0x162f164f
mov dword [rbp - 0x21], 0x1636163c
mov dword [rbp - 0x1d], 0x1654163f
mov dword [rbp - 0x19], 0x1656164f
mov dword [rbp - 0x15], 0x16011615
mov dword [rbp - 0x11], 0x161f160d
mov dword [rbp - 0xd], 0x16131638
mov dword [rbp - 9], 0x16101608
mov dword [rbp - 5], 0x160b
mov byte [rbp - 1], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x23
jb 0x14005a130
mov byte [rbp - 1], 0
lea rdx, [rbp - 0x49]
jmp 0x14005a059
mov eax, dword [rbp + 0x27]
cmp rax, r14
jae 0x14005a262
mov dword [rbp - 0x49], 0x164d1604
mov ecx, 0x165f
mov dword [rbp - 0x45], 0x1642163c
mov dword [rbp - 0x41], 0x160b1620
mov dword [rbp - 0x3d], 0x160a1610
mov dword [rbp - 0x39], 0x16061603
mov dword [rbp - 0x35], 0x161e164e
mov dword [rbp - 0x31], 0x160d164b
mov dword [rbp - 0x2d], 0x16021601
mov dword [rbp - 0x29], 0x16131600
mov dword [rbp - 0x25], 0x16061610
mov dword [rbp - 0x21], 0x16541616
mov dword [rbp - 0x1d], 0x16181610
mov dword [rbp - 0x19], 0x160d1618
mov dword [rbp - 0x15], 0x1612161e
mov dword [rbp - 0x11], 0x1611165b
mov dword [rbp - 0xd], 0x16131618
mov dword [rbp - 9], 0x16f21610
mov dword [rbp - 5], 0x16ae16f8
mov dword [rbp - 1], 0x16e716a3
mov dword [rbp + 3], 0x16e316e9
mov dword [rbp + 7], 0x16e616e6
mov dword [rbp + 0xb], 0x16e416e0
mov dword [rbp + 0xf], 0x16ac16ec
mov dword [rbp + 0x13], 0x16fe16f8
mov word [rbp + 0x17], bx
mov byte [rbp + 0x19], 1
nop
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x30
jb 0x14005a210
mov byte [rbp + 0x19], 0
lea rdx, [rbp - 0x49]
mov rcx, qword [0x140070250]
call fcn.140054ac0
lea rdx, [0x140054ca0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rdi
mov rcx, rsi
call fcn.14004e120
mov rdx, rdi
mov rcx, rsi
call fcn.14004e320
xor eax, eax
jmp 0x14005a510
mov rdx, rdi
mov rcx, rsi
call fcn.14004daa0
mov r14, rax
test rax, rax
jne 0x14005a33e
mov dword [rbp - 0x49], 0x16731606
mov ecx, 0x165d
mov dword [rbp - 0x45], 0x16401602
mov dword [rbp - 0x41], 0x16031622
mov dword [rbp - 0x3d], 0x1643160d
mov dword [rbp - 0x39], 0x16461611
mov dword [rbp - 0x35], 0x160d1614
mov dword [rbp - 0x31], 0x164a161d
mov dword [rbp - 0x2d], 0x16081606
mov dword [rbp - 0x29], 0x164e1601
mov dword [rbp - 0x25], 0x1611161f
mov dword [rbp - 0x21], 0x16171616
mov dword [rbp - 0x1d], 0x16541600
mov dword [rbp - 0x19], 0x16171616
mov dword [rbp - 0x15], 0x16101614
mov dword [rbp - 0x11], 0x1656161c
mov dword [rbp - 0xd], 0x161f165b
mov dword [rbp - 9], 0x161b1611
mov dword [rbp - 5], 0x16ee161e
mov dword [rbp - 1], 0x16ec16e8
mov dword [rbp + 3], 0x16a416e4
mov dword [rbp + 7], 0x16f616f0
mov dword [rbp + 0xb], 0x16a9
mov byte [rbp + 0xf], 1
nop dword [rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x2b
jb 0x14005a320
mov byte [rbp + 0xf], 0
lea rdx, [rbp - 0x49]
jmp 0x14005a229
mov rdx, rdi
mov rcx, rsi
call fcn.14004dcf0
mov dword [rbp - 0x45], 0x16401602
mov ecx, 0x165d
test al, al
jne 0x14005a468
mov dword [rbp - 0x49], 0x16731606
mov dword [rbp - 0x41], 0x16031622
mov dword [rbp - 0x3d], 0x1643160d
mov dword [rbp - 0x39], 0x16461611
mov dword [rbp - 0x35], 0x16001604
mov dword [rbp - 0x31], 0x16041608
mov dword [rbp - 0x2d], 0x1609160c
mov dword [rbp - 0x29], 0x161e164d
mov dword [rbp - 0x25], 0x161f161d
mov dword [rbp - 0x21], 0x16171605
mov dword [rbp - 0x1d], 0x16001610
mov dword [rbp - 0x19], 0x1619161c
mov dword [rbp - 0x15], 0x16581619
mov dword [rbp - 0x11], 0x1615161f
mov dword [rbp - 0xd], 0x165c1609
mov dword [rbp - 9], 0x161a1610
mov dword [rbp - 5], 0x16a01613
mov dword [rbp - 1], 0x16e316f1
mov dword [rbp + 3], 0x16e116e4
mov dword [rbp + 7], 0x16aa16f6
mov dword [rbp + 0xb], 0x16eb16a7
mov dword [rbp + 0xf], 0x16ef16e5
mov dword [rbp + 0x13], 0x16e216ea
mov dword [rbp + 0x17], 0x16e016e4
mov dword [rbp + 0x1b], 0x16b016e8
mov dword [rbp + 0x1f], 0x16e216e4
mov word [rbp + 0x23], bx
mov byte [rbp + 0x25], 1
nop dword [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x36
jb 0x14005a420
mov rcx, qword [0x140070250]
lea rdx, [rbp - 0x49]
mov byte [rbp + 0x25], 0
call fcn.140054ac0
lea rdx, [0x140054ca0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.14004df20
jmp 0x14005a245
mov dword [rbp - 0x49], 0x16751606
mov dword [rbp - 0x41], 0x160e1620
mov dword [rbp - 0x3d], 0x160b160f
mov dword [rbp - 0x39], 0x16071606
mov dword [rbp - 0x35], 0x160d1613
mov dword [rbp - 0x31], 0x164a160d
mov dword [rbp - 0x2d], 0x160d161b
mov dword [rbp - 0x29], 0x160b160a
mov dword [rbp - 0x25], 0x1650161c
mov dword [rbp - 0x21], 0x161d1617
mov dword [rbp - 0x1d], 0x16541601
mov dword [rbp - 0x19], 0x16121618
mov dword [rbp - 0x15], 0x161b
mov byte [rbp - 0x11], 1
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x1b
jb 0x14005a4d0
mov rcx, qword [0x140070250]
lea rdx, [rbp - 0x49]
mov byte [rbp - 0x11], 0
call fcn.140054ac0
lea rdx, [0x140054ca0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
test r15, r15
je 0x14005a50d
mov qword [r15], rdi
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14006ce00
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret