Function at 0x140070ba0
Capabilities:
Encode data using base64

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
mov r10d, r9d
mov r14d, r8d
mov rbx, rcx
and dword [rbp - 0x14], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
mov dword [rbp - 0x14], 1
xor r15d, r15d
xor esi, esi
test r8d, r8d
je 0x140070e5f
xor ecx, ecx
lea edi, [rsi + 3]
dec r14d
mov al, byte [rdx]
mov byte [rbp + rcx + 0x58], al
inc esi
inc rcx
inc rdx
mov qword [rbp + 0x50], rdx
mov r8b, byte [rbp + 0x5a]
mov r12b, byte [rbp + 0x59]
mov r13b, byte [rbp + 0x58]
cmp rcx, rdi
jne 0x140070cfe
mov al, r13b
shr al, 2
mov byte [rbp - 0x18], al
mov cl, r13b
and cl, dil
shl cl, 4
mov al, r12b
shr al, 4
add cl, al
mov byte [rbp - 0x17], cl
mov cl, r12b
and cl, 0xf
shl cl, 2
mov al, r8b
shr al, 6
add cl, al
mov byte [rbp - 0x16], cl
mov al, r8b
and al, 0x3f
mov byte [rbp - 0x15], al
xor esi, esi
lea rcx, [0x1400ef020]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1400ef020]
movzx eax, byte [rbp + rsi - 0x18]
mov r9b, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140070ca3
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140070c98
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140070cb6
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140070570
mov r10d, dword [rbp + 0x60]
inc r15d
test r10d, r10d
jle 0x140070ce5
mov eax, r15d
cdq
idiv r10d
test edx, edx
jne 0x140070ce5
mov rcx, qword [rbp + 0x68]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rdx, qword [rbp + 0x68]
mov rcx, rbx
call fcn.140070800
mov r10d, dword [rbp + 0x60]
inc rsi
cmp rsi, 4
jl 0x140070c59
xor esi, esi
xor ecx, ecx
mov rdx, qword [rbp + 0x50]
mov r8b, byte [rbp + 0x5a]
test r14d, r14d
jne 0x140070bf4
test esi, esi
je 0x140070e5f
movsxd rax, esi
cmp rax, rdi
jge 0x140070d36
jae 0x140070e73
mov byte [rbp + rax + 0x58], 0
inc rax
cmp rax, rdi
jl 0x140070d17
mov r8b, byte [rbp + 0x5a]
mov r12b, byte [rbp + 0x59]
mov r13b, byte [rbp + 0x58]
mov al, r13b
shr al, 2
mov byte [rbp - 0x18], al
and r13b, dil
shl r13b, 4
mov al, r12b
shr al, 4
add r13b, al
mov byte [rbp - 0x17], r13b
and r12b, 0xf
shl r12b, 2
mov al, r8b
shr al, 6
add r12b, al
mov byte [rbp - 0x16], r12b
and r8b, 0x3f
mov byte [rbp - 0x15], r8b
lea eax, [rsi + 1]
movsxd r12, eax
test eax, eax
jle 0x140070e1a
xor r14d, r14d
lea rcx, [0x1400ef020]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1400ef020]
movzx eax, byte [rbp + r14 - 0x18]
mov r9b, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140070dcc
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140070dc1
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140070ddf
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140070570
mov r10d, dword [rbp + 0x60]
inc r15d
test r10d, r10d
jle 0x140070e0e
mov eax, r15d
cdq
idiv r10d
test edx, edx
jne 0x140070e0e
mov rcx, qword [rbp + 0x68]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rdx, qword [rbp + 0x68]
mov rcx, rbx
call fcn.140070800
mov r10d, dword [rbp + 0x60]
inc r14
cmp r14, r12
jl 0x140070d81
cmp esi, edi
jge 0x140070e5f
sub edi, esi
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140070e47
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140070e3f
mov rax, qword [rbx]
mov word [rax + rcx], VarI4FromDisp
jmp 0x140070e59
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140070570
sub rdi, 1
jne 0x140070e20
mov rax, rbx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400b0ba4
int3