Function at 0x1005e660
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
sub edx, eax
je 0x1005e74e
cmp edx, 2
jb 0x1005e74e
cmp byte [eax], 0x64
jne 0x1005e74e
movzx edx, byte [eax + 1]
cmp edx, 0x58
je 0x1005e805
cmp edx, 0x78
je 0x1005e75a
cmp edx, 0x69
jne 0x1005e74e
add eax, 2
mov dword [ecx], eax
mov ebx, ecx
call fcn.1005a5a0
xor esi, esi
test eax, eax
je 0x1005e8bd
mov edi, eax
mov ecx, ebx
call fcn.1005e660
test eax, eax
je 0x1005e8bd
mov ecx, ebx
mov ebp, dword [ebx + 0x1198]
mov ecx, dword [ebp + 4]
lea edx, [ecx - 0xfd8]
cmp edx, 0xfffff007
ja 0x1005e70f
mov esi, eax
push 0x1000
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x1005e8c7
mov dword [eax], ebp
mov dword [eax + 4], 0
mov dword [ebx + 0x1198], eax
xor ecx, ecx
mov ebp, eax
mov eax, esi
lea edx, [ecx + 0x20]
mov dword [ebp + 4], edx
lea esi, [ecx + ebp]
add esi, 8
mov byte [ebp + ecx + 0xc], 0x51
and byte [ebp + ecx + 0x10], 0xc0
movzx edx, byte [ebp + ecx + 0x14]
and dl, 0xc0
or dl, 0x15
mov byte [ebp + ecx + 0x14], dl
mov dword [ebp + ecx + 8], 0x1007b234
mov dword [ebp + ecx + 0x18], edi
mov dword [ebp + ecx + 0x1c], eax
mov byte [ebp + ecx + 0x20], 0
jmp 0x1005e8bd
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1005c0b0
add eax, 2
mov dword [ecx], eax
mov ebx, ecx
call fcn.1005c0b0
xor esi, esi
test eax, eax
je 0x1005e8bd
mov edi, eax
mov ecx, ebx
call fcn.1005e660
test eax, eax
je 0x1005e8bd
mov ecx, ebx
mov ebp, dword [ebx + 0x1198]
mov ecx, dword [ebp + 4]
lea edx, [ecx - 0xfd8]
cmp edx, 0xfffff007
ja 0x1005e7c6
mov esi, eax
push 0x1000
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x1005e8c7
mov dword [eax], ebp
mov dword [eax + 4], 0
mov dword [ebx + 0x1198], eax
xor ecx, ecx
mov ebp, eax
mov eax, esi
lea edx, [ecx + 0x20]
mov dword [ebp + 4], edx
lea esi, [ecx + ebp]
add esi, 8
mov byte [ebp + ecx + 0xc], 0x51
and byte [ebp + ecx + 0x10], 0xc0
movzx edx, byte [ebp + ecx + 0x14]
and dl, 0xc0
or dl, 0x15
mov byte [ebp + ecx + 0x14], dl
mov dword [ebp + ecx + 8], 0x1007b234
mov dword [ebp + ecx + 0x18], edi
mov dword [ebp + ecx + 0x1c], eax
mov byte [ebp + ecx + 0x20], 1
jmp 0x1005e8bd
add eax, 2
mov dword [ecx], eax
mov ebp, ecx
call fcn.1005c0b0
xor esi, esi
test eax, eax
je 0x1005e8bd
mov edi, eax
mov ecx, ebp
call fcn.1005c0b0
test eax, eax
je 0x1005e8bd
mov ebx, eax
mov ecx, ebp
call fcn.1005e660
test eax, eax
je 0x1005e8bd
mov dword [esp], ebx
mov ecx, ebp
mov ebx, dword [ebp + 0x1198]
mov ecx, dword [ebx + 4]
lea edx, [ecx - 0xfd8]
cmp edx, 0xfffff007
ja 0x1005e881
mov esi, eax
push 0x1000
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x1005e8c7
mov dword [eax], ebx
mov dword [eax + 4], 0
mov dword [ebp + 0x1198], eax
xor ecx, ecx
mov ebx, eax
mov eax, esi
lea edx, [ecx + 0x20]
mov dword [ebx + 4], edx
lea esi, [ebx + ecx]
add esi, 8
mov byte [ebx + ecx + 0xc], 0x52
and byte [ebx + ecx + 0x10], 0xc0
movzx edx, byte [ebx + ecx + 0x14]
and dl, 0xc0
or dl, 0x15
mov byte [ebx + ecx + 0x14], dl
mov dword [ebx + ecx + 8], 0x1007b29c
mov dword [ebx + ecx + 0x18], edi
mov edx, dword [esp]
mov dword [ebx + ecx + 0x1c], edx
mov dword [ebx + ecx + 0x20], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1001bf90
int3