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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rcx + 8], rdx
mov rdi, rcx
mov qword [rcx + 0x10], rdx
xor r15d, r15d
movsxd rax, r8d
mov edx, r15d
mov qword [rcx + 0x18], rax
mov ebp, r15d
mov qword [rcx + 0x20], rax
mov rax, qword [0x181776730]
mov r8, qword [rax + 8]
movups xmm1, xmmword [r8 + 0x40]
movd eax, xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
cmp ax, 2
cmove edx, ecx
mov dword [rsp + 0x70], edx
movups xmm1, xmmword [r8 + 0x40]
movd eax, xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
cmp ax, 2
mov rax, qword [rdi + 0x28]
cmove ebp, ecx
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 0x180005936
xor eax, eax
jmp 0x180005b3f
mov qword [rsp + 0x60], rsi
nop dword [rax + rax]
mov rdx, qword [rdi + 0x20]
cmp rdx, 4
jae 0x18000594f
mov eax, r15d
jmp 0x180005969
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 0x180005b26
sub eax, 1
je 0x180005ae8
sub eax, 1
je 0x180005a91
sub eax, 1
je 0x180005a2a
cmp eax, 0xa
jne 0x180005940
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 0x1800059d3
mov rax, r10
mov edx, ebx
movzx ecx, byte [rax]
cmp cl, 0x5f
jne 0x1800059c2
mov byte [rax], 0x2f
jmp 0x1800059ca
cmp cl, 0x2d
jne 0x1800059ca
mov byte [rax], 0x2b
inc rax
sub rdx, 1
jne 0x1800059b5
test bl, 3
je 0x1800059ee
cmp ebx, ebp
ja 0x180005b11
mov eax, ebx
inc ebx
mov byte [rax + r10], 0x3d
test bl, 3
jne 0x1800059d8
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 0x180005a74
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180005b11
jmp 0x180005a74
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 0x180005a74
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 0x180005940
cmp rdx, 4
jae 0x180005a9c
mov esi, r15d
jmp 0x180005ab4
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 0x180005b11
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 0x180005940
cmp rdx, 4
jae 0x180005af3
mov eax, r15d
jmp 0x180005b09
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 0x180005940
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rdi + 0x28]
mov dword [rax + 0x10], r15d
xor eax, eax
jmp 0x180005b3a
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 + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret