Function at 0x4037d0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x228
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x234]
push ebx
push ebp
push esi
push edi
push eax
push ecx
lea edx, [esp + 0x13c]
push str._s:_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
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 0x403844
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x134]
mov ebx, edx
mov dword [esp + 0x14], eax
lea eax, [ecx - 3]
xor edx, edx
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x40398f
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 0x4038ab
cmp ebx, 0x40
jge 0x4038ab
mov bl, byte [esp + ebx + 0xf0]
jmp 0x4038ad
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 + 0xac]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x4038e6
cmp ebx, 0x40
jge 0x4038e6
mov bl, byte [esp + ebx + 0xac]
jmp 0x4038e8
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 + 0x68]
or ebx, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40391e
cmp ebx, 0x40
jge 0x40391e
mov bl, byte [esp + ebx + 0x68]
jmp 0x403920
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 0x403947
cmp eax, 0x40
jge 0x403947
mov al, byte [esp + eax + 0x24]
jmp 0x403949
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 0x403879
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x403a8c
sub ecx, edx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x4039bf
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 0x4039e5
cmp edx, 0x40
jge 0x4039e5
mov dl, byte [esp + edx + 0x24]
jmp 0x4039e7
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 0x403a19
cmp edx, 0x40
jge 0x403a19
mov dl, byte [esp + edx + 0x24]
jmp 0x403a1b
mov dl, 0x3d
cmp ebp, 1
mov byte [ebx + 1], dl
jle 0x403a56
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 0x403a56
cmp edx, 0x40
jge 0x403a56
mov dl, byte [esp + edx + 0x24]
jmp 0x403a58
mov dl, 0x3d
cmp ebp, 2
mov byte [ebx + 2], dl
jle 0x403a84
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 0x403a84
cmp eax, 0x40
jge 0x403a84
mov al, byte [esp + eax + 0x24]
jmp 0x403a86
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, 0x228
ret 0x10