Function at 0x140162ec0
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 [0x1403a1d18]
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.1401b06b0
mov r8, 0xffffffffffffffff
lea rdx, str.InitiatorSecretEncrypted
lea rcx, [rsp + 0x30]
call fcn.1401b0d90
nop
mov rdx, qword [0x1402e1e70]
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.0x14000fd18.0]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1401b06b0
nop
test ebx, ebx
js 0x140163110
lea rcx, [rsp + 0x60]
call qword [sym.imp.BstkRT.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.BstkRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
nop
mov qword [rbp - 0x80], r13
mov rdx, qword [0x1402e1e70]
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rdx, rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp - 0x80]
call fcn.1401b0b70
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.BstkRT.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.BstkRT.dll_RTBase64Decode]
mov ebx, eax
test eax, eax
js 0x1401630bd
mov r14, qword [r14 + 0xc8]
cmp byte [r14 + 0x240], 0
jne 0x140163003
mov ebx, 0xffffffb1
jmp 0x1401630bd
mov rsi, qword [rsp + 0x30]
cmp rsi, 0x20
jae 0x140163018
mov ebx, 0xfffffffe
jmp 0x1401630bd
xor edi, edi
xor ebx, ebx
lea rdx, [rbp - 0x20]
movzx ecx, byte [rbx + r14 + 0x241]
cmp byte [rdx], cl
jne 0x1401630b8
inc edi
inc rdx
inc ebx
cmp edi, 8
jb 0x140163020
mov r8, rsi
mov edx, 0xff
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov edx, edi
cmp rdx, rsi
jae 0x140163088
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 0x140163060
xor ebx, ebx
test rsi, rsi
je 0x1401630b8
xor eax, eax
cmp byte [rbp + rax - 0x60], 0
jne 0x1401630af
lea rcx, [rbp - 0x60]
call qword [sym.imp.BstkRT.dll_RTStrIsValidEncoding]
test al, al
jne 0x140163147
mov rsi, qword [rsp + 0x30]
inc ebx
mov eax, ebx
cmp rax, rsi
jb 0x140163091
mov ebx, 0xfffffffd
lea rcx, [rbp - 0x80]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
test ebx, ebx
js 0x14016317e
lea rdx, str.InitiatorSecret
lea rcx, [rsp + 0x40]
call qword [sym.imp.BstkRT.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.140100020
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401b06b0
nop
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401af5e0
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.BstkRT.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.BstkRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_class_RTCString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
xor ebx, ebx
jmp 0x1401630bd
lea rcx, [rsp + 0x60]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
jmp 0x140163112