Function at 0x403180
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x20], ebx
push 0x6292df
mov ecx, esi
call fcn.00403030
mov eax, 0xaaaaaaab
mul ebx
xor eax, eax
shr edx, 1
mov dword [ebp - 0x24], eax
lea ecx, [edx + edx*2]
test ecx, ecx
je 0x403307
dec ecx
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 8], eax
lea ecx, [eax + eax*2]
mov dword [ebp - 0x24], ecx
movzx eax, byte [edi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
shr eax, 2
mov bl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x10], bl
cmp ecx, edx
jae 0x403202
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x4031f8
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x403214
push dword [ebp - 0x10]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00403870
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
mov edx, dword [esi + 0x14]
add ecx, ecx
shr eax, 4
mov bl, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], bl
cmp ecx, edx
jae 0x403250
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403246
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x403262
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00403870
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
mov edx, dword [esi + 0x14]
shr eax, 6
mov bl, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x18], bl
cmp ecx, edx
jae 0x40329d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403293
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x4032af
push dword [ebp - 0x18]
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
mov ecx, esi
call fcn.00403870
movzx eax, byte [edi + 2]
mov ecx, dword [esi + 0x10]
and eax, 0x3f
mov edx, dword [esi + 0x14]
mov bl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xc], bl
cmp ecx, edx
jae 0x4032e2
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x4032d8
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x4032f4
push dword [ebp - 0xc]
mov byte [ebp - 4], 0
push dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00403870
add edi, 3
sub dword [ebp - 8], 1
jne 0x4031d0
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jae 0x403441
mov dl, byte [edi]
inc eax
cmp eax, ebx
jae 0x40331e
mov cl, byte [edi + 1]
mov byte [ebp - 0x19], cl
jmp 0x403322
mov byte [ebp - 0x19], 0
mov ecx, dword [esi + 0x10]
movzx ebx, dl
mov edx, dword [esi + 0x14]
mov eax, ebx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 8], al
cmp ecx, edx
jae 0x403359
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40334c
mov eax, dword [esi]
mov dl, byte [ebp - 8]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40336b
push dword [ebp - 8]
mov byte [ebp - 4], 0
push dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00403870
movzx edi, byte [ebp - 0x19]
and ebx, 3
mov ecx, dword [esi + 0x10]
mov eax, edi
mov edx, dword [esi + 0x14]
shr eax, 4
shl ebx, 4
mov bl, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 4], bl
cmp ecx, edx
jae 0x4033a7
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40339d
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x4033b9
push dword [ebp - 4]
mov byte [ebp - 0xc], 0
push dword [ebp - 0xc]
push ecx
mov ecx, esi
call fcn.00403870
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x20]
jae 0x4033d0
and edi, 0xf
mov cl, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4033d2
mov cl, 0x3d
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov byte [ebp - 0x20], cl
cmp edx, edi
jae 0x4033f8
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0x10
jb 0x4033ee
mov eax, dword [esi]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x40340a
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
push dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00403870
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x403430
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x403421
mov esi, dword [esi]
pop edi
mov word [esi + ecx], 0x3d
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3d
mov byte [ebp - 4], 0
push dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00403870
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret