Function at 0x10013b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [edx + 4]
mov esi, ecx
mov dword [ebp - 4], esi
test edi, edi
je 0x10013d68
mov ebx, dword [edx]
cmp word [ebx], 0
je 0x10013d68
xor ecx, ecx
test edi, edi
je 0x10013b4e
mov eax, ebx
cmp word [eax], 0x2c
je 0x10013b69
inc ecx
add eax, 2
cmp ecx, edi
jb 0x10013b40
lea ecx, [esi + 0x2c]
push edx
call fcn.10015760
test eax, eax
je 0x10013b77
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x11
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0x32f54a96
test edi, edi
je 0x10013b9e
movzx eax, word [ebx]
lea ebx, [ebx + 2]
imul ecx, eax, 0xc5
imul eax, esi, 0x34c3
shr esi, 2
add ecx, eax
xor esi, ecx
sub edi, 1
jne 0x10013b80
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
mov edx, dword [eax]
mov eax, edx
test eax, eax
je 0x10013be3
nop dword [eax]
cmp esi, dword [eax + 4]
je 0x10013bc5
jae 0x10013bbc
mov eax, dword [eax + 0x10]
jmp 0x10013bbf
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10013bb0
jmp 0x10013be3
inc esi
mov eax, edx
mov dword [ebp - 8], esi
nop dword [eax + eax]
cmp esi, dword [eax + 4]
je 0x10013bc5
jae 0x10013bdc
mov eax, dword [eax + 0x10]
jmp 0x10013bdf
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10013bd0
push 0x10
push 0x48
call fcn.10434a32
mov edi, eax
add esp, 8
test edi, edi
je 0x10013d5a
lea eax, [edi + 0x14]
mov dword [edi], 0
or eax, 1
mov dword [edi + 4], 0
lea edx, [edi + 0x10]
mov dword [edi + 0xc], 0
lea ebx, [edi + 0x2c]
mov dword [edx], eax
mov eax, dword [ebp + 8]
or edx, 2
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 5
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0x3f400000
mov dword [edi + 0x28], 0x3e000000
mov dword [edi + 0x14], edx
mov dword [ebx], 0
mov dword [ebx + 4], 0
cmp ebx, eax
je 0x10013c95
mov eax, dword [eax + 4]
test eax, eax
je 0x10013c95
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x10013c95
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov dword [ebx + 4], ecx
add ecx, ecx
push ecx
push dword [edx]
push eax
call fcn.10425d60
add esp, 0xc
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp - 4]
push dword [ebp + 8]
mov byte [edi + 0x45], al
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0x2c]
mov dword [edi + 0x40], 0x10000
mov dword [edi + 0x38], esi
mov dword [edi + 0x34], ebx
mov byte [edi + 0x46], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x3c], 0
call fcn.10015890
mov esi, dword [ebx]
xor ebx, ebx
push 0x10
push 0x18
call fcn.10434a32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10013d46
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov edx, dword [ebp - 8]
mov dword [ecx], edi
mov dword [ecx + 4], edx
test esi, esi
je 0x10013d0c
cmp edx, dword [esi + 4]
je 0x10013d24
mov ebx, esi
jae 0x10013d05
mov esi, dword [esi + 0x10]
jmp 0x10013d08
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10013cf7
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], ebx
mov byte [ecx + 8], 1
test ebx, ebx
je 0x10013d36
cmp edx, dword [ebx + 4]
jae 0x10013d31
mov dword [ebx + 0x10], ecx
jmp 0x10013d38
push 0x18
push ecx
call fcn.1045088a
add esp, 8
jmp 0x10013d46
mov dword [ebx + 0x14], ecx
jmp 0x10013d38
mov dword [eax], ecx
push ecx
mov ecx, eax
call fcn.10017210
mov eax, dword [ebp - 4]
inc dword [eax + 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10013d4f
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret 0xc