Function at 0x403530
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x134]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x40884c]
mov edx, eax
not ecx
shl edx, 7
dec ecx
add edx, 0x408854
inc eax
mov dword [esp + 0x18], ecx
test ecx, ecx
mov dword [0x40884c], eax
jne 0x40357b
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
mov ebx, edx
lea eax, [ecx - 3]
xor edx, edx
mov dword [esp + 0x14], esi
test eax, eax
mov dword [esp + 0x1c], ebx
jle 0x4036bf
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov dword [esp + 0x10], edx
lea edx, [edx + edx*2]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0xf0]
mov eax, dword [eax]
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x4035db
cmp ebx, 0x40
jge 0x4035db
mov bl, byte [esp + ebx + 0xf0]
jmp 0x4035dd
mov bl, 0x3d
movsx ebp, bl
mov ebx, eax
mov ecx, eax
shr ebx, 0xc
and ecx, 3
and ebx, 0xf
shl ecx, 4
or ebx, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x403610
cmp ebx, 0x40
jge 0x403610
mov bl, byte [esp + ebx + 0x68]
jmp 0x403612
mov bl, 0x3d
movsx edx, bl
mov ebx, eax
mov ecx, eax
shr ebx, 8
and ebx, 0xf
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr ecx, 0x16
shl ebx, 2
and ecx, 3
lea edi, [esp + 0xac]
or ebx, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40364e
cmp ebx, 0x40
jge 0x40364e
mov bl, byte [esp + ebx + 0xac]
jmp 0x403650
mov bl, 0x3d
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsx ebx, bl
movsb byte es:[edi], byte [esi]
jl 0x403677
cmp eax, 0x40
jge 0x403677
mov al, byte [esp + eax + 0x24]
jmp 0x403679
mov al, 0x3d
movsx ecx, al
shl ecx, 8
mov eax, dword [esp + 0x1c]
or ecx, ebx
shl ecx, 8
or ecx, edx
add eax, 4
shl ecx, 8
or ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 3
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x4035a9
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x4037bc
sub ecx, edx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x4036ef
mov esi, dword [esp + 0x14]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x24]
mov edx, eax
rep movsd dword es:[edi], dword [esi]
shr edx, 2
and edx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x403715
cmp edx, 0x40
jge 0x403715
mov dl, byte [esp + edx + 0x24]
jmp 0x403717
mov dl, 0x3d
mov byte [ebx], dl
mov edx, eax
mov ecx, eax
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr edx, 0xc
and ecx, 3
and edx, 0xf
shl ecx, 4
or edx, ecx
mov ecx, 0x10
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x403749
cmp edx, 0x40
jge 0x403749
mov dl, byte [esp + edx + 0x24]
jmp 0x40374b
mov dl, 0x3d
cmp ebp, 1
mov byte [ebx + 1], dl
jle 0x403786
mov edx, eax
mov ecx, eax
shr edx, 8
and edx, 0xf
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr ecx, 0x16
shl edx, 2
and ecx, 3
lea edi, [esp + 0x24]
or edx, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x403786
cmp edx, 0x40
jge 0x403786
mov dl, byte [esp + edx + 0x24]
jmp 0x403788
mov dl, 0x3d
cmp ebp, 2
mov byte [ebx + 2], dl
jle 0x4037b4
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x4037b4
cmp eax, 0x40
jge 0x4037b4
mov al, byte [esp + eax + 0x24]
jmp 0x4037b6
mov al, 0x3d
mov byte [ebx + 3], al
add ebx, 4
pop edi
pop esi
mov byte [ebx], 0
pop ebp
pop ebx
add esp, 0x124
ret 4