Function at 0x7a1c4079
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.7a0dfae3
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 0x7a1c40cc
xor ecx, ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
jbe 0x7a1c40c5
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 0x7a1c40ab
cmp dword [ebp - 8], esi
jne 0x7a1c40cc
xor al, al
jmp 0x7a1c41b6
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x7a1c4147
test bl, 0x10
jne 0x7a1c40e5
test bl, bl
jns 0x7a1c4147
cmp edi, esi
jne 0x7a1c41bd
xor ecx, ecx
test eax, eax
jbe 0x7a1c4104
cmp ecx, dword [ebp + 0xc]
jae 0x7a1c4130
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 0x7a1c40eb
cmp ecx, dword [ebp + 0xc]
jae 0x7a1c4130
mov ebx, dword [ebp + 8]
mov edi, ecx
sub edi, dword [ebp + 0x10]
add edi, ebx
cmp esi, dword [ebp - 8]
jae 0x7a1c414a
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 0x7a1c4113
jmp 0x7a1c4133
mov ebx, dword [ebp + 8]
cmp esi, dword [ebp - 8]
jae 0x7a1c414a
xor eax, eax
inc eax
test esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], eax
jne 0x7a1c414a
jmp 0x7a1c41b6
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
xor esi, esi
cmp edi, esi
jne 0x7a1c41c0
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
jbe 0x7a1c41b3
test byte [ebp - 4], 0x40
je 0x7a1c41b3
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x7a1c417d
cmp ecx, edi
jae 0x7a1c41a7
movsx eax, byte [ecx + ebx]
cdq
xor eax, edx
sub eax, edx
add esi, eax
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x7a1c4168
cmp ecx, edi
jae 0x7a1c41a7
mov edi, ecx
sub edi, dword [ebp + 0x10]
add edi, ebx
cmp esi, dword [ebp - 8]
jae 0x7a1c41b3
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 0x7a1c4188
cmp esi, dword [ebp - 8]
jae 0x7a1c41b3
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 0x7a1c41d4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
ja 0x7a1c4214
test byte [ebp - 4], 0x80
je 0x7a1c4214
and dword [ebp + 8], 0
cmp dword [ebp + 0xc], 0
jbe 0x7a1c4202
mov ecx, ebx
sub edi, ebx
cmp esi, dword [ebp - 8]
jae 0x7a1c4214
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 0x7a1c41e2
cmp esi, dword [ebp - 8]
jae 0x7a1c4214
test esi, esi
push 2
pop eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], eax
je 0x7a1c41b6
test byte [ebp - 4], 0x40
je 0x7a1c42b0
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp + 8], edi
jbe 0x7a1c424f
mov esi, dword [ebp - 0xc]
sub esi, ebx
cmp edi, dword [ebp + 0xc]
jae 0x7a1c4293
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 0x7a1c422d
cmp edi, dword [ebp + 0xc]
jae 0x7a1c4293
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 0x7a1c42b0
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 0x7a1c4266
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jae 0x7a1c42b0
test eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 3
jne 0x7a1c42b0
mov al, 3
jmp 0x7a1c41b6
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ecx
jbe 0x7a1c41b3
test byte [ebp - 4], 0x80
je 0x7a1c41b3
mov eax, dword [ebp + 0xc]
shl eax, 4
cmp dword [ebp - 8], eax
jbe 0x7a1c41b3
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.7a1c3f84
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 0x7a1c432b
movsx eax, byte [ebp + ecx - 0x1018]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x10], eax
inc ecx
cmp ecx, esi
jb 0x7a1c4316
cmp dword [ebp + 0xc], 0
jbe 0x7a1c43bd
mov dword [ebp - 0x18], 0x1000
sub dword [ebp - 0x18], esi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp ebx, eax
jbe 0x7a1c434b
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.7a1c3fe9
xor ecx, ecx
test ebx, ebx
jbe 0x7a1c43a4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x7a1c43a4
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 0x7a1c4381
sub dword [ebp + 0xc], ebx
je 0x7a1c43bd
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jae 0x7a1c41b3
add dword [ebp + 8], ebx
add dword [ebp - 0xc], ebx
jmp 0x7a1c433f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x7a1c41b3
mov dword [ebp - 0x14], 4
jmp 0x7a1c41b3