Function at 0x401070
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4278be
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x437050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4012b7
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x14], al
inc esi
mov bl, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov bh, byte [ebp - 0x13]
mov dword [ebp - 0x28], edx
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], cl
cmp esi, 3
jne 0x4011a4
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, bh
shl cl, 4
shr al, 4
add cl, al
mov al, bl
mov byte [ebp - 0x17], cl
mov cl, bh
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, bl
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop
cmp dword [0x437adc], 0x10
mov ecx, 0x437ac8
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x437ac8]
mov edx, dword [edi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x1c], bl
cmp ecx, edx
jae 0x401181
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x401177
mov eax, dword [edi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x401193
push dword [ebp - 0x1c]
mov byte [ebp - 0x24], 0
push dword [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.004012e0
inc esi
cmp esi, 4
jl 0x401140
mov cl, byte [ebp - 0xd]
xor esi, esi
mov edx, dword [ebp - 0x28]
mov bl, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4010e4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4012b7
mov eax, esi
cmp esi, 3
jge 0x4011de
cmp eax, 3
jae 0x4012cb
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4011c4
mov bl, byte [ebp - 0x12]
mov bh, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
shr bl, 6
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, bh
and bh, 0xf
shr al, 4
shl bh, 2
shl cl, 4
add bh, bl
add cl, al
mov byte [ebp - 0x16], bh
lea eax, [esi + 1]
mov byte [ebp - 0x17], cl
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jle 0x401270
mov esi, eax
cmp dword [0x437adc], 0x10
mov ecx, 0x437ac8
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x437ac8]
mov edx, dword [edi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 8], al
cmp ecx, edx
jae 0x401256
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x401249
mov eax, dword [edi]
mov dl, byte [ebp + 8]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x401268
push dword [ebp + 8]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.004012e0
inc ebx
cmp ebx, esi
jl 0x401212
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x4012b7
mov ebx, 3
sub ebx, esi
nop dword [eax]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x4012a1
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x401299
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x4012b2
push 0x3d
mov byte [ebp + 8], 0
push dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.004012e0
sub ebx, 1
jne 0x401280
mov eax, edi
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.0040bf9d
int3