Function at 0x1401a1c70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14049bcb8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x38], 0
mov rax, qword [rdx + 0xc0]
mov rbx, qword [rax + 0x190]
lea rcx, [rsp + 0x38]
call fcn.1402041c0
mov r8, 0xffffffffffffffff
lea rdx, str.InitiatorSecretEncrypted
lea rcx, [rsp + 0x30]
call fcn.1402048a0
nop
mov rdx, qword [0x1403c1fa0]
mov r8, qword [rsp + 0x30]
test r8, r8
cmovne rdx, r8
lea r8, [rsp + 0x38]
lea rcx, [r15 + 0xc0]
mov rax, rbx
call qword [case.0x140010858.0]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1402041c0
nop
test ebx, ebx
js 0x1401a1ec0
lea rcx, [rsp + 0x60]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
lea r13, vtable.com::Utf8Str.0
mov qword [rsp + 0x60], r13
lea rcx, [rbp - 0x80]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
nop
mov qword [rbp - 0x80], r13
mov rdx, qword [0x1403c1fa0]
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rdx, rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp - 0x80]
call fcn.140204680
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rcx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, VarR4FromUI1
lea rdx, [rbp - 0x20]
call qword [sym.imp.VBoxRT.dll_RTBase64Decode]
mov ebx, eax
test eax, eax
js 0x1401a1e6d
mov r14, qword [r14 + 0xc8]
cmp byte [r14 + 0x240], 0
jne 0x1401a1db3
mov ebx, 0xffffffb1
jmp 0x1401a1e6d
mov rsi, qword [rsp + 0x30]
cmp rsi, 0x20
jae 0x1401a1dc8
mov ebx, 0xfffffffe
jmp 0x1401a1e6d
xor edi, edi
xor ebx, ebx
lea rdx, [rbp - 0x20]
movzx ecx, byte [rbx + r14 + 0x241]
cmp byte [rdx], cl
jne 0x1401a1e68
inc edi
inc rdx
inc ebx
cmp edi, 8
jb 0x1401a1dd0
mov r8, rsi
mov edx, 0xff
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov edx, edi
cmp rdx, rsi
jae 0x1401a1e38
lea r8, [rbp - 0x60]
nop dword [rax]
movzx ecx, byte [rbx + r14 + 0x241]
xor cl, byte [rbp + rdx - 0x20]
mov byte [r8], cl
lea eax, [rbx + 1]
inc edi
lea r8, [r8 + 1]
mov edx, edi
xor ebx, ebx
cmp eax, 0x40
cmovb ebx, eax
cmp rdx, rsi
jb 0x1401a1e10
xor ebx, ebx
test rsi, rsi
je 0x1401a1e68
xor eax, eax
cmp byte [rbp + rax - 0x60], 0
jne 0x1401a1e5f
lea rcx, [rbp - 0x60]
call qword [sym.imp.VBoxRT.dll_RTStrIsValidEncoding]
test al, al
jne 0x1401a1ef7
mov rsi, qword [rsp + 0x30]
inc ebx
mov eax, ebx
cmp rax, rsi
jb 0x1401a1e41
mov ebx, 0xfffffffd
lea rcx, [rbp - 0x80]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
test ebx, ebx
js 0x1401a1f2e
lea rdx, str.InitiatorSecret
lea rcx, [rsp + 0x40]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_char_const____ptr64____ptr64]
mov qword [rsp + 0x40], r13
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14010fed0
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.1402041c0
nop
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140202f70
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_char_const____ptr64____ptr64]
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_class_RTCString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
xor ebx, ebx
jmp 0x1401a1e6d
lea rcx, [rsp + 0x60]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
jmp 0x1401a1ec2