Function at 0x180006940
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x40
movsxd rax, r8d
mov rdi, rcx
mov qword [rcx + 0x18], rax
xor r15d, r15d
mov qword [rcx + 0x20], rax
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rcx, qword [0x181777730]
mov r8d, dword [rcx + 0x10]
cmp r8d, 4
jle 0x18000698d
mov rax, qword [rcx + 8]
add rax, 0x40
je 0x18000698d
cmp word [rax], 2
jne 0x18000698d
mov edx, dword [rax + 8]
jmp 0x180006990
mov edx, r15d
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x70], edx
cmp r8d, 4
jle 0x1800069b4
mov rax, qword [rcx + 8]
add rax, 0x40
je 0x1800069b4
cmp word [rax], 2
jne 0x1800069b4
mov ebp, dword [rax + 8]
jmp 0x1800069b7
mov ebp, r15d
mov rax, qword [rdi + 0x28]
mov ebx, dword [rax + 0x10]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_malloc]
movsxd r8, ebx
xor edx, edx
mov rcx, rax
mov r14, rax
call sub.msvcrt.dll_memset
test r14, r14
jne 0x1800069e2
xor eax, eax
jmp 0x180006bef
mov qword [rsp + 0x68], rsi
nop word [rax + rax]
mov rdx, qword [rdi + 0x20]
cmp rdx, 4
jae 0x1800069ff
mov eax, r15d
jmp 0x180006a19
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add qword [rdi + 0x20], 0xfffffffffffffffc
add qword [rdi + 0x10], 4
mov rdx, qword [rdi + 0x20]
test eax, eax
je 0x180006bd6
sub eax, 1
je 0x180006b98
sub eax, 1
je 0x180006b41
sub eax, 1
je 0x180006ada
cmp eax, 0xa
jne 0x1800069f0
mov rax, qword [rdi + 0x28]
movsxd rcx, ebx
mov rax, qword [rax + 8]
mov byte [rcx + rax], r15b
mov rax, qword [rdi + 0x28]
mov dword [rsp + 0x70], ebp
mov r10, qword [rax + 8]
test ebx, ebx
je 0x180006a83
mov rax, r10
mov edx, ebx
movzx ecx, byte [rax]
cmp cl, 0x5f
jne 0x180006a72
mov byte [rax], 0x2f
jmp 0x180006a7a
cmp cl, 0x2d
jne 0x180006a7a
mov byte [rax], 0x2b
inc rax
sub rdx, 1
jne 0x180006a65
test bl, 3
je 0x180006a9e
cmp ebx, ebp
ja 0x180006bc1
mov eax, ebx
inc ebx
mov byte [rax + r10], 0x3d
test bl, 3
jne 0x180006a88
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], r15
mov r9, r14
mov r8d, 1
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, r10
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180006b24
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180006bc1
jmp 0x180006b24
mov rax, qword [rdi + 0x28]
mov r9, r14
movsxd rcx, ebx
mov r8d, 1
mov qword [rsp + 0x30], r15
mov edx, ebx
mov qword [rsp + 0x28], r15
mov rax, qword [rax + 8]
mov byte [rcx + rax], r15b
lea rcx, [rsp + 0x70]
mov rax, qword [rdi + 0x28]
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax + 8]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180006b24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x28]
mov rdx, r14
movsxd rbx, dword [rsp + 0x70]
mov r8, rbx
mov rcx, qword [rcx + 8]
call sub.msvcrt.dll_memcpy
jmp 0x1800069f0
cmp rdx, 4
jae 0x180006b4c
mov esi, r15d
jmp 0x180006b64
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add qword [rdi + 0x20], 0xfffffffffffffffc
mov esi, eax
add qword [rdi + 0x10], 4
cmp esi, ebx
jg 0x180006bc1
mov rdx, qword [rdi + 0x28]
mov rcx, r14
movsxd r8, ebx
mov rdx, qword [rdx + 8]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rdi + 0x28]
sub ebx, esi
movsxd rdx, esi
movsxd r8, ebx
add rdx, r14
mov rcx, qword [rcx + 8]
call sub.msvcrt.dll_memcpy
jmp 0x1800069f0
cmp rdx, 4
jae 0x180006ba3
mov eax, r15d
jmp 0x180006bb9
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add qword [rdi + 0x20], 0xfffffffffffffffc
add qword [rdi + 0x10], 4
sub ebx, eax
jns 0x1800069f0
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rdi + 0x28]
mov dword [rax + 0x10], r15d
xor eax, eax
jmp 0x180006bea
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rdi + 0x28]
mov dword [rax + 0x10], ebx
mov rax, qword [rdi + 0x28]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret