Function at 0x1003c360
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ecb0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov ecx, 0x100c75db
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
call fcn.10085165
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 1
test eax, eax
je 0x1003c5d7
dec eax
mov dword [ebp + 8], eax
mov al, byte [ebx]
inc ebx
mov byte [ebp + edi - 0x10], al
inc edi
mov ch, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x1f], ch
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1e], cl
cmp edi, 3
jne 0x1003c4b7
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x1c], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x1b], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], al
xor edi, edi
nop
cmp dword [0x100c4ebc], 0x10
mov ecx, 0x100c4ea8
movzx eax, byte [ebp + edi - 0x1c]
cmovae ecx, dword [0x100c4ea8]
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], bl
cmp ecx, edx
jae 0x1003c491
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x1003c487
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x1003c4a3
push dword [ebp - 0x14]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.1002e810
inc edi
cmp edi, 4
jl 0x1003c450
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov dl, byte [ebp - 0x1d]
mov cl, byte [ebp - 0x1e]
mov ch, byte [ebp - 0x1f]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1003c3f2
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1003c5d7
mov eax, edi
cmp edi, 3
jge 0x1003c4f1
cmp eax, 3
jae 0x1003c5eb
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 3
jl 0x1003c4d7
mov ch, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
mov al, cl
xor ebx, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x1c], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x1b], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x19], ch
lea eax, [edi + 1]
mov byte [ebp - 0x1a], dl
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x1003c58e
mov edi, eax
nop dword [eax]
cmp dword [0x100c4ebc], 0x10
mov ecx, 0x100c4ea8
movzx eax, byte [ebp + ebx - 0x1c]
cmovae ecx, dword [0x100c4ea8]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x10], al
cmp ecx, edx
jae 0x1003c574
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x1003c567
mov eax, dword [esi]
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x1003c586
push dword [ebp - 0x10]
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.1002e810
inc ebx
cmp ebx, edi
jl 0x1003c530
mov edi, dword [ebp - 0x14]
cmp edi, 3
jge 0x1003c5d7
mov ebx, 3
sub ebx, edi
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x1003c5c1
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x1003c5b9
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x1003c5d2
push 0x3d
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.1002e810
sub ebx, 1
jne 0x1003c5a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10082bc2
int3