Function at 0x10003f20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100282e9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1003d01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, 0xaaaaaaab
add ecx, 2
mov dword [ebp - 0x2c], 0
mul ecx
mov al, byte [ebp + 0xc]
mov ecx, 0x3d
shr edx, 1
mov edi, 0x2e
shl edx, 2
test al, al
movzx eax, al
cmovne ecx, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [ebp - 0x40], esi
mov ebx, dword [eax*4 + 0x1002ba6c]
mov byte [ebp - 0x1c], cl
mov dword [ebp - 0x14], ebx
mov byte [esi], 0
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x2c], 1
cmp edi, edx
ja 0x10003fd7
cmp dword [esi + 0x14], edx
je 0x10003fd7
push 1
push edx
mov ecx, esi
call fcn.10003ba0
test al, al
je 0x10003fd7
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x10003fd1
mov eax, dword [esi]
jmp 0x10003fd3
mov eax, esi
mov byte [eax + edi], 0
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebp + 8], edi
jbe 0x10004276
mov ecx, dword [ebp - 0x10]
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x20], eax
movzx eax, byte [edi + ecx]
add edi, ecx
mov edx, dword [esi + 0x14]
shr eax, 2
mov al, byte [eax + ebx]
mov byte [ebp - 0x34], al
cmp edx, 0x10
jb 0x1000400d
mov ecx, dword [esi]
jmp 0x1000400f
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x1000401d
mov ecx, dword [esi]
jmp 0x1000401f
mov ecx, esi
test eax, eax
je 0x10004025
sub eax, ecx
push dword [ebp - 0x34]
push ecx
push eax
mov ecx, esi
call fcn.10004690
mov ebx, dword [ebp - 0x20]
add ebx, edi
lea eax, [ebx - 1]
cmp eax, dword [ebp + 8]
jae 0x100041c1
movzx ecx, byte [edi]
mov edx, dword [ebp - 0x10]
and ecx, 3
mov edi, dword [ebp - 0x18]
shl ecx, 4
add ecx, dword [ebp - 0x14]
movzx eax, byte [edi + edx + 1]
mov edx, dword [esi + 0x14]
shr eax, 4
mov al, byte [eax + ecx]
mov byte [ebp - 0x3c], al
cmp edx, 0x10
jb 0x1000406e
mov ecx, dword [esi]
jmp 0x10004070
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x1000407e
mov ecx, dword [esi]
jmp 0x10004080
mov ecx, esi
test eax, eax
je 0x10004086
sub eax, ecx
push dword [ebp - 0x3c]
push ecx
push eax
mov ecx, esi
call fcn.10004690
cmp ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x14]
mov ebx, dword [ebp - 0x14]
jae 0x10004140
movzx ecx, byte [edi + eax + 1]
movzx eax, byte [edi + eax + 2]
and ecx, 0xf
shr eax, 6
add eax, ebx
mov al, byte [eax + ecx*4]
mov byte [ebp - 0x24], al
cmp edx, 0x10
jb 0x100040c5
mov ecx, dword [esi]
jmp 0x100040c7
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x100040d5
mov ecx, dword [esi]
jmp 0x100040d7
mov ecx, esi
test eax, eax
je 0x100040dd
sub eax, ecx
push dword [ebp - 0x24]
push ecx
push eax
mov ecx, esi
call fcn.10004690
mov edx, dword [ebp - 0x10]
movzx eax, byte [edi + edx + 2]
mov edx, dword [esi + 0x14]
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [ebp - 0x28], al
cmp edx, 0x10
jb 0x10004106
mov ecx, dword [esi]
jmp 0x10004108
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x10004116
mov ecx, dword [esi]
jmp 0x10004118
mov ecx, esi
test eax, eax
jne 0x1000412d
push dword [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.10004690
jmp 0x10004264
push dword [ebp - 0x28]
sub eax, ecx
push ecx
push eax
mov ecx, esi
call fcn.10004690
jmp 0x10004264
movzx eax, byte [edi + eax + 1]
and eax, 0xf
mov al, byte [ebx + eax*4]
mov byte [ebp - 0x30], al
cmp edx, 0x10
jb 0x10004157
mov ecx, dword [esi]
jmp 0x10004159
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x10004167
mov ecx, dword [esi]
jmp 0x10004169
mov ecx, esi
test eax, eax
je 0x1000416f
sub eax, ecx
push dword [ebp - 0x30]
push ecx
push eax
mov ecx, esi
call fcn.10004690
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x10004187
mov ecx, dword [esi]
jmp 0x10004189
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x10004197
mov ecx, dword [esi]
jmp 0x10004199
mov ecx, esi
test eax, eax
jne 0x100041ae
push dword [ebp - 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.10004690
jmp 0x10004264
push dword [ebp - 0x1c]
sub eax, ecx
push ecx
push eax
mov ecx, esi
call fcn.10004690
jmp 0x10004264
movzx eax, byte [edi]
mov ebx, dword [ebp - 0x14]
and eax, 3
mov edx, dword [esi + 0x14]
add eax, eax
mov al, byte [ebx + eax*8]
mov byte [ebp - 0x38], al
cmp edx, 0x10
jb 0x100041de
mov ecx, dword [esi]
jmp 0x100041e0
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x100041ee
mov ecx, dword [esi]
jmp 0x100041f0
mov ecx, esi
test eax, eax
je 0x100041f6
sub eax, ecx
push dword [ebp - 0x38]
push ecx
push eax
mov ecx, esi
call fcn.10004690
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x1000420e
mov ecx, dword [esi]
jmp 0x10004210
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x1000421e
mov ecx, dword [esi]
jmp 0x10004220
mov ecx, esi
test eax, eax
je 0x10004226
sub eax, ecx
mov edi, dword [ebp - 0x1c]
push edi
push ecx
push eax
mov ecx, esi
call fcn.10004690
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x1000423f
mov ecx, dword [esi]
jmp 0x10004241
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x1000424f
mov ecx, dword [esi]
jmp 0x10004251
mov ecx, esi
test eax, eax
je 0x10004257
sub eax, ecx
push edi
push ecx
push eax
mov ecx, esi
call fcn.10004690
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add edi, 3
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp + 8]
jb 0x10003ff2
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