Function at 0x70a050
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov dword [eax], 0
test ebx, ebx
jle 0x70a09f
mov esi, dword [esp + 0x30]
mov edi, dword [esi + 4]
cmp edi, 0x51
jge 0x70a429
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
mov ebp, ebx
sub ebp, ecx
jge 0x70a0a6
add eax, esi
add eax, 8
push ebx
push dword [esp + 0x40]
push eax
call fcn.00786d70
add esp, 0xc
add dword [esi], ebx
jmp 0x70a40e
xor eax, eax
jmp 0x70a413
test eax, eax
je 0x70a195
add eax, esi
add eax, 8
mov dword [esp + 8], ecx
push ecx
mov edi, dword [esp + 0x40]
push edi
push eax
call fcn.00786d70
add esp, 0xc
mov edx, dword [esi + 4]
test byte [esi + 0x5c], 2
mov eax, 0x9fac0a
mov ecx, 0x9fabc9
cmove ecx, eax
test edx, edx
jle 0x70a1b7
mov eax, edx
mov dword [esp + 4], ebp
lea edx, [esi + 9]
mov dword [esp], 4
mov dword [esp + 0x18], ecx
nop word cs:[eax + eax]
movzx esi, byte [edx - 1]
mov ebx, esi
shl ebx, 0x10
cmp eax, 2
mov dword [esp + 0xc], eax
jbe 0x70a1c1
movzx eax, byte [edx]
shl eax, 8
movzx ebp, byte [edx + 1]
lea edi, [eax + ebp]
or eax, ebx
shr esi, 2
movzx ebx, byte [ecx + esi]
mov esi, dword [esp]
mov ecx, dword [esp + 0x34]
mov byte [ecx + esi - 4], bl
mov ecx, dword [esp + 0x18]
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [ecx + eax]
mov ebx, dword [esp + 0x34]
mov byte [ebx + esi - 3], al
shr edi, 6
and edi, 0x3f
movzx eax, byte [ecx + edi]
mov byte [ebx + esi - 2], al
and ebp, 0x3f
movzx eax, byte [ecx + ebp]
mov byte [ebx + esi - 1], al
mov eax, dword [esp + 0xc]
add esi, 4
mov dword [esp], esi
add edx, 3
add eax, 0xfffffffd
jne 0x70a100
mov ecx, dword [esp]
lea eax, [ecx + ebx]
add eax, 0xfffffffc
add ecx, 0xfffffffc
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 4]
jmp 0x70a221
mov edx, esi
mov dword [esp], 0
mov ebp, ebx
mov eax, edi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
cmp ebp, eax
jge 0x70a24e
jmp 0x70a3e7
xor ecx, ecx
mov ebx, dword [esp + 0x34]
mov eax, ebx
jmp 0x70a221
jne 0x70a1cb
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 4]
mov eax, ebx
shr eax, 0x12
movzx eax, byte [ecx + eax]
mov edx, dword [esp]
mov edi, dword [esp + 0x34]
mov byte [edi + edx - 4], al
mov eax, ebx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [ecx + eax]
mov byte [edi + edx - 3], al
mov dl, 0x3d
cmp dword [esp + 0xc], 1
je 0x70a20a
shr ebx, 6
and ebx, 0x3f
movzx edx, byte [ecx + ebx]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x34]
lea eax, [ebx + ecx]
mov byte [ebx + ecx - 2], dl
mov byte [ebx + ecx - 1], 0x3d
mov edi, dword [esp + 0x3c]
mov byte [eax], 0
mov dword [esi], 0
add ebx, ecx
test byte [esi + 0x5c], 1
jne 0x70a237
mov byte [ebx], 0xa
inc ebx
inc ecx
mov dword [esp], ecx
add edi, dword [esp + 8]
mov byte [ebx], 0
mov edx, esi
mov eax, dword [esi + 4]
cmp ebp, eax
jl 0x70a3e7
cmp dword [esp], 0
js 0x70a3e7
mov ecx, eax
nop word [eax + eax]
mov esi, edx
test byte [edx + 0x5c], 2
mov edx, 0x9fabc9
mov eax, 0x9fac0a
cmove edx, eax
test ecx, ecx
jle 0x70a340
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp + 0x10], edi
lea ebx, [edi + 1]
mov edx, 4
mov esi, ecx
nop word cs:[eax + eax]
movzx ebp, byte [ebx - 1]
mov eax, ebp
shl eax, 0x10
cmp esi, 2
mov dword [esp + 0xc], esi
jbe 0x70a350
movzx ecx, byte [ebx]
shl ecx, 8
movzx esi, byte [ebx + 1]
mov dword [esp + 0x18], esi
add esi, ecx
or ecx, eax
shr ebp, 2
mov edi, edx
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + ebp]
mov ebp, dword [esp + 8]
mov byte [ebp + edi - 4], al
shr ecx, 0xc
and ecx, 0x3f
movzx eax, byte [edx + ecx]
mov byte [ebp + edi - 3], al
shr esi, 6
and esi, 0x3f
movzx eax, byte [edx + esi]
mov byte [ebp + edi - 2], al
mov eax, dword [esp + 0x18]
and eax, 0x3f
movzx eax, byte [edx + eax]
mov edx, edi
mov esi, dword [esp + 0xc]
mov byte [ebp + edi - 1], al
add edx, 4
add ebx, 3
add esi, 0xfffffffd
jne 0x70a2a0
mov ebx, dword [esp + 8]
lea eax, [edx + ebx]
add eax, 0xfffffffc
add edx, 0xfffffffc
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 4]
jmp 0x70a344
xor edx, edx
mov eax, ebx
mov ecx, dword [esp]
jmp 0x70a3b3
jne 0x70a35a
movzx ecx, byte [ebx]
shl ecx, 8
or eax, ecx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x12
mov ebp, dword [esp + 0x14]
movzx ecx, byte [ebp + ecx]
mov ebx, dword [esp + 8]
mov byte [ebx + edx - 4], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ebp + ecx]
mov byte [ebx + edx - 3], cl
mov cl, 0x3d
cmp dword [esp + 0xc], 1
je 0x70a3a0
shr eax, 6
and eax, 0x3f
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + eax]
lea eax, [ebx + edx]
mov byte [ebx + edx - 2], cl
mov byte [ebx + edx - 1], 0x3d
mov ecx, dword [esp]
mov ebp, dword [esp + 4]
mov byte [eax], 0
mov eax, dword [esi + 4]
add ebx, edx
add ecx, edx
test byte [esi + 0x5c], 1
jne 0x70a3c8
mov byte [ebx], 0xa
inc ebx
inc ecx
mov dword [esp], ecx
add edi, eax
sub ebp, eax
mov byte [ebx], 0
mov edx, esi
mov eax, dword [esi + 4]
cmp ebp, eax
jl 0x70a3e7
mov ecx, eax
cmp dword [esp], 0
jns 0x70a260
mov ecx, dword [esp]
test ecx, ecx
js 0x70a41b
test ebp, ebp
mov esi, edx
je 0x70a406
lea eax, [esi + 8]
push ebp
push edi
push eax
mov edi, ecx
call fcn.00786d70
mov ecx, edi
add esp, 0xc
mov dword [esi], ebp
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, 1
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x38]
mov dword [eax], 0
xor eax, eax
jmp 0x70a413
push 0xab
push 0x9faa79
push 0x9faa8d
call fcn.005d8b60
nop dword [eax]