Function at 0x10012360
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062b8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov dword [ebp - 0x1c], edx
push edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov eax, dword [0x100a8740]
test al, 1
jne 0x10012430
or eax, 1
mov dword [0x100a8740], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0x50
movups xmmword [0x100a8728], xmm0
mov dword [0x100a8738], 0
mov dword [0x100a873c], 0xf
call fcn.10044157
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [0x100a8728], eax
mov dword [0x100a8738], 0x40
mov dword [0x100a873c], 0x4f
movups xmmword [eax], xmm0
push 0x10065d10
movups xmm0, xmmword [0x10090b28]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x10090b38]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x10090b48]
movups xmmword [eax + 0x30], xmm0
mov byte [eax + 0x40], 0
call fcn.1004412b
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x24], 1
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10012663
nop dword [eax]
mov al, byte [edx]
dec ecx
mov byte [ebp + edi - 0x14], al
inc edx
mov al, byte [ebp - 0x12]
inc edi
mov ah, byte [ebp - 0x13]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x14]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], al
cmp edi, 3
jne 0x10012547
mov cl, byte [ebp - 0xd]
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x17], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor edi, edi
cmp dword [0x100a873c], 0xf
mov ecx, 0x100a8728
movzx eax, byte [ebp + edi - 0x18]
cmova ecx, dword [0x100a8728]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x20], al
cmp ecx, edx
jae 0x10012524
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10012517
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x20]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x10012533
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x20]
push 1
call fcn.10022e20
inc edi
cmp edi, 4
jl 0x100124e0
mov ecx, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp - 0x1c]
mov ah, byte [ebp - 0xf]
mov al, byte [ebp - 0xd]
test ecx, ecx
jne 0x10012480
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x10012663
cmp edi, 3
jge 0x10012584
mov eax, 3
sub eax, edi
push eax
lea eax, [ebp - 0x14]
push ecx
add eax, edi
push eax
call fcn.10045a70
mov al, byte [ebp - 0x14]
add esp, 0xc
mov dl, byte [ebp - 0x12]
mov ah, byte [ebp - 0x13]
mov byte [ebp - 0xd], al
jmp 0x10012587
mov dl, byte [ebp - 0xe]
mov cl, byte [ebp - 0xd]
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, ah
shr al, 4
and ah, 0xf
shl cl, 4
add cl, al
shl ah, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ah, al
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], ah
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x1001261e
xor edi, edi
cmp dword [0x100a873c], 0xf
mov ecx, 0x100a8728
movzx eax, byte [ebp + edi - 0x18]
cmova ecx, dword [0x100a8728]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x20], al
cmp ecx, edx
jae 0x10012606
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x100125f9
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x20]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x10012615
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x20]
push 1
call fcn.10022e20
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x100125c2
mov edi, dword [ebp - 0x1c]
cmp edi, 3
jge 0x10012663
mov eax, 3
sub eax, edi
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x10012651
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10012649
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x1001265d
push 0x3d
push edi
push 1
mov ecx, esi
call fcn.10022e20
sub dword [ebp - 0x20], 1
jne 0x10012630
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret