Function at 0x1005b630
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x124
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x14], ecx
lea ecx, [ebx*4 + 8]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
push edi
mov edi, dword [esp + 0x140]
shr ecx, 1
test esi, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
je 0x1005b68f
lea eax, [ecx + ecx]
xor edx, edx
div esi
lea ecx, [ecx + eax + 3]
jmp 0x1005b692
add ecx, 3
push ecx
mov ecx, edi
call fcn.10010960
test al, al
jne 0x1005b6a5
xor al, al
jmp 0x1005b94a
test ebx, ebx
je 0x1005b948
test ebp, ebp
je 0x1005b948
mov eax, 0xaaaaaaab
mul dword [esp + 0x13c]
xor ecx, ecx
xor esi, esi
xor ebx, ebx
shr edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
je 0x1005b804
jmp 0x1005b6e4
mov ebp, dword [esp + 0x14]
movzx eax, byte [esi + ebp]
movzx edi, byte [esi + ebp + 1]
mov edx, eax
sar edx, 2
and edx, 0x3f
movzx edx, byte [edx + 0x101e86a0]
mov byte [esp + ecx + 0x24], dl
add esi, 1
movzx ebp, byte [esi + ebp + 1]
mov edx, edi
sar edx, 4
and edx, 0xf
and eax, 3
shl eax, 4
or edx, eax
movzx eax, byte [edx + 0x101e86a0]
add esi, 1
and edi, 0xf
mov edx, ebp
sar edx, 6
add ecx, 1
mov byte [esp + ecx + 0x24], al
add edi, edi
and edx, 3
add edi, edi
or edx, edi
movzx eax, byte [edx + 0x101e86a0]
add ecx, 1
and ebp, 0x3f
movzx edx, byte [ebp + 0x101e86a0]
mov byte [esp + ecx + 0x24], al
mov eax, dword [esp + 0x18]
add ecx, 1
mov byte [esp + ecx + 0x24], dl
add ebx, 4
add esi, 1
add ecx, 1
cmp ebx, dword [eax + 4]
jb 0x1005b7a5
mov byte [esp + ecx + 0x24], 0x26
mov byte [esp + ecx + 0x25], 0x23
add ecx, 1
add ecx, 1
mov byte [esp + ecx + 0x24], 0x78
add ecx, 1
mov byte [esp + ecx + 0x24], 0x44
add ecx, 1
mov byte [esp + ecx + 0x24], 0x3b
add ecx, 1
mov byte [esp + ecx + 0x24], 0xd
add ecx, 1
mov byte [esp + ecx + 0x24], 0xa
add ecx, 1
xor ebx, ebx
cmp ecx, 0x100
jl 0x1005b7c6
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10010df0
test al, al
je 0x1005b69e
xor ecx, ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add eax, 1
cmp eax, edx
mov dword [esp + 0x20], eax
jb 0x1005b6e0
test ecx, ecx
je 0x1005b7fc
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
call fcn.10010df0
test al, al
je 0x1005b69e
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea eax, [edx + edx*2]
mov ecx, eax
mov eax, dword [esp + 0x13c]
sub eax, ecx
sub eax, 0
mov bl, 1
je 0x1005b8ec
sub eax, 1
je 0x1005b892
sub eax, 1
jne 0x1005b906
movzx eax, byte [esi + ebp]
movzx esi, byte [esi + ebp + 1]
mov dword [esp + 0x18], eax
sar eax, 2
and eax, 0x3f
movzx edx, byte [eax + 0x101e86a0]
push edx
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
mov eax, dword [esp + 0x18]
mov ecx, esi
sar ecx, 4
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
movzx edx, byte [ecx + 0x101e86a0]
push edx
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
and esi, 0xf
movzx eax, byte [esi*4 + 0x101e86a0]
push eax
jmp 0x1005b8d0
movzx esi, byte [esi + ebp]
mov ecx, esi
sar ecx, 2
and ecx, 0x3f
movzx edx, byte [ecx + 0x101e86a0]
push edx
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
and esi, 3
shl esi, 4
movzx eax, byte [esi + 0x101e86a0]
push eax
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
push 0x3d
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
push 0x3d
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
push 0xd
mov ecx, edi
call fcn.100139f0
mov bl, al
test bl, bl
je 0x1005b906
push 0xa
mov ecx, edi
call fcn.100139f0
mov bl, al
push 0x1023d994
mov ecx, edi
call fcn.10010c10
test al, al
je 0x1005b91f
push 2
mov ecx, edi
call fcn.10012ec0
push str.xD__r_n
mov ecx, edi
call fcn.10010c10
test al, al
je 0x1005b944
push 7
mov ecx, edi
call fcn.10012ec0
push 0x1023db2c
mov ecx, edi
call fcn.10010b90
mov al, bl
jmp 0x1005b94a
mov al, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018f87e
add esp, 0x124
ret 0xc