Function at 0x180006d10
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 [0x1817797d0]
mov r8d, dword [rcx + 0x10]
cmp r8d, 4
jle 0x180006d5d
mov rax, qword [rcx + 8]
add rax, 0x40
je 0x180006d5d
cmp word [rax], 2
jne 0x180006d5d
mov edx, dword [rax + 8]
jmp 0x180006d60
mov edx, r15d
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x70], edx
cmp r8d, 4
jle 0x180006d84
mov rax, qword [rcx + 8]
add rax, 0x40
je 0x180006d84
cmp word [rax], 2
jne 0x180006d84
mov ebp, dword [rax + 8]
jmp 0x180006d87
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 0x180006db2
xor eax, eax
jmp 0x180006fbf
mov qword [rsp + 0x68], rsi
nop word [rax + rax]
mov rdx, qword [rdi + 0x20]
cmp rdx, 4
jae 0x180006dcf
mov eax, r15d
jmp 0x180006de9
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 0x180006fa6
sub eax, 1
je 0x180006f68
sub eax, 1
je 0x180006f11
sub eax, 1
je 0x180006eaa
cmp eax, 0xa
jne 0x180006dc0
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 0x180006e53
mov rax, r10
mov edx, ebx
movzx ecx, byte [rax]
cmp cl, 0x5f
jne 0x180006e42
mov byte [rax], 0x2f
jmp 0x180006e4a
cmp cl, 0x2d
jne 0x180006e4a
mov byte [rax], 0x2b
inc rax
sub rdx, 1
jne 0x180006e35
test bl, 3
je 0x180006e6e
cmp ebx, ebp
ja 0x180006f91
mov eax, ebx
inc ebx
mov byte [rax + r10], 0x3d
test bl, 3
jne 0x180006e58
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 0x180006ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180006f91
jmp 0x180006ef4
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 0x180006ef4
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 0x180006dc0
cmp rdx, 4
jae 0x180006f1c
mov esi, r15d
jmp 0x180006f34
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 0x180006f91
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 0x180006dc0
cmp rdx, 4
jae 0x180006f73
mov eax, r15d
jmp 0x180006f89
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 0x180006dc0
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rdi + 0x28]
mov dword [rax + 0x10], r15d
xor eax, eax
jmp 0x180006fba
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