Function at 0x100f4660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov eax, edx
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
push edi
test eax, eax
je 0x100f47d5
test byte [ebp + 0xc], 8
jne 0x100f47d5
mov edi, dword [ebp + 8]
mov eax, 0xd
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
lea esi, [edi - 1]
test esi, esi
js 0x100f46b9
mov edi, edx
movzx edx, byte [esi + edi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x100f46a2
mov edi, dword [ebp + 8]
xor edx, edx
div dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x100f4729
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x100f4723
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x28]
mov esi, edi
sub esi, 4
jb 0x100f46f1
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100f46f6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100f46e0
cmp esi, 0xfffffffc
je 0x100f475d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100f4723
cmp esi, 0xfffffffd
je 0x100f475d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100f4723
cmp esi, 0xfffffffe
je 0x100f475d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100f4723
cmp esi, 0xffffffff
je 0x100f475d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100f475d
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100f46c8
xor esi, esi
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [eax + 0x24], 0
test esi, esi
je 0x100f4749
lea eax, [esi + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esi], eax
mov ebx, dword [ebp + 0x10]
or dword [ebx + 4], 1
test esi, esi
je 0x100f4915
jmp 0x100f488a
mov esi, dword [ebx + 0x10]
lea eax, [edi + 0x29]
sub esi, eax
mov dword [esp + 0x14], esi
call fcn.100be130
test eax, eax
je 0x100f4787
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x24], 7
jmp 0x100f4749
lea eax, [esi + 0x16]
cdq
push edx
push eax
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x100f4774
push dword [esp + 0x14]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.10107750
mov ecx, dword [esp + 0x28]
lea edx, [edi + 0x29]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, ebx
add eax, 0xc
push eax
call fcn.100f1210
mov ecx, eax
add esp, 4
add ecx, dword [esp + 0x14]
jmp 0x100f472d
push dword [ebp + 8]
mov ecx, dword [esi + 0xc]
lea ebx, [esi + 0x24]
call fcn.100f1a80
mov dword [ebx], eax
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x100f484b
lea edi, [ecx + 0x28]
mov esi, edi
mov dword [esp + 0x18], edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f4802
sub esi, edx
mov edx, ecx
mov ecx, dword [esp + 0x10]
push 0
mov ecx, dword [ecx + 0xc]
call fcn.100f1210
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
add ecx, esi
add esp, 4
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x10]
sub eax, esi
sub eax, 0x29
mov dword [esp + 0x14], eax
test edi, edi
je 0x100f485f
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x100f4840
sub edi, edx
jmp 0x100f4861
xor ecx, ecx
mov dword [esp + 0x18], 0
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
xor edi, edi
test ecx, ecx
je 0x100f4912
push 0
push 0xc
mov ecx, ebx
call fcn.100eaf70
mov ebx, dword [ebp + 0x10]
mov esi, eax
add esp, 8
test esi, esi
je 0x100f4915
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [ebx + 0x48], 0
test edi, edi
je 0x100f48c8
cmp edi, dword [ebx + 0x4c]
jbe 0x100f48b1
mov ecx, dword [esp + 0x10]
lea edx, [ebx + 0x44]
push edi
lea ecx, [ecx + 0x24]
call fcn.100eab50
add esp, 4
test eax, eax
jne 0x100f48c8
mov eax, dword [ebx + 0x48]
add eax, dword [ebx + 0x44]
push edi
push dword [esp + 0x1c]
push eax
call fcn.10107750
add esp, 0xc
add dword [ebx + 0x48], edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [ebx + 0xc], esi
lea edx, [ebx + 0x50]
mov ecx, dword [esi]
call fcn.10103260
test byte [ebp + 0xc], 2
movzx eax, al
cdq
mov dword [ebx + 0x1c], edx
mov edx, ebx
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x10]
mov ecx, esi
mov dword [ebx + 0x30], eax
je 0x100f490b
or dword [ebx + 4], 2
call fcn.100f35e0
jmp 0x100f4919
call fcn.100f3310
jmp 0x100f4919
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
test byte [ebx + 4], 2
je 0x100f492d
mov dword [ebx + 0x20], 0x100f3870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, 0x100f3b00
mov edx, 0x100f38f0
pop edi
pop esi
cmp dword [eax + 0x30], 1
cmove ecx, edx
mov dword [ebx + 0x20], ecx
pop ebx
mov esp, ebp
pop ebp
ret