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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
movsxd rax, r8d
mov rbx, rcx
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rcx, qword [0x1817777d0]
cmp dword [rcx + 0x10], 4
jle 0x18000560a
mov rax, qword [rcx + 8]
add rax, 0x40
je 0x18000560a
cmp word [rax], 2
jne 0x18000560a
mov edx, dword [rax + 8]
jmp 0x18000560c
xor edx, edx
cmp dword [rcx + 0x10], 4
mov dword [rsp + 0x70], edx
jle 0x18000562c
mov rax, qword [rcx + 8]
add rax, 0x40
je 0x18000562c
cmp word [rax], 2
jne 0x18000562c
mov r14d, dword [rax + 8]
jmp 0x18000562f
xor r14d, r14d
mov rax, qword [rbx + 0x28]
mov edi, dword [rax + 0x10]
mov ecx, edi
call qword [sym.imp.msvcrt.dll_malloc]
movsxd r8, edi
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_memset
test rsi, rsi
jne 0x18000565a
xor eax, eax
jmp 0x180005847
mov rdx, qword [rbx + 0x20]
cmp rdx, 4
jae 0x180005668
xor eax, eax
jmp 0x180005682
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add qword [rbx + 0x20], 0xfffffffffffffffc
add qword [rbx + 0x10], 4
mov rdx, qword [rbx + 0x20]
test eax, eax
je 0x180005833
sub eax, 1
je 0x1800057f5
sub eax, 1
je 0x18000579f
sub eax, 1
je 0x180005750
cmp eax, 0xa
jne 0x18000565a
mov rax, qword [rbx + 0x28]
movsxd rcx, edi
mov rax, qword [rax + 8]
mov byte [rcx + rax], 0
mov rax, qword [rbx + 0x28]
mov dword [rsp + 0x70], r14d
mov r10, qword [rax + 8]
test edi, edi
je 0x1800056fe
mov rax, r10
mov ecx, edi
cmp byte [rax], 0x5f
jne 0x1800056d9
mov byte [rax], 0x2f
jmp 0x1800056e1
cmp byte [rax], 0x2d
jne 0x1800056e1
mov byte [rax], 0x2b
inc rax
sub rcx, 1
jne 0x1800056cf
jmp 0x1800056fe
cmp edi, r14d
ja 0x18000581d
mov eax, edi
inc edi
mov byte [rax + r10], 0x3d
test dil, 3
jne 0x1800056ec
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov r9, rsi
mov r8d, 1
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, r10
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180005740
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18000581d
movsxd rdi, dword [rsp + 0x70]
mov rdx, rsi
mov r8, rdi
jmp 0x1800057e3
mov rax, qword [rbx + 0x28]
mov r9, rsi
and qword [rsp + 0x30], 0
mov r8d, 1
and qword [rsp + 0x28], 0
mov edx, edi
movsxd rcx, edi
mov rax, qword [rax + 8]
mov byte [rcx + rax], 0
lea rcx, [rsp + 0x70]
mov rax, qword [rbx + 0x28]
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax + 8]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180005740
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180005740
cmp rdx, 4
jae 0x1800057a9
xor ebp, ebp
jmp 0x1800057c1
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add qword [rbx + 0x20], 0xfffffffffffffffc
mov ebp, eax
add qword [rbx + 0x10], 4
cmp ebp, edi
jg 0x18000581d
mov rdx, qword [rbx + 0x28]
mov rcx, rsi
movsxd r8, edi
mov rdx, qword [rdx + 8]
call sub.msvcrt.dll_memcpy
sub edi, ebp
movsxd rdx, ebp
add rdx, rsi
movsxd r8, edi
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + 8]
call sub.msvcrt.dll_memcpy
jmp 0x18000565a
cmp rdx, 4
jae 0x1800057ff
xor eax, eax
jmp 0x180005815
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add qword [rbx + 0x20], 0xfffffffffffffffc
add qword [rbx + 0x10], 4
sub edi, eax
jns 0x18000565a
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rbx + 0x28]
and dword [rax + 0x10], 0
jmp 0x180005653
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret