Function at 0x47dd90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf359
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
cmp edx, eax
jle 0x47e0a4
jmp 0x47dde9
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
mov cl, byte [eax + edi]
inc eax
cmp eax, edx
je 0x47e054
mov bl, byte [eax + edi]
inc eax
mov byte [ebp - 0x14], bl
cmp eax, edx
je 0x47e0b8
mov dl, byte [eax + edi]
inc eax
movzx edi, cl
mov dword [ebp - 0x1c], eax
mov eax, edi
shr eax, 2
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esi + 0x10]
mov byte [ebp - 0x18], dl
or edx, 0xffffffff
sub edx, eax
mov byte [ebp - 0x10], cl
cmp edx, 1
jbe 0x47e114
lea ebx, [eax + 1]
cmp ebx, 0xfffffffe
ja 0x47e114
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x47de51
push eax
push ebx
mov ecx, esi
call fcn.0041b510
jmp 0x47de66
test ebx, ebx
jne 0x47de68
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x47de61
mov eax, dword [esi]
jmp 0x47de63
mov eax, esi
mov byte [eax], 0
test ebx, ebx
setne al
test al, al
je 0x47de97
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x47de7c
mov eax, dword [esi]
jmp 0x47de7e
mov eax, esi
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x47de91
mov eax, dword [esi]
jmp 0x47de93
mov eax, esi
mov byte [eax + ebx], 0
movzx ebx, byte [ebp - 0x14]
and edi, 3
mov eax, ebx
shr eax, 4
shl edi, 4
or eax, edi
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esi + 0x10]
or edx, 0xffffffff
sub edx, eax
mov byte [ebp - 0x14], cl
cmp edx, 1
jbe 0x47e114
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x47e114
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x47dee0
push eax
push edi
mov ecx, esi
call fcn.0041b510
jmp 0x47def5
test edi, edi
jne 0x47def7
mov dword [esi + 0x10], edi
cmp ecx, 0x10
jb 0x47def0
mov eax, dword [esi]
jmp 0x47def2
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x47df26
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x47df0b
mov eax, dword [esi]
jmp 0x47df0d
mov eax, esi
mov dl, byte [ebp - 0x14]
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x47df20
mov eax, dword [esi]
jmp 0x47df22
mov eax, esi
mov byte [eax + edi], 0
movzx edi, byte [ebp - 0x18]
and ebx, 0xf
add ebx, ebx
mov eax, edi
shr eax, 6
add ebx, ebx
or eax, ebx
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esi + 0x10]
or edx, 0xffffffff
sub edx, eax
mov byte [ebp - 0x18], cl
cmp edx, 1
jbe 0x47e114
lea ebx, [eax + 1]
cmp ebx, 0xfffffffe
ja 0x47e114
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x47df70
push eax
push ebx
mov ecx, esi
call fcn.0041b510
jmp 0x47df85
test ebx, ebx
jne 0x47df87
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x47df80
mov eax, dword [esi]
jmp 0x47df82
mov eax, esi
mov byte [eax], 0
test ebx, ebx
setne al
test al, al
je 0x47dfb6
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x47df9b
mov eax, dword [esi]
jmp 0x47df9d
mov eax, esi
mov dl, byte [ebp - 0x18]
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x47dfb0
mov eax, dword [esi]
jmp 0x47dfb2
mov eax, esi
mov byte [eax + ebx], 0
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
and edi, 0x3f
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
sub ecx, eax
cmp ecx, 1
jbe 0x47e114
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x47e114
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x47dfee
push eax
push edi
mov ecx, esi
call fcn.0041b510
jmp 0x47e003
test edi, edi
jne 0x47e005
mov dword [esi + 0x10], edi
cmp ecx, 0x10
jb 0x47dffe
mov eax, dword [esi]
jmp 0x47e000
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x47e034
mov ecx, dword [esi + 0x10]
mov edx, 0x10
cmp dword [esi + 0x14], edx
jb 0x47e01d
mov eax, dword [esi]
jmp 0x47e01f
mov eax, esi
mov byte [ecx + eax], bl
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edx
jb 0x47e02e
mov eax, dword [esi]
jmp 0x47e030
mov eax, esi
mov byte [edi + eax], 0
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0x1c], edx
jl 0x47dde6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, cl
mov eax, edi
shr eax, 2
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x10], cl
mov edx, dword [ebp + 0x10]
push edx
push 1
mov ecx, esi
call fcn.004160d0
and edi, 3
shl edi, 4
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x10], al
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, esi
call fcn.004160d0
push 0x3d
push 1
mov ecx, esi
call fcn.004160d0
push 0x3d
push 1
mov ecx, esi
call fcn.004160d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, cl
mov edx, edi
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x10], al
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, esi
call fcn.004160d0
movzx ebx, bl
mov edx, ebx
and edi, 3
shr edx, 4
shl edi, 4
or edx, edi
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x10], al
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, esi
call fcn.004160d0
and ebx, 0xf
mov dl, byte [ebx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x10], dl
mov eax, dword [ebp + 0x10]
push eax
jmp 0x47e090
push str.string_too_long
call fcn.0049c662
int3