Function at 0x100013d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x28c35b9b]
and ebx, dword [ebp + 0x28]
push edi
mov dword [ebp - 4], ebx
cmp ax, word [ebx]
je 0x10001404
lea ecx, [esi + esi + 0x5187b736]
add ebx, ecx
cmp ax, word [ebx]
jne 0x100013fa
mov dword [ebp - 4], ebx
mov eax, dword [0x1000ac20]
mov ecx, dword [ebx + esi + 0x28c45bd7]
imul eax, esi
lea ecx, [ecx + eax*4 + 0x4f91a304]
mov eax, dword [0x100066b8]
sub eax, esi
cdq
mov edi, 0x4d2ed16
idiv edi
mov ecx, dword [ecx + ebx]
lea eax, [ecx + eax*4]
add eax, ebx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add ecx, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 8]
add ecx, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x10], ecx
test edx, edx
je 0x100016c9
mov edi, dword [ebp + 0x14]
xor eax, eax
cmp dword [0x1000e190], eax
sete al
xor edx, edx
cmp dword [0x1000e198], edx
sete dl
or eax, edx
je 0x100016c9
mov edx, dword [0x10009180]
mov eax, dword [ebp - 8]
imul edx, esi
mov eax, dword [eax]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, 0x1d08bfdb
sub eax, edx
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov al, byte [edx]
test al, al
je 0x100014c9
movsx eax, al
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x28c45ba5]
shl eax, cl
lea ecx, [esi + 0x28c45ba1]
inc edx
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
shr eax, cl
xor dword [ebp + 0xc], eax
mov al, byte [edx]
test al, al
jne 0x1000149d
mov ecx, dword [ebp + 0x10]
lea eax, [edi - 0x231d6644]
cmp dword [ebp + 0xc], eax
jne 0x100015bf
movzx eax, word [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov ecx, edi
and ecx, 0x80000001
mov dword [ebp - 0x10], eax
jns 0x100014f5
dec ecx
or ecx, 0xfffffffe
inc ecx
movzx ecx, word [ecx + eax + 1]
mov eax, dword [0x1000d704]
cdq
idiv dword [ebp + 8]
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp + 0xc], ecx
add edx, 0x14cc93dd
cmp ecx, edx
sete bl
sub eax, dword [0x1000af6c]
mov ecx, 0x27df11a
cdq
idiv ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp ecx, eax
sete dl
lea eax, [esi + 0x28c45cd9]
add ebx, edx
xor edx, edx
cmp ecx, eax
sete dl
lea eax, [esi + 0x28c45bfd]
add ebx, edx
xor edx, edx
cmp ecx, eax
sete dl
lea eax, [esi + 0x28c45bcc]
add ebx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp + 0x20]
sete dl
add eax, 0x401eb3a
add ebx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp + 0x20]
sete dl
add eax, 0x401ea2c
add ebx, edx
xor edx, edx
cmp ecx, eax
sete dl
lea eax, [edi - 0x4a42372]
add ebx, edx
xor edx, edx
cmp ecx, eax
sete dl
lea eax, [edi - 0x4a423b5]
add ebx, edx
xor edx, edx
cmp ecx, eax
sete dl
lea eax, [edi - 0x4a4229f]
add ebx, edx
xor edx, edx
cmp ecx, eax
sete dl
add ebx, edx
je 0x100016d1
mov eax, dword [ebp - 0x10]
mov dword [0x1000e198], eax
jmp 0x100016ac
mov eax, edi
cdq
idiv dword [0x100093c0]
add eax, 0x4477cc31
cmp dword [ebp + 0xc], eax
jne 0x100016b2
movzx eax, word [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov ecx, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x24]
add eax, dword [0x1000c0f8]
mov ebx, 0x910b
cdq
idiv ebx
xor edx, edx
cmp ecx, eax
sete dl
mov eax, dword [0x10007234]
sub eax, dword [ebp + 0x1c]
xor ebx, ebx
add eax, 0x39a47ea6
cmp ecx, eax
sete bl
mov eax, dword [0x1000b994]
sub eax, dword [ebp + 8]
sub eax, 0x6ef99197
add edx, ebx
xor ebx, ebx
cmp ecx, eax
sete bl
mov eax, dword [0x1000db04]
add edx, ebx
mov ebx, dword [ebp + 0x18]
lea eax, [eax + ebx + 0x5dea9c5b]
xor ebx, ebx
cmp ecx, eax
sete bl
mov eax, dword [ebp + 0x18]
add eax, 0x4583d1e9
add edx, ebx
xor ebx, ebx
cmp ecx, eax
sete bl
lea eax, [edi - 0x4a3d630]
add edx, ebx
xor ebx, ebx
cmp ecx, eax
sete bl
lea eax, [esi + 0x28c52e53]
add edx, ebx
xor ebx, ebx
cmp ecx, eax
mov eax, dword [ebp + 0x1c]
sete bl
add eax, 0x56f8976a
add edx, ebx
xor ebx, ebx
cmp ecx, eax
mov eax, dword [ebp + 0x20]
sete bl
add eax, 0x402b2b0
add edx, ebx
xor ebx, ebx
cmp ecx, eax
sete bl
lea eax, [edi - 0x4a39a30]
add edx, ebx
xor ebx, ebx
cmp ecx, eax
sete bl
add edx, ebx
je 0x100016d1
mov eax, dword [ebp + 0xc]
mov dword [0x1000e190], eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
dec dword [ebp + 0x28]
add dword [ebp - 8], 4
add ecx, 2
cmp dword [ebp + 0x28], 0
mov dword [ebp + 0x10], ecx
jne 0x10001459
mov eax, dword [ebp + 0x28]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x100016cc