Function at 0x1003ea30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x101165b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], eax
xor edx, edx
mov eax, ebx
div esi
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x38], ecx
lea ecx, [eax + 1]
test edx, edx
jne 0x1003ea79
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, 0xf
sub eax, edx
mov dword [ebp - 0x44], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
imul eax, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x1003ec14
add eax, 0xfffffffc
cmp eax, 0xc
ja 0x1003ec14
add edx, 0xfffffff9
cmp edx, 6
ja 0x1003ebfe
lea edx, [edi + ebx + 0x3a]
push edx
call fcn.10085e5d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x28]
push ebx
push edx
mov edx, dword [ebp + 0x18]
push edi
push ecx
mov ecx, dword [ebp - 0x40]
push edx
push ecx
lea edx, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x3c], eax
call fcn.100014fb
mov edi, dword [ebp - 0x3c]
push esi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.10086490
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
xor edx, edx
div esi
add esp, 0x3c
cmp eax, 1
jbe 0x1003eb37
add edi, esi
dec eax
mov dword [ebp - 0x28], eax
xor eax, eax
test esi, esi
je 0x1003eb22
mov cl, byte [edi + eax]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, esi
jb 0x1003eb16
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 0x38]
add esp, 8
add edi, esi
dec dword [ebp - 0x28]
jne 0x1003eb10
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.10086490
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10085e5d
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x2c]
mov edi, eax
mov eax, dword [ebp + 0x18]
push esi
push eax
push ecx
push edx
push edi
mov dword [ebp - 0x28], edi
call fcn.10001541
mov eax, dword [ebp - 0x48]
add esp, 0x28
test eax, eax
je 0x1003eb95
mov dword [ebp - 0x2c], eax
lea ebx, [ebx]
mov eax, dword [ebp - 0x30]
push eax
push edi
call dword [ebp - 0x38]
add esp, 8
add edi, esi
dec dword [ebp - 0x2c]
jne 0x1003eb80
mov edi, dword [ebp - 0x28]
xor eax, eax
test ebx, ebx
je 0x1003ebae
lea ecx, [esi + edi]
mov edi, edi
mov dl, byte [ecx + eax]
mov esi, dword [ebp - 0x34]
xor byte [esi + eax], dl
inc eax
cmp eax, ebx
jb 0x1003eba0
mov edx, dword [ebp + 0x10]
xor eax, eax
test edx, edx
je 0x1003ebd9
mov esi, edi
lea ecx, [ebp - 0x24]
sub esi, ecx
mov ecx, dword [ebp - 0x34]
lea edi, [ebx + ecx]
lea ecx, [ebp + eax - 0x24]
mov bl, byte [esi + ecx]
xor bl, byte [ecx]
inc eax
mov byte [edi + eax - 1], bl
cmp eax, edx
jb 0x1003ebc4
mov edi, dword [ebp - 0x28]
push edi
call fcn.10085a2f
mov edx, dword [ebp - 0x3c]
push edx
call fcn.10085a2f
add esp, 8
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
pop edi
pop esi
mov eax, 0xfffffc14
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffc15
pop ebx
call fcn.1008600b
mov esp, ebp
pop ebp
ret