Function at 0x4080d0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x4e78
call fcn.00431dd0
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x4e74], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4e84]
push esi
push edi
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov dword [esp + 0x10], ebp
movsb byte es:[edi], byte [esi]
xor ebx, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408110
sub eax, edx
lea esi, [eax + 1]
push 0x270f
lea eax, [esp + 0x2779]
push 0
push eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x2780], bl
call fcn.00431520
push 0x270f
lea ecx, [esp + 0x75]
push 0
push ecx
mov byte [esp + 0x7c], bl
call fcn.00431520
add esp, 0x18
test esi, esi
jle 0x4084cf
mov eax, 1
sub eax, ebp
mov dword [esp + 0x1c], eax
mov eax, 2
sub eax, ebp
mov dword [esp + 0x18], eax
movzx edx, byte [ebp + ebx]
add ebp, ebx
shr edx, 2
movsx eax, byte [esp + edx + 0x20]
push eax
lea ecx, [esp + 0x68]
push 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
jmp 0x4081a0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4081a0
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4081b7
mov edx, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, ebp
cmp edx, dword [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
jge 0x40832a
movzx eax, byte [ebp]
movzx edx, byte [ecx + ebx + 1]
and eax, 3
shl eax, 4
shr edx, 4
or eax, edx
movsx eax, byte [esp + eax + 0x20]
push eax
lea ecx, [esp + 0x68]
push 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408215
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408230
mov edx, dword [esp + 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, ebp
cmp edx, dword [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
jge 0x40841f
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebx + ebp + 1]
movzx ecx, byte [ebx + ebp + 2]
and eax, 0xf
add eax, eax
add eax, eax
shr ecx, 6
or eax, ecx
movsx edx, byte [esp + eax + 0x20]
push edx
lea eax, [esp + 0x68]
push 0x44c4f8
push eax
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408290
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4082a7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, byte [ebx + ebp + 2]
and ecx, 0x3f
movsx edx, byte [esp + ecx + 0x20]
push edx
lea eax, [esp + 0x68]
push 0x44c4f8
push eax
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4082e5
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408300
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebx, 3
cmp ebx, dword [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
jl 0x408173
jmp 0x4084cf
movzx edx, byte [ecx + ebx]
and edx, 3
shl edx, 4
movsx eax, byte [esp + edx + 0x20]
push eax
lea ecx, [esp + 0x68]
push 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408352
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408370
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x3d
mov ecx, eax
lea edx, [esp + 0x68]
and ecx, 3
push 0x44c4f8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4083a2
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4083c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x3d
lea eax, [esp + 0x68]
and ecx, 3
push 0x44c4f8
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4083f2
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408410
jmp 0x4084c1
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + ebx + 1]
and edx, 0xf
movsx eax, byte [esp + edx*4 + 0x20]
push eax
lea ecx, [esp + 0x68]
push 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408450
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408467
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x3d
mov ecx, eax
lea edx, [esp + 0x68]
and ecx, 3
push 0x44c4f8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4084a0
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4084b7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [esp + 0x68]
push 0x44c4f8
push eax
call fcn.0042ef27
lea eax, [esp + 0x70]
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4084f0
lea edi, [esp + 0x2774]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408507
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4e84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
lea eax, [esp + 0x2764]
call fcn.0042dbc0
add esp, 0x4e78
ret 4