Function at 0x40d490
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434a85
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x444080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x6c], esi
mov edi, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x40d505
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
jmp 0x40d94c
cmp byte [ebx + 8], 0
je 0x40d605
push esi
lea ecx, [ebp - 0x44]
call fcn.0040a350
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x30]
cmp esi, 0xf
mov edx, dword [ebp - 0x44]
cmova eax, edx
add eax, dword [ebp - 0x34]
cmp esi, 0xf
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x44]
cmova eax, edx
add eax, dword [ebp - 0x34]
cmp esi, 0xf
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x5c]
cmova eax, edx
push 0xa
push esi
push eax
call fcn.00413b00
mov edi, eax
cmp eax, esi
je 0x40d572
inc eax
cmp eax, esi
je 0x40d572
mov cl, byte [eax]
cmp cl, 0xa
je 0x40d56d
mov byte [edi], cl
inc edi
inc eax
cmp eax, esi
jne 0x40d563
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
mov esi, edi
lea ecx, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
sub dword [ebp - 0x54], edi
sub esi, eax
mov edi, dword [ebp - 0x34]
mov eax, edi
mov edx, dword [ebp - 0x54]
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x30], 0xf
mov dword [ebp - 0x54], edx
cmova ecx, dword [ebp - 0x44]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.004159f0
mov esi, dword [ebp - 0x64]
lea edx, [ebp - 0x44]
push 0
mov ecx, esi
mov dword [ebp - 0x34], edi
call fcn.0040d330
mov ecx, dword [ebp - 0x30]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40d5fe
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d5f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d971
push ecx
push edx
call fcn.00414546
add esp, 8
mov eax, esi
jmp 0x40d94e
shr eax, 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
lea eax, [eax + eax*2]
mov byte [ebp - 0x2c], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0040d400
cmp dword [ebp - 0x5c], 0
jbe 0x40d927
mov edi, 2
lea eax, [edi - 1]
cmp dword [esi + 0x10], eax
jbe 0x40d96c
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x40d659
mov ecx, dword [esi]
mov cl, byte [edi + ecx - 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40d66c
movzx edx, cl
sub edx, 0x41
jmp 0x40d6ae
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40d67b
movzx edx, cl
sub edx, 0x47
jmp 0x40d6ae
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40d68a
movzx edx, cl
add edx, 4
jmp 0x40d6ae
cmp cl, 0x2b
je 0x40d6a9
cmp cl, 0x2d
je 0x40d6a9
cmp cl, 0x2f
je 0x40d6a2
cmp cl, 0x5f
jne 0x40d976
mov edx, 0x3f
jmp 0x40d6ae
mov edx, 0x3e
lea eax, [edi - 2]
mov dword [ebp - 0x54], edx
cmp dword [esi + 0x10], eax
jbe 0x40d96c
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x40d6c7
mov ecx, dword [esi]
mov cl, byte [edi + ecx - 2]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40d6d7
sub cl, 0x41
jmp 0x40d70d
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40d6e3
sub cl, 0x47
jmp 0x40d70d
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40d6ef
add cl, 4
jmp 0x40d70d
cmp cl, 0x2b
je 0x40d70b
cmp cl, 0x2d
je 0x40d70b
cmp cl, 0x2f
je 0x40d707
cmp cl, 0x5f
jne 0x40d976
mov cl, 0x3f
jmp 0x40d70d
mov cl, 0x3e
shr edx, 4
shl cl, 2
and dl, 3
add dl, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x48], dl
cmp ecx, dword [ebp - 0x18]
jae 0x40d73e
cmp dword [ebp - 0x18], 0xf
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40d752
push dword [ebp - 0x48]
mov byte [ebp - 0x68], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x68]
push 1
call fcn.0040bf20
cmp edi, dword [ebp - 0x5c]
jae 0x40d915
cmp dword [esi + 0x10], edi
jbe 0x40d96c
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 0xf
jbe 0x40d770
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x3d
je 0x40d915
mov ecx, esi
cmp eax, 0xf
jbe 0x40d783
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x2e
je 0x40d915
mov ecx, esi
cmp eax, 0xf
jbe 0x40d796
mov ecx, dword [esi]
mov cl, byte [edi + ecx]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40d7a8
movzx edx, cl
sub edx, 0x41
jmp 0x40d7ea
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40d7b7
movzx edx, cl
sub edx, 0x47
jmp 0x40d7ea
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40d7c6
movzx edx, cl
add edx, 4
jmp 0x40d7ea
cmp cl, 0x2b
je 0x40d7e5
cmp cl, 0x2d
je 0x40d7e5
cmp cl, 0x2f
je 0x40d7de
cmp cl, 0x5f
jne 0x40d976
mov edx, 0x3f
jmp 0x40d7ea
mov edx, 0x3e
mov eax, dword [ebp - 0x54]
mov ecx, edx
shr ecx, 2
shl al, 4
and cl, 0xf
add cl, al
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x4c], cl
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x18]
jae 0x40d82a
mov esi, dword [ebp - 0x54]
inc eax
cmp dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [eax + esi], cl
mov byte [eax + esi + 1], 0
mov esi, dword [ebp - 0x6c]
jmp 0x40d841
push dword [ebp - 0x4c]
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x70]
push 1
call fcn.0040bf20
mov edx, dword [ebp - 0x58]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x5c]
jae 0x40d915
cmp dword [esi + 0x10], eax
jbe 0x40d96c
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x58], esi
jbe 0x40d867
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
lea eax, [edi + 1]
mov ecx, dword [ebp - 0x58]
cmp byte [ecx + eax], 0x3d
mov ecx, dword [esi + 0x14]
je 0x40d915
mov eax, esi
cmp ecx, 0xf
jbe 0x40d880
mov eax, dword [esi]
cmp byte [edi + eax + 1], 0x2e
je 0x40d915
mov eax, esi
cmp ecx, 0xf
jbe 0x40d894
mov eax, dword [esi]
mov al, byte [eax + edi + 1]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x40d8a4
sub al, 0x41
jmp 0x40d8d6
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x40d8b0
sub al, 0x47
jmp 0x40d8d6
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x40d8bc
add al, 4
jmp 0x40d8d6
cmp al, 0x2b
je 0x40d8d4
cmp al, 0x2d
je 0x40d8d4
cmp al, 0x2f
je 0x40d8d0
cmp al, 0x5f
jne 0x40d976
mov al, 0x3f
jmp 0x40d8d6
mov al, 0x3e
mov ecx, dword [ebp - 0x1c]
shl dl, 6
add dl, al
mov byte [ebp - 0x50], dl
cmp ecx, dword [ebp - 0x18]
jae 0x40d901
cmp dword [ebp - 0x18], 0xf
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40d915
push dword [ebp - 0x50]
mov byte [ebp - 0x60], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x60]
push 1
call fcn.0040bf20
add edi, 4
lea eax, [edi - 2]
cmp eax, dword [ebp - 0x5c]
jb 0x40d643
mov edi, dword [ebp - 0x64]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004141fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040b200
call fcn.0041d143
push 0
call fcn.00418e7e
int3