Function at 0x4058cc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4059fd
mov dword [ebp - 0x10], 0
jmp 0x4058fb
add dword [ebp - 4], 1
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jae 0x405912
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
je 0x4058f3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
je 0x405a0b
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 4]
cmp eax, 1
jbe 0x40594e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xd
jne 0x40594e
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x14]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x4059f5
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x4059f8
cmp dword [ebp - 0x10], 0
je 0x405971
mov eax, 0xffffffd4
jmp 0x405b81
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x3d
jne 0x405994
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 2
jbe 0x405994
mov eax, 0xffffffd4
jmp 0x405b81
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
test al, al
js 0x4059bc
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + 0x4447e0]
cmp al, 0x7f
jne 0x4059c6
mov eax, 0xffffffd4
jmp 0x405b81
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + 0x4447e0]
cmp al, 0x3f
ja 0x4059ef
cmp dword [ebp - 0xc], 0
je 0x4059ef
mov eax, 0xffffffd4
jmp 0x405b81
add dword [ebp - 8], 1
jmp 0x4059f9
nop
jmp 0x4059f9
nop
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jb 0x4058ea
jmp 0x405a0c
nop
cmp dword [ebp - 8], 0
jne 0x405a25
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0
jmp 0x405b81
mov eax, dword [ebp - 8]
shr eax, 3
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
add eax, eax
mov ecx, eax
mov eax, dword [ebp - 8]
and eax, 7
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
add eax, eax
add eax, 7
shr eax, 3
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x405a66
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jae 0x405a78
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, 0xffffffd6
jmp 0x405b81
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x405b65
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
cmp al, 0xd
je 0x405b5c
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
cmp al, 0xa
je 0x405b5c
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
cmp al, 0x20
je 0x405b5c
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + 0x4447e0]
cmp al, 0x40
sete al
movzx eax, al
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
shl eax, 6
mov edx, eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + 0x4447e0]
movzx eax, al
and eax, 0x3f
or eax, edx
mov dword [ebp - 0x10], eax
add dword [ebp - 8], 1
cmp dword [ebp - 8], 4
jne 0x405b5d
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x405b2b
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov ecx, eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov dword [ebp - 0x14], edx
mov edx, ecx
mov byte [eax], dl
cmp dword [ebp - 0xc], 1
jbe 0x405b46
mov eax, dword [ebp - 0x10]
shr eax, 8
mov ecx, eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov dword [ebp - 0x14], edx
mov edx, ecx
mov byte [eax], dl
cmp dword [ebp - 0xc], 2
jbe 0x405b5d
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov byte [eax], dl
jmp 0x405b5d
nop
sub dword [ebp - 4], 1
add dword [ebp + 0x14], 1
cmp dword [ebp - 4], 0
jne 0x405a97
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, 0
leave
ret