Function at 0x10003890
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040778
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x1004a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
push ecx
cmova eax, dword [ebx + 8]
push 0
push 1
push dword [ebx + 0x18]
mov dword [ebp - 0x30], 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x10003abc
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
cmp edx, esi
ja 0x10003944
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
cmova eax, dword [ebp - 0x2c]
mov byte [eax + edx], 0
jmp 0x1000398a
mov eax, dword [ebp - 0x18]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x34], ecx
push ecx
cmp ecx, eax
ja 0x10003979
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
add esi, eax
mov dword [ebp - 0x1c], edx
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x1000398a
push ecx
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10005db0
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0xf
push ecx
cmova eax, dword [ebx + 8]
push 1
push dword [ebx + 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x10003abc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
cmp edx, 0xf
mov ecx, dword [ebp - 0x1c]
cmova eax, esi
add ecx, eax
cmp edx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, esi
cmp eax, ecx
je 0x100039f3
nop word [eax + eax]
cmp byte [eax], 0x2b
jne 0x100039e8
mov byte [eax], 0x2e
inc eax
cmp eax, ecx
jne 0x100039e0
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmp edx, 0xf
cmova eax, esi
add ecx, eax
cmp edx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, esi
cmp eax, ecx
je 0x10003a23
nop
cmp byte [eax], 0x2f
jne 0x10003a18
mov byte [eax], 0x5f
inc eax
cmp eax, ecx
jne 0x10003a10
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmp edx, 0xf
cmova eax, esi
add ecx, eax
cmp edx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, esi
cmp eax, ecx
je 0x10003a4d
nop
cmp byte [eax], 0x3d
jne 0x10003a48
mov byte [eax], 0x2d
inc eax
cmp eax, ecx
jne 0x10003a40
mov ecx, dword [ebx + 0x1c]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
cmp ecx, 0xf
jbe 0x10003b54
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003b4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003b4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
push 0x10041408
mov dword [edi + 0x14], 0
call fcn.100020e0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10003b0e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003b04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003ab6
push ecx
push edx
call fcn.1003f24b
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x10003b54
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003b4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003ab6
push ecx
push edx
call fcn.1003f24b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003f23d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret