Function at 0x10042570
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x10042594
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x100426b2
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
jae 0x100425d1
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x20
jne 0x100425d1
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x100425a7
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jne 0x100425de
jmp 0x100426b2
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x10042608
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0xd
jne 0x10042608
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x10042608
jmp 0x1004258b
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0xa
jne 0x1004261b
jmp 0x1004258b
cmp dword [ebp - 0x10], 0
je 0x1004262b
mov eax, 0xffffffd4
jmp 0x1004280b
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x3d
jne 0x10042652
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 2
jbe 0x10042652
mov eax, 0xffffffd4
jmp 0x1004280b
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x7f
jg 0x10042675
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x100e6590]
cmp eax, 0x7f
jne 0x1004267f
mov eax, 0xffffffd4
jmp 0x1004280b
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x100e6590]
cmp eax, 0x40
jge 0x100426a4
cmp dword [ebp - 0xc], 0
je 0x100426a4
mov eax, 0xffffffd4
jmp 0x1004280b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x1004258b
cmp dword [ebp - 8], 0
jne 0x100426bf
xor eax, eax
jmp 0x1004280b
imul edx, dword [ebp - 8], 6
add edx, 7
shr edx, 3
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x100426e5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, dword [ebp - 8]
jae 0x100426f7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, 0xffffffd6
jmp 0x1004280b
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x10042725
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp - 4], 0
jbe 0x100427fe
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
cmp ecx, 0xd
je 0x10042750
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
cmp eax, 0xa
je 0x10042750
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx]
cmp edx, 0x20
jne 0x10042752
jmp 0x10042713
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x100e6590]
cmp edx, 0x40
jne 0x1004276d
mov dword [ebp - 0x18], 1
jmp 0x10042774
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 6
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
movzx edx, byte [eax + 0x100e6590]
and edx, 0x3f
or ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jne 0x100427f9
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jbe 0x100427c8
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 1
jbe 0x100427e2
mov ecx, dword [ebp - 0x10]
shr ecx, 8
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 2
jbe 0x100427f9
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ecx], dl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10042713
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret