Function at 0x1003f050
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x1010ad89
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [esp + 0x34], 0
xor ebx, ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x20], 1
test ebp, ebp
je 0x1003f379
lea esp, [esp]
mov al, byte [edx]
dec ebp
mov byte [esp + ebx + 0x18], al
inc edx
mov ah, byte [esp + 0x1a]
inc ebx
mov ch, byte [esp + 0x19]
mov cl, byte [esp + 0x18]
mov dword [esp + 0x24], edx
mov byte [esp + 0x17], ah
mov byte [esp + 0x15], ch
mov byte [esp + 0x16], cl
cmp ebx, 3
jne 0x1003f1db
mov al, cl
and cl, 3
shr al, 2
mov byte [esp + 0x1c], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [esp + 0x1d], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
xor ebx, ebx
jmp 0x1003f130
cmp dword [0x1016144c], 0x10
mov ecx, 0x10161438
movzx eax, byte [esp + ebx + 0x1c]
cmovae ecx, dword [0x10161438]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [esp + 0x3c], dl
cmp eax, 1
jbe 0x1003f210
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x1003f210
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x1003f191
push ecx
push esi
mov ecx, edi
call fcn.10006a60
mov dl, byte [esp + 0x3c]
test esi, esi
je 0x1003f1c3
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x1003f1ab
mov eax, dword [edi]
jmp 0x1003f1ad
test esi, esi
jne 0x1003f184
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x1003f1a4
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1003f1c3
mov eax, edi
mov byte [eax], 0
jmp 0x1003f1c3
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x1003f1bd
mov eax, dword [edi]
jmp 0x1003f1bf
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x1003f130
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ch, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
test ebp, ebp
jne 0x1003f0c0
test ebx, ebx
je 0x1003f379
mov eax, ebx
cmp ebx, 3
jge 0x1003f21f
cmp eax, 3
jae 0x1003f21a
mov byte [esp + eax + 0x18], 0
inc eax
cmp eax, 3
jl 0x1003f1f5
mov dl, byte [esp + 0x1a]
mov ch, byte [esp + 0x19]
mov cl, byte [esp + 0x18]
jmp 0x1003f223
push str.string_too_long
call fcn.1006edf7
call fcn.1005db2e
mov dl, byte [esp + 0x17]
mov al, cl
xor ebp, ebp
shr al, 2
and cl, 3
mov byte [esp + 0x1c], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [esp + 0x1d], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [esp + 0x1f], dl
lea eax, [ebx + 1]
mov byte [esp + 0x1e], ch
test eax, eax
jle 0x1003f2fd
cmp dword [0x1016144c], 0x10
mov ecx, 0x10161438
movzx eax, byte [esp + ebp + 0x1c]
cmovae ecx, dword [0x10161438]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [esp + 0x3c], dl
cmp eax, 1
jbe 0x1003f210
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x1003f210
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x1003f2bf
push ecx
push esi
mov ecx, edi
call fcn.10006a60
mov dl, byte [esp + 0x3c]
test esi, esi
je 0x1003f2f1
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x1003f2d9
mov eax, dword [edi]
jmp 0x1003f2db
test esi, esi
jne 0x1003f2b2
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x1003f2d2
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1003f2f1
mov eax, edi
mov byte [eax], 0
jmp 0x1003f2f1
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x1003f2eb
mov eax, dword [edi]
jmp 0x1003f2ed
mov eax, edi
mov byte [eax + esi], 0
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jl 0x1003f262
cmp ebx, 3
jge 0x1003f379
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x1003f210
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x1003f210
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x1003f341
push ecx
push esi
mov ecx, edi
call fcn.10006a60
test esi, esi
je 0x1003f374
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x1003f35b
mov eax, dword [edi]
jmp 0x1003f35d
test esi, esi
jne 0x1003f334
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x1003f354
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1003f374
mov eax, edi
mov byte [eax], 0
jmp 0x1003f374
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x1003f36e
mov eax, dword [edi]
jmp 0x1003f370
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x1003f302
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret