Function at 0x70e34129
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.70d147bc
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov bl, cl
push edi
xor esi, esi
test bl, 8
mov edi, edx
mov dword [ebp - 0xc], edi
mov byte [ebp - 4], bl
mov dword [ebp - 0x14], esi
je 0x70e3417c
xor ecx, ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
jbe 0x70e34175
mov eax, dword [ebp + 8]
movsx eax, byte [eax + ecx]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 8], eax
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x70e3415b
cmp dword [ebp - 8], esi
jne 0x70e3417c
xor al, al
jmp 0x70e34266
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x70e341f7
test bl, 0x10
jne 0x70e34195
test bl, bl
jns 0x70e341f7
cmp edi, esi
jne 0x70e3426d
xor ecx, ecx
test eax, eax
jbe 0x70e341b4
cmp ecx, dword [ebp + 0xc]
jae 0x70e341e0
mov eax, dword [ebp + 8]
movsx eax, byte [eax + ecx]
cdq
xor eax, edx
sub eax, edx
add esi, eax
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x70e3419b
cmp ecx, dword [ebp + 0xc]
jae 0x70e341e0
mov ebx, dword [ebp + 8]
mov edi, ecx
sub edi, dword [ebp + 0x10]
add edi, ebx
cmp esi, dword [ebp - 8]
jae 0x70e341fa
mov al, byte [ebx + ecx]
sub al, byte [edi]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add esi, eax
inc ecx
inc edi
cmp ecx, dword [ebp + 0xc]
jb 0x70e341c3
jmp 0x70e341e3
mov ebx, dword [ebp + 8]
cmp esi, dword [ebp - 8]
jae 0x70e341fa
xor eax, eax
inc eax
test esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], eax
jne 0x70e341fa
jmp 0x70e34266
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
xor esi, esi
cmp edi, esi
jne 0x70e34270
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
jbe 0x70e34263
test byte [ebp - 4], 0x40
je 0x70e34263
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x70e3422d
cmp ecx, edi
jae 0x70e34257
movsx eax, byte [ecx + ebx]
cdq
xor eax, edx
sub eax, edx
add esi, eax
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x70e34218
cmp ecx, edi
jae 0x70e34257
mov edi, ecx
sub edi, dword [ebp + 0x10]
add edi, ebx
cmp esi, dword [ebp - 8]
jae 0x70e34263
mov al, byte [edi]
mov dl, byte [ecx + ebx]
shr al, 1
sub dl, al
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add esi, eax
inc ecx
inc edi
cmp ecx, dword [ebp + 0xc]
jb 0x70e34238
cmp esi, dword [ebp - 8]
jae 0x70e34263
mov dword [ebp - 0x14], 3
mov al, byte [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ebx, dword [ebp + 8]
test byte [ebp - 4], 0x20
jne 0x70e34284
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
ja 0x70e342c4
test byte [ebp - 4], 0x80
je 0x70e342c4
and dword [ebp + 8], 0
cmp dword [ebp + 0xc], 0
jbe 0x70e342b2
mov ecx, ebx
sub edi, ebx
cmp esi, dword [ebp - 8]
jae 0x70e342c4
mov al, byte [ecx]
sub al, byte [edi + ecx]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add esi, eax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
inc ecx
cmp eax, dword [ebp + 0xc]
jb 0x70e34292
cmp esi, dword [ebp - 8]
jae 0x70e342c4
test esi, esi
push 2
pop eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], eax
je 0x70e34266
test byte [ebp - 4], 0x40
je 0x70e34360
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp + 8], edi
jbe 0x70e342ff
mov esi, dword [ebp - 0xc]
sub esi, ebx
cmp edi, dword [ebp + 0xc]
jae 0x70e34343
lea eax, [ebx + edi]
mov cl, byte [esi + eax]
mov al, byte [eax]
shr cl, 1
sub al, cl
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x70e342dd
cmp edi, dword [ebp + 0xc]
jae 0x70e34343
mov eax, dword [ebp - 0xc]
mov esi, edi
sub esi, dword [ebp + 0x10]
lea ecx, [ebx + edi]
add esi, ebx
sub eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jae 0x70e34360
movzx edx, byte [esi]
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx]
add eax, edx
mov dl, byte [ecx]
sar eax, 1
sub dl, al
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 8], eax
inc edi
inc esi
inc ecx
cmp edi, dword [ebp + 0xc]
jb 0x70e34316
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jae 0x70e34360
test eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 3
jne 0x70e34360
mov al, 3
jmp 0x70e34266
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ecx
jbe 0x70e34263
test byte [ebp - 4], 0x80
je 0x70e34263
mov eax, dword [ebp + 0xc]
shl eax, 4
cmp dword [ebp - 8], eax
jbe 0x70e34263
mov edx, dword [ebp - 0xc]
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [ebp - 0x1018]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
push esi
lea ecx, [ebp - 0x1018]
call fcn.70e34034
sub dword [ebp + 0xc], esi
mov eax, dword [ebp + 0xc]
add dword [ebp - 0xc], esi
add ebx, esi
shl eax, 2
xor ecx, ecx
test esi, esi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], eax
jbe 0x70e343db
movsx eax, byte [ebp + ecx - 0x1018]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x10], eax
inc ecx
cmp ecx, esi
jb 0x70e343c6
cmp dword [ebp + 0xc], 0
jbe 0x70e3446d
mov dword [ebp - 0x18], 0x1000
sub dword [ebp - 0x18], esi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp ebx, eax
jbe 0x70e343fb
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea ecx, [ebx + eax]
mov edx, ecx
shr ecx, 2
sub esi, eax
lea edi, [ebp - 0x1018]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp + eax - 0x1018]
call fcn.70e34099
xor ecx, ecx
test ebx, ebx
jbe 0x70e34454
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x70e34454
mov eax, dword [ebp + 0x10]
lea eax, [ebp + eax - 0x1018]
movsx eax, byte [eax + ecx]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x10], eax
inc ecx
cmp ecx, ebx
jb 0x70e34431
sub dword [ebp + 0xc], ebx
je 0x70e3446d
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jae 0x70e34263
add dword [ebp + 8], ebx
add dword [ebp - 0xc], ebx
jmp 0x70e343ef
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x70e34263
mov dword [ebp - 0x14], 4
jmp 0x70e34263