Function at 0x10024340
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x10]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
xor esi, esi
mov dword [esp + 8], 0
mov ecx, dword [esp]
mov eax, 0x55555556
imul ecx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jl 0x10024424
xor ecx, ecx
mov esi, esi
add ecx, 1
mov eax, dword [esp + 0xc]
movzx ebx, byte [eax + esi]
shr ebx, 2
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 8]
mov byte [ebx + edi], al
mov eax, dword [esp + 0xc]
mov bx, word [eax + esi]
and bx, 3
movsx ebx, bx
shl ebx, 4
movzx eax, byte [eax + esi + 1]
shr eax, 4
add eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0xc]
mov bx, word [eax + esi + 1]
and bx, 0xf
movsx ebx, bx
shl ebx, 2
movzx eax, byte [eax + esi + 2]
shr eax, 6
add eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 8]
mov byte [ebx + edi + 2], al
mov eax, dword [esp + 0xc]
mov bx, word [eax + esi + 2]
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 8]
mov byte [ebx + edi + 3], al
add dword [esp + 8], 4
add esi, 3
cmp edx, ecx
jg 0x10024378
mov eax, dword [esp]
cdq
mov ecx, 3
idiv ecx
cmp edx, 1
jl 0x10024528
sub edx, 1
je 0x10024448
sub edx, 1
je 0x100244a8
jmp 0x10024528
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [eax + ecx], dl
mov edx, dword [esp + 0xc]
mov ax, word [edx + esi]
and ax, 3
movsx eax, ax
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [edx + ecx + 1], al
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov byte [eax + edx + 2], 0x3d
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov byte [eax + edx + 3], 0x3d
jmp 0x10024528
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + esi]
shr eax, 2
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [eax + ecx], dl
mov eax, dword [esp + 0xc]
mov dx, word [eax + esi]
and dx, 3
movsx edx, dx
shl edx, 4
movzx eax, byte [eax + esi + 1]
shr eax, 4
add eax, edx
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [eax + ecx + 1], dl
mov edx, dword [esp + 0xc]
mov ax, word [edx + esi + 1]
and ax, 0xf
movsx eax, ax
shl eax, 2
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov byte [eax + edx + 2], cl
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov byte [eax + edx + 3], 0x3d
lea esi, [esi]
mov eax, dword [esp]
lea ecx, [eax + 2]
mov eax, 0x55555556
imul ecx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
shl eax, 2
lea esp, [esp + 0x10]
pop edi
pop esi
pop ebx
ret