Function at 0x40eff0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44beb1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45e054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x40], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 0x48], edi
mov byte [edi], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x40
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00405d00
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 1
test eax, eax
je 0x40f31f
lea ecx, [ecx]
dec eax
mov dword [ebp + 8], eax
mov al, byte [esi]
inc esi
mov byte [ebp + ebx - 0x34], al
inc ebx
mov ch, byte [ebp - 0x32]
mov dl, byte [ebp - 0x33]
mov cl, byte [ebp - 0x34]
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x2d], ch
mov byte [ebp - 0x3b], dl
mov byte [ebp - 0x3a], cl
cmp ebx, 3
jne 0x40f181
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x38], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x37], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x36], cl
mov byte [ebp - 0x35], al
xor ebx, ebx
lea ecx, [ecx]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
movzx eax, byte [ebp + ebx - 0x38]
cmovae ecx, dword [ebp - 0x2c]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [ebp - 0x39], dl
cmp eax, 1
jbe 0x40f24f
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x40f24f
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x40f137
push ecx
push esi
mov ecx, edi
call fcn.00405b00
mov dl, byte [ebp - 0x39]
test esi, esi
je 0x40f169
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40f151
mov eax, dword [edi]
jmp 0x40f153
test esi, esi
jne 0x40f12a
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x40f14a
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40f169
mov eax, edi
mov byte [eax], 0
jmp 0x40f169
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40f163
mov eax, dword [edi]
jmp 0x40f165
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x40f0e0
mov esi, dword [ebp - 0x44]
xor ebx, ebx
mov dl, byte [ebp - 0x3b]
mov cl, byte [ebp - 0x3a]
mov ch, byte [ebp - 0x2d]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40f080
test ebx, ebx
je 0x40f31f
mov eax, ebx
cmp ebx, 3
jge 0x40f1b8
cmp eax, 3
jae 0x40f25a
mov byte [ebp + eax - 0x34], 0
inc eax
cmp eax, 3
jl 0x40f19e
mov ch, byte [ebp - 0x32]
mov dl, byte [ebp - 0x33]
mov cl, byte [ebp - 0x34]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x38], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x37], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x35], ch
mov byte [ebp - 0x36], dl
lea eax, [ebx + 1]
xor edx, edx
mov dword [ebp - 0x34], edx
test eax, eax
jle 0x40f2a6
jmp 0x40f200
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
movzx eax, byte [ebp + edx - 0x38]
cmovae ecx, dword [ebp - 0x2c]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x2d], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x40f24f
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x40f24f
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x40f25f
push ecx
push esi
mov ecx, edi
call fcn.00405b00
mov edx, dword [ebp - 0x34]
test esi, esi
je 0x40f297
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40f279
mov eax, dword [edi]
jmp 0x40f27b
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
call fcn.00449c48
test esi, esi
jne 0x40f242
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x40f272
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40f297
mov eax, edi
mov byte [eax], 0
jmp 0x40f297
mov eax, edi
mov dl, byte [ebp - 0x2d]
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40f28e
mov eax, dword [edi]
jmp 0x40f290
mov eax, edi
mov edx, dword [ebp - 0x34]
mov byte [eax + esi], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x34], edx
cmp edx, eax
jl 0x40f200
cmp ebx, 3
jge 0x40f31f
jmp 0x40f2b0
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x40f24f
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x40f24f
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x40f2e7
push ecx
push esi
mov ecx, edi
call fcn.00405b00
test esi, esi
je 0x40f31a
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40f301
mov eax, dword [edi]
jmp 0x40f303
test esi, esi
jne 0x40f2da
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x40f2fa
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40f31a
mov eax, edi
mov byte [eax], 0
jmp 0x40f31a
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40f314
mov eax, dword [edi]
jmp 0x40f316
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x40f2b0
cmp dword [ebp - 0x18], 0x10
jb 0x40f331
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044998c
mov esp, ebp
pop ebp
ret