Function at 0x470600
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be359
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 0x470914
jmp 0x470659
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
mov cl, byte [eax + edi]
inc eax
cmp eax, edx
je 0x4708c4
mov bl, byte [eax + edi]
inc eax
mov byte [ebp - 0x14], bl
cmp eax, edx
je 0x470928
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 0x470984
lea ebx, [eax + 1]
cmp ebx, 0xfffffffe
ja 0x470984
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x4706c1
push eax
push ebx
mov ecx, esi
call fcn.00417cf0
jmp 0x4706d6
test ebx, ebx
jne 0x4706d8
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x4706d1
mov eax, dword [esi]
jmp 0x4706d3
mov eax, esi
mov byte [eax], 0
test ebx, ebx
setne al
test al, al
je 0x470707
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x4706ec
mov eax, dword [esi]
jmp 0x4706ee
mov eax, esi
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x470701
mov eax, dword [esi]
jmp 0x470703
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 0x470984
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x470984
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x470750
push eax
push edi
mov ecx, esi
call fcn.00417cf0
jmp 0x470765
test edi, edi
jne 0x470767
mov dword [esi + 0x10], edi
cmp ecx, 0x10
jb 0x470760
mov eax, dword [esi]
jmp 0x470762
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x470796
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x47077b
mov eax, dword [esi]
jmp 0x47077d
mov eax, esi
mov dl, byte [ebp - 0x14]
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x470790
mov eax, dword [esi]
jmp 0x470792
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 0x470984
lea ebx, [eax + 1]
cmp ebx, 0xfffffffe
ja 0x470984
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x4707e0
push eax
push ebx
mov ecx, esi
call fcn.00417cf0
jmp 0x4707f5
test ebx, ebx
jne 0x4707f7
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x4707f0
mov eax, dword [esi]
jmp 0x4707f2
mov eax, esi
mov byte [eax], 0
test ebx, ebx
setne al
test al, al
je 0x470826
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x47080b
mov eax, dword [esi]
jmp 0x47080d
mov eax, esi
mov dl, byte [ebp - 0x18]
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x470820
mov eax, dword [esi]
jmp 0x470822
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 0x470984
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x470984
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x47085e
push eax
push edi
mov ecx, esi
call fcn.00417cf0
jmp 0x470873
test edi, edi
jne 0x470875
mov dword [esi + 0x10], edi
cmp ecx, 0x10
jb 0x47086e
mov eax, dword [esi]
jmp 0x470870
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x4708a4
mov ecx, dword [esi + 0x10]
mov edx, 0x10
cmp dword [esi + 0x14], edx
jb 0x47088d
mov eax, dword [esi]
jmp 0x47088f
mov eax, esi
mov byte [ecx + eax], bl
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edx
jb 0x47089e
mov eax, dword [esi]
jmp 0x4708a0
mov eax, esi
mov byte [edi + eax], 0
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0x1c], edx
jl 0x470656
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.004131b0
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.004131b0
push 0x3d
push 1
mov ecx, esi
call fcn.004131b0
push 0x3d
push 1
mov ecx, esi
call fcn.004131b0
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.004131b0
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.004131b0
and ebx, 0xf
mov dl, byte [ebx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x10], dl
mov eax, dword [ebp + 0x10]
push eax
jmp 0x470900
push str.string_too_long
call fcn.0049af0c
int3