Function at 0x401060
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401b30
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov dword fs:[0], eax
mov dword [edi], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
xor ebx, ebx
jmp 0x4010c6
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub edx, 1
jb 0x4011be
mov al, byte [ecx]
add ecx, 1
mov byte [ebp + ebx - 0x23], al
add ebx, 1
cmp ebx, 3
jne 0x4010c6
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edx
mov al, byte [ebp - 0x23]
mov cl, byte [ebp - 0x22]
mov edx, eax
shr dl, 2
mov byte [ebp - 0x27], dl
mov edx, ecx
shr dl, 4
shl al, 4
or al, dl
and al, 0x3f
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x21]
mov edx, eax
shr dl, 6
shl cl, 2
or cl, dl
and cl, 0x3f
mov byte [ebp - 0x25], cl
and al, 0x3f
mov byte [ebp - 0x24], al
xor ebx, ebx
xor ecx, ecx
jmp 0x401141
mov byte [esi + ecx], al
mov byte [esi + ecx + 1], 0
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edi, dword [ebp + 8]
cmp ecx, 3
ja 0x4010c0
mov eax, 0x436ee4
cmp dword [0x436ef8], 0xf
jbe 0x40115d
mov eax, dword [0x436ee4]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebp + ecx - 0x27]
movzx eax, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x401190
lea esi, [ecx + 1]
mov dword [edi + 0x10], esi
mov esi, edi
cmp edx, 0xf
jbe 0x401130
mov esi, dword [edi]
jmp 0x401130
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp], 1
mov ecx, edi
call fcn.00401960
sub esp, 0xc
xor ebx, ebx
jmp 0x401138
test ebx, ebx
je 0x401310
cmp ebx, 2
jg 0x4011ec
lea eax, [ebx + ebp]
add eax, 0xffffffdd
mov ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00409e00
mov al, byte [ebp - 0x23]
mov cl, byte [ebp - 0x22]
mov edx, eax
shr dl, 2
mov byte [ebp - 0x27], dl
mov edx, ecx
shr dl, 4
shl al, 4
or al, dl
and al, 0x3f
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x21]
mov edx, eax
shr dl, 6
shl cl, 2
or cl, dl
and cl, 0x3f
mov byte [ebp - 0x25], cl
and al, 0x3f
mov byte [ebp - 0x24], al
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
jmp 0x401241
mov byte [esi + ecx], al
mov byte [esi + ecx + 1], 0
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edi, dword [ebp + 8]
cmp ecx, ebx
jg 0x4012bc
mov eax, 0x436ee4
cmp dword [0x436ef8], 0xf
jbe 0x401258
mov eax, dword [0x436ee4]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebp + ecx - 0x27]
movzx eax, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x401280
lea esi, [ecx + 1]
mov dword [edi + 0x10], esi
mov esi, edi
cmp edx, 0xf
jbe 0x401230
mov esi, dword [edi]
jmp 0x401230
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp], 1
mov ecx, edi
call fcn.00401960
sub esp, 0xc
mov ebx, dword [ebp - 0x2c]
jmp 0x401238
mov word [edx + eax], 0x3d
add ebx, 1
mov edi, dword [ebp + 8]
cmp ebx, 2
jg 0x401310
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
jae 0x4012e0
lea edx, [eax + 1]
mov dword [edi + 0x10], edx
mov edx, edi
cmp ecx, 0xf
jbe 0x4012b0
mov edx, dword [edi]
jmp 0x4012b0
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp - 0x20]
mov byte [esp + 4], al
mov dword [esp + 8], 0x3d
mov dword [esp], 1
mov ecx, edi
mov dword [ebp - 0x2c], ebx
call fcn.00401960
sub esp, 0xc
mov ebx, dword [ebp - 0x2c]
jmp 0x4012b6
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret