Function at 0x100f4590
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 0x100f4705
test byte [ebp + 0xc], 8
jne 0x100f4705
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 0x100f45e9
mov edi, edx
movzx edx, byte [esi + edi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x100f45d2
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 0x100f4659
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x100f4653
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x28]
mov esi, edi
sub esi, 4
jb 0x100f4621
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100f4626
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100f4610
cmp esi, 0xfffffffc
je 0x100f468d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100f4653
cmp esi, 0xfffffffd
je 0x100f468d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100f4653
cmp esi, 0xfffffffe
je 0x100f468d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100f4653
cmp esi, 0xffffffff
je 0x100f468d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100f468d
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100f45f8
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 0x100f4679
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 0x100f4845
jmp 0x100f47ba
mov esi, dword [ebx + 0x10]
lea eax, [edi + 0x29]
sub esi, eax
mov dword [esp + 0x14], esi
call fcn.100be0c0
test eax, eax
je 0x100f46b7
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x24], 7
jmp 0x100f4679
lea eax, [esi + 0x16]
cdq
push edx
push eax
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x100f46a4
push dword [esp + 0x14]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.10107690
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.100f1150
mov ecx, eax
add esp, 4
add ecx, dword [esp + 0x14]
jmp 0x100f465d
push dword [ebp + 8]
mov ecx, dword [esi + 0xc]
lea ebx, [esi + 0x24]
call fcn.100f19c0
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 0x100f477b
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 0x100f4732
sub esi, edx
mov edx, ecx
mov ecx, dword [esp + 0x10]
push 0
mov ecx, dword [ecx + 0xc]
call fcn.100f1150
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 0x100f478f
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x100f4770
sub edi, edx
jmp 0x100f4791
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 0x100f4842
push 0
push 0xc
mov ecx, ebx
call fcn.100eaeb0
mov ebx, dword [ebp + 0x10]
mov esi, eax
add esp, 8
test esi, esi
je 0x100f4845
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [ebx + 0x48], 0
test edi, edi
je 0x100f47f8
cmp edi, dword [ebx + 0x4c]
jbe 0x100f47e1
mov ecx, dword [esp + 0x10]
lea edx, [ebx + 0x44]
push edi
lea ecx, [ecx + 0x24]
call fcn.100eaa90
add esp, 4
test eax, eax
jne 0x100f47f8
mov eax, dword [ebx + 0x48]
add eax, dword [ebx + 0x44]
push edi
push dword [esp + 0x1c]
push eax
call fcn.10107690
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.10103190
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 0x100f483b
or dword [ebx + 4], 2
call fcn.100f3510
jmp 0x100f4849
call fcn.100f3240
jmp 0x100f4849
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
test byte [ebx + 4], 2
je 0x100f485d
mov dword [ebx + 0x20], 0x100f37a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, 0x100f3a30
mov edx, 0x100f3820
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