Function at 0x1003ecb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101165b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
mov edx, dword [ebp + 0x2c]
push ebx
mov eax, ecx
sub eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x38], edx
xor edx, edx
mov dword [ebp - 0x34], eax
div esi
push edi
mov edi, 0xf
sub edi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], ecx
test edx, edx
je 0x1003ed09
inc eax
lea ebx, [eax + 1]
mov dword [ebp - 0x2c], ebx
imul ebx, esi
cmp ecx, dword [ebp + 0x10]
jbe 0x1003eeb3
push ebx
call fcn.10085e5d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x28]
push edi
push esi
push ecx
push edx
push ebx
push eax
mov dword [ebp - 0x30], eax
call fcn.10001541
mov ebx, dword [ebp - 0x2c]
add esp, 0x1c
test ebx, ebx
je 0x1003ed52
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
push eax
push edi
call dword [ebp - 0x38]
add esp, 8
add edi, esi
dec ebx
jne 0x1003ed42
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.10085e5d
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
test ebx, ebx
je 0x1003ed8d
mov ecx, dword [ebp - 0x3c]
sub ecx, edi
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
add edx, esi
mov dl, byte [edx + eax]
lea ecx, [edi + eax]
xor dl, byte [ebx + ecx]
inc eax
mov byte [ecx], dl
cmp eax, dword [ebp - 0x34]
jb 0x1003ed71
mov ebx, dword [ebp - 0x34]
xor eax, eax
cmp dword [ebp + 0x10], eax
jbe 0x1003edb9
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
add ecx, ebx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x24]
sub edx, ecx
mov ebx, dword [ebp - 0x2c]
mov bl, byte [ebx + eax]
lea ecx, [ebp + eax - 0x24]
xor bl, byte [edx + ecx]
inc eax
mov byte [ecx], bl
cmp eax, dword [ebp + 0x10]
jb 0x1003eda4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
lea ecx, [eax + edx + 0x3a]
push ecx
call fcn.10085e5d
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x40]
mov ebx, eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x18]
push edi
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ecx
lea edx, [ebp - 0x40]
push edx
push ebx
call fcn.100014fb
push esi
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.10086490
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
xor edx, edx
div esi
add esp, 0x3c
cmp eax, 1
jbe 0x1003ee4a
dec eax
lea edi, [esi + ebx]
mov dword [ebp - 0x28], eax
lea ebx, [ebx]
xor eax, eax
test esi, esi
je 0x1003ee32
mov cl, byte [edi + eax]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, esi
jb 0x1003ee26
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 0x38]
add esp, 8
add edi, esi
dec dword [ebp - 0x28]
jne 0x1003ee20
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp + 0x10]
xor eax, eax
test esi, esi
je 0x1003ee62
mov cl, byte [ebp + eax - 0x24]
cmp cl, byte [ebp + eax - 0x14]
jne 0x1003ee9b
inc eax
cmp eax, esi
jb 0x1003ee53
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
push eax
push edi
push ecx
call fcn.10086490
push ebx
call fcn.10085a2f
mov edx, dword [ebp - 0x30]
push edx
call fcn.10085a2f
push edi
call fcn.10085a2f
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x30]
push edx
call fcn.10085a2f
push ebx
call fcn.10085a2f
push edi
call fcn.10085a2f
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffff6
pop ebx
call fcn.1008600b
mov esp, ebp
pop ebp
ret