Function at 0x140035940
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14016bc40]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13, rdx
mov rsi, rcx
add rcx, 0xb8
call fcn.140040bf0
xor r12d, r12d
mov qword [rsi + 0xa0], r12
mov dword [rsi + 0x9c], r12d
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0xac], rax
movsx rdx, word [r13 + 0x3e]
xor r8d, r8d
mov rcx, rsi
call fcn.140083cb0
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400359be
mov rcx, qword [rsi]
lea rdx, [r13 + 0x40]
mov r8, qword [rsi + 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140035f5c
cmp qword [rsi + 0x18], 0xf
jbe 0x1400359eb
mov rdi, qword [rsi]
mov rbx, rdi
lea r14, [rcx + rdi]
jmp 0x1400359f5
lea r14, [rsi + rcx]
mov rbx, rsi
mov rdi, rsi
mov r15, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
nop dword [rax]
cmp rbx, r14
je 0x140035a15
movsx ecx, byte [rbx]
call r15
mov byte [rdi], al
inc rbx
inc rdi
jmp 0x140035a00
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x68], r12
mov rdi, qword [rsi + 0x10]
add rdi, r13
mov eax, dword [rdi + 0x40]
mov dword [rsi + 0x9c], eax
mov eax, dword [rdi + 0x44]
mov dword [rsi + 0xa0], eax
mov eax, dword [rdi + 0x48]
mov dword [rsi + 0xa4], eax
add rdi, 0x51
mov r13d, r12d
mov r15d, 1
mov r11d, 0xeb0
psrldq xmm1, 8
movq r14, xmm1
nop word [rax + rax]
cmp r13d, dword [rsi + 0xa4]
jge 0x140035ddf
xor r10b, r10b
xor r9b, r9b
movzx ebx, word [rdi]
mov word [rsp + 0x28], bx
movzx eax, word [rdi + 2]
mov word [rsp + 0x2a], ax
movzx edx, word [rdi + 4]
mov word [rsp + 0x2c], dx
movzx eax, word [rdi + 6]
mov word [rsp + 0x2e], ax
shr ax, 8
mov byte [rsp + 0x2f], al
add rdi, 8
test byte [rsp + 0x2e], 0x80
movzx eax, r9b
cmovne eax, r15d
mov byte [rsp + 0x31], al
test byte [rsp + 0x2e], 0x40
movzx eax, r10b
cmovne eax, r15d
mov byte [rsp + 0x30], al
test dx, dx
je 0x140035add
add rdi, 2
cmp bx, r11w
jne 0x140035b29
add rdi, 0x16
cmp r14, r8
je 0x140035b12
movsd xmm0, qword [rsp + 0x28]
movsd qword [r14], xmm0
movzx eax, word [rsp + 0x30]
mov word [r14 + 8], ax
add r14, 0xa
mov qword [rsp + 0x60], r14
inc r13d
jmp 0x140035a70
lea r8, [rsp + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400197a0
jmp 0x140035dc2
mov rcx, rbx
mov rax, qword [0x1401730e8]
mov rdx, qword [0x1401730e0]
sub rax, rdx
sar rax, 5
cmp rax, rbx
jbe 0x140035f86
shl rcx, 5
add rcx, rdx
xor edx, edx
mov r8d, 0xa
call fcn.140090320
movsxd rdx, eax
cmp edx, 0x38
ja 0x140035b76
movabs rax, 0x1fec9560408240c
bt rax, rdx
jb 0x140035be6
cmp ebx, 0x8c6
je 0x140035be6
cmp edx, 0x3f
ja 0x140035b93
movabs rcx, 0xea00000000000000
bt rcx, rdx
jb 0x140035be6
mov r11d, 0xeb0
cmp ebx, r11d
je 0x140035be6
lea eax, [rdx - 0x42]
cmp eax, 0x3d
ja 0x140035bb6
movabs rcx, 0x2006a00c8afed583
bt rcx, rax
jb 0x140035be6
cmp edx, 0xffffff82
je 0x140035be6
cmp edx, 0x82
je 0x140035be6
test bl, 1
jne 0x140035d43
cmp ebx, 0x16ba
jb 0x140035d43
mov eax, 0x172c
cmp bx, ax
ja 0x140035d43
movzx r15d, byte [rdi]
inc rdi
test r15b, r15b
jne 0x140035c15
lea rdx, str.Cannot_serialize_itemType_0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140016450
lea rdx, [0x14001ff30]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp r15d, 0x4a
ja case.0x140035c3a.0
lea r11, [0x140000000]
movzx eax, byte [r11 + r15 + 0x35ff8]
mov ecx, dword [r11 + rax*4 + 0x35f8c]
add rcx, r11
jmp rcx
movzx eax, word [rdi]
add rdi, 3
add rdi, rax
jmp case.0x140035c3a.0
lea rdx, str.Safe_Vault_Found
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140016450
lea rdx, [0x14001ff30]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp case.0x140035c3a.0
movzx eax, word [rdi]
add rdi, 6
add rdi, rax
jmp case.0x140035c3a.0
movzx eax, byte [rdi + 5]
lea rdi, [rdi + rax*4]
add rdi, 0x11
jmp case.0x140035c3a.0
add rdi, 5
jmp case.0x140035c3a.0
inc rdi
jmp case.0x140035c3a.0
movzx eax, word [rdi + 4]
add rdi, 6
add rdi, rax
jmp case.0x140035c3a.0
movzx eax, word [rdi]
add rdi, 0x19
add rdi, rax
jmp case.0x140035c3a.0
add rdi, 0x12
jmp case.0x140035c3a.0
movzx eax, word [rdi]
add rdi, 2
add rdi, rax
jmp case.0x140035c3a.0
movzx eax, word [rdi]
add rdi, 7
add rdi, rax
jmp case.0x140035c3a.0
add rdi, 8
jmp case.0x140035c3a.0
mov eax, dword [rdi + 1]
lea eax, [rax*4]
movsxd rcx, eax
add rdi, 5
add rdi, rcx
jmp case.0x140035c3a.0
add rdi, 6
jmp case.0x140035c3a.0
mov eax, 0xd42
mov r11d, 0xeb0
cmp bx, ax
jne 0x140035d43
movzx eax, word [rdi]
add rdi, 2
add rdi, rax
jmp 0x140035d43
movzx eax, word [rdi]
add rdi, 0x22
add rdi, rax
jmp case.0x140035c3a.0
add rdi, 0x10
jmp case.0x140035c3a.0
add rdi, 5
movzx eax, byte [rdi]
lea rdi, [rdi + rax*4]
add rdi, 4
mov r11d, 0xeb0
mov r8, qword [rsp + 0x20]
cmp r14, r8
je 0x140035daa
movsd xmm0, qword [rsp + 0x28]
movsd qword [r14], xmm0
movzx eax, word [rsp + 0x30]
mov word [r14 + 8], ax
add r14, 0xa
mov qword [rsp + 0x60], r14
mov r15d, 1
inc r13d
jmp 0x140035a70
movzx eax, word [rdi]
add rdi, 0x1c
add rdi, rax
jmp case.0x140035c3a.0
add rdi, 9
jmp case.0x140035c3a.0
movsx rax, word [rdi]
add rdi, 2
add rdi, rax
jmp case.0x140035c3a.0
add rdi, 0xe
jmp case.0x140035c3a.0
imul ecx, dword [rdi], 0xf
add rdi, 0xc
add rdi, rcx
jmp case.0x140035c3a.0
lea r8, [rsp + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400197a0
mov r15d, 1
mov r8, qword [rsp + 0x68]
mov r11d, 0xeb0
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x20], r8
inc r13d
jmp 0x140035a70
mov r14d, r12d
mov r15, qword [rsp + 0x58]
nop word [rax + rax]
cmp r14d, dword [rsi + 0xa0]
jge 0x140035e81
mov ebx, r12d
cmp ebx, dword [rsi + 0x9c]
jge 0x140035e79
imul ecx, r14d, 0x64
add ecx, ebx
movsxd rax, ecx
lea rax, [rax + rax*4]
movsd xmm0, qword [r15 + rax*2]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [r15 + rax*2 + 8]
mov word [rsp + 0x48], ax
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x38], ecx
lea rcx, [rsi + 0xb8]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
call fcn.14001eca0
mov rax, qword [rax]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x14], xmm0
mov dword [rax + 0x24], r14d
movd eax, xmm0
cmp ax, 6
jne 0x140035e75
mov rax, qword [rsp + 0x4c]
mov qword [rsi + 0xac], rax
inc ebx
jmp 0x140035e00
inc r14d
jmp 0x140035df0
mov ebx, dword [rdi + 0xc]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0xa8], eax
add rdi, 0x14
cmp r12d, ebx
jge 0x140035ef5
movzx eax, word [rdi]
mov word [rsp + 0x40], ax
mov eax, dword [rdi + 2]
mov dword [rsp + 0x44], eax
mov eax, dword [rdi + 6]
mov dword [rsp + 0x48], eax
movzx eax, byte [rdi + 0xa]
mov byte [rsp + 0x4c], al
movzx eax, byte [rdi + 0xb]
mov byte [rsp + 0x4d], al
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x50], eax
add rdi, 0x10
lea rcx, [rsi + 0x138]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x28]
call fcn.14001ea70
mov rcx, qword [rax]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx + 0x14], xmm0
mov eax, dword [rsp + 0x50]
mov dword [rcx + 0x24], eax
inc r12d
jmp 0x140035e91
mov byte [rsi + 0x98], 1
test r15, r15
je 0x140035f5c
mov r8, qword [rsp + 0x20]
sub r8, r15
movabs rax, 0x6666666666666667
imul r8
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
add rdx, rdx
mov rax, r15
cmp rdx, 0x1000
jb 0x140035f53
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035f53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14010fbac
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14010fcc0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14003ee90
nop
cmp eax, 0x3c00035d
pop rsp
add eax, dword [rax]
jae 0x140035ff2
add eax, dword [rax]
invalid
add eax, dword [rax]
cmp eax, 0x35d
add dword [rdx], eax
add eax, dword [rdx + rbx]
sbb bl, byte [rdx]
add eax, 436667398
sbb cl, byte [rax]
add eax, 151263749
or cl, byte [rbx]
sbb al, byte [rsi]
or al, 13
sbb al, byte [rsi]
invalid