Function at 0x4311d7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00426489
test al, al
je 0x431206
pop ecx
push ebx
pop eax
push esp
push edx
push esp
pop eax
pop esp
pop ebp
push esi
pop edi
push eax
pop edi
push eax
pop esi
push ebp
push ebx
push eax
pop esi
push edx
pop ebx
pop ecx
push ebx
push esi
pop ebx
pop edx
push edx
push ebp
push eax
push ebx
push esp
call fcn.00426444
test al, al
je 0x43122d
pop eax
push edi
pop ebx
push esp
pop edi
push esp
pop ebp
push ecx
pop ecx
push edi
push ecx
pop edi
push eax
pop esp
push edx
push ecx
pop esi
push eax
pop ecx
push ebx
pop edi
push ebp
push ecx
push ecx
push eax
pop esp
pop esp
pop esp
push eax
push ebx
call fcn.004269ed
test al, al
je 0x431251
push ebp
pop ebx
push esi
pop edx
pop eax
push esp
push edx
pop edx
push ebp
push eax
pop ecx
push edi
pop esp
pop edx
pop esp
pop edi
push ebx
pop edi
pop edx
pop ebx
push ebx
pop eax
push ebx
push edx
push edi
push esp
push edx
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0xc], ecx
jle 0x431394
mov edi, dword [ebp + 8]
mov al, byte [ecx + edi]
cmp al, 0x3d
jne 0x431270
inc esi
cmp esi, 2
jg 0x4312b1
cmp al, 0x7f
ja 0x4312b1
movzx eax, al
mov al, byte [eax + 0x5a7ff8]
cmp al, 0x7f
je 0x4312b1
cmp al, 0x40
jae 0x431289
test esi, esi
jne 0x4312b1
inc edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x431263
test edx, edx
je 0x431394
mov ecx, dword [ebp + 0x14]
imul eax, edx, 6
add eax, 7
sar eax, 3
cmp dword [ecx], eax
jge 0x4312b9
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x4312b3
push 0xffffffffffffffee
pop eax
jmp 0x431396
call fcn.00426bd0
test al, al
je 0x4312d7
pop eax
push ebx
pop ecx
push ebx
pop ebp
push edx
pop ebp
pop edx
pop edi
pop eax
pop esp
push edi
push ecx
push edx
push ebx
push eax
push esp
pop esi
pop ecx
push edx
push esp
call fcn.00426489
test al, al
je 0x4312f2
pop edi
push ebp
push edx
pop esp
push esp
pop esi
pop ebx
pop ebp
pop eax
pop ebx
pop esp
pop edi
pop edx
pop edx
pop ebx
pop ebx
push ebx
push ebp
call fcn.00426c15
test al, al
je 0x431319
pop esi
push edi
pop edi
pop edi
pop ebx
push eax
push ebx
pop edi
push edi
push esi
push eax
pop ebx
push ebp
push ecx
push ebp
push ebp
push ecx
pop ecx
pop edx
pop ebp
pop eax
pop eax
pop edx
push edi
push ebx
push eax
push edx
push ecx
pop esp
push edi
mov esi, dword [ebp - 4]
xor eax, eax
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 0xc], eax
push 3
pop edi
test esi, esi
jle 0x43138c
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov cl, byte [eax + 0x5a7ff8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x431380
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x43136b
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x431378
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x431380
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x431330
mov eax, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret