Function at 0x10001340
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x1000c030]
xor eax, esp
mov dword [esp + 0x24], eax
mov al, 0xd8
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
mov al, 0xe1
push ebx
xor ebx, ebx
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
lea eax, [esp + 0x18]
mov dword [esp + 4], ebx
mov byte [esp + 0x1a], 0xaa
mov byte [esp + 0x1c], 0xc5
mov byte [esp + 0x1e], 0xed
mov byte [esp + 0x1f], 0xe3
mov byte [esp + 0x21], 0xee
mov byte [esp + 0x22], 0xe5
mov byte [esp + 0x23], 0xe7
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
jmp 0x100013a0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100013a0
sub eax, edx
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, ebx
je 0x100013c1
xor byte [esp + eax + 0x18], 0x84
add eax, 1
cmp eax, ecx
jb 0x100013b5
push ebx
push 0x80
push 3
push ebx
push 4
push ebx
lea eax, [esp + 0x30]
push eax
call dword [0x10009030]
cmp eax, 0xffffffff
je 0x100013f9
push eax
call dword [0x10009058]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10001888
add esp, 0x28
ret
push ebp
push esi
push edi
push 0x104
mov dword [esp + 0x18], ebx
call fcn.10001883
mov edi, eax
push 0x104
lea ebp, [edi + 0x82]
call fcn.10001883
mov esi, eax
mov eax, dword [edi]
push edi
mov ebx, 0xc
call fcn.100017a0
mov eax, dword [esi]
push ebp
mov ebx, 0xa
call fcn.100017a0
add esp, 0x10
push esi
push 0x104
call dword [0x10009054]
push 0x1000aa48
push 0x104
push esi
call fcn.10001a86
push ebp
push 0x104
push esi
call fcn.10001a86
push 0x1000aac4
push 0x104
push esi
call fcn.10001a86
push esi
mov ecx, edi
call fcn.10001000
add esp, 0x28
test eax, eax
mov dword [esp + 0x1c], eax
je 0x100015cb
push 0x1000abb0
push 0x1000aa4c
mov dword [esp + 0x20], 0
call dword [0x10009028]
push eax
call dword [0x10009020]
mov ebx, eax
test ebx, ebx
je 0x100014bd
lea ecx, [esp + 0x18]
push ecx
call dword [0x1000904c]
push eax
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100014ce
call fcn.10001810
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x100014eb
push 0x1000aacc
call dword [0x10009034]
mov dword [esp + 0x14], 1
jmp 0x100015cb
test eax, eax
mov ebx, dword [0x1000d824]
push 0x1000aae0
je 0x10001539
push 0x66
push ebx
call dword [0x10009050]
test eax, eax
mov ebp, dword [0x10009034]
jne 0x10001523
push 0x1000aa00
call ebp
mov dword [esp + 0x10], 0
push 0x1000aae4
jmp 0x10001571
push esi
mov ecx, ebx
call fcn.10001190
add esp, 4
mov dword [esp + 0x10], eax
push 0x1000aae4
jmp 0x10001571
push 0x67
push ebx
call dword [0x10009050]
test eax, eax
mov ebp, dword [0x10009034]
jne 0x1000155d
push 0x1000aa00
call ebp
mov dword [esp + 0x10], 0
jmp 0x1000156c
push esi
mov ecx, ebx
call fcn.10001190
add esp, 4
mov dword [esp + 0x10], eax
push 0x1000aaf8
call ebp
cmp dword [esp + 0x10], 0
je 0x100015cb
mov eax, edi
call fcn.10001100
push esi
call dword [0x10009140]
test eax, eax
je 0x10001593
push esi
call dword [0x10009018]
push 0
push 0x80
push 3
push 0
push 4
push 0
lea edx, [esp + 0x3c]
push edx
call dword [0x10009030]
cmp eax, 0xffffffff
je 0x100015c3
push eax
call dword [0x10009058]
mov dword [esp + 0x14], 1
jmp 0x100015cb
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.10002210
push 0x104
push 0
push edi
call fcn.10002210
push 0x104
push 0
push esi
call fcn.10002210
push edi
call fcn.100019ce
push esi
call fcn.100019ce
mov esi, dword [esp + 0x40]
add esp, 0x2c
test esi, esi
jne 0x10001670
cmp dword [esp + 0x10], esi
push esi
push 0x1000ab0c
jne 0x1000163a
push 0x1000ab14
push esi
call dword [0x10009148]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10001888
add esp, 0x28
ret
cmp dword [esp + 0x24], 0
jne 0x10001663
push 0x1000ab48
push 0
call dword [0x10009148]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10001888
add esp, 0x28
ret
push 0x1000ab7c
push 0
call dword [0x10009148]
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001888
add esp, 0x28
ret