Function at 0x140059e40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov rax, qword [0x140153040]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rdx
mov qword [rsp + 0x30], rdx
and dword [rsp + 0x28], 0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.1400f7afe
lea rcx, [rsp + 0x60]
call fcn.1400ee87c
nop
and qword [rdi], 0
and qword [rdi + 0x10], 0
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x28], 1
xor esi, esi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xfe
sub ebx, eax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x38], 0x30
mov edx, 2
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rdx, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call r8
lea rdx, [0x14003d3f0]
lea rcx, [rsp + 0x70]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
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___int____ptr64]
cmp esi, 5
je 0x140059f70
mov eax, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0xe6c8
xor edx, edx
test eax, eax
je 0x140059f5c
lea eax, [rdx - 0x1b]
xor byte [rsp + rdx + 0x24], al
inc edx
mov eax, dword [rsp + 0x20]
cmp edx, eax
jb 0x140059f4b
mov byte [rsp + rax + 0x24], 0
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x70]
call fcn.1400ef094
inc esi
cmp esi, 6
jl 0x140059eb6
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400ee724
mov rdx, rax
mov rcx, rdi
call fcn.1400eeb68
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140059fd5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059fd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059fd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f6a6c
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140059fe2
mov rbx, qword [rdi]
mov rcx, rdi
jb 0x140059fea
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
add rsi, rcx
jmp 0x14005a001
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rbx], al
inc rbx
cmp rbx, rsi
jne 0x140059ff3
lea rcx, [rbp - 8]
call fcn.1400ee804
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]
mov rax, rdi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400f68d0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret