Function at 0x1003ddf5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1030b908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x104], 0
and dword [ebp - 0x108], 0
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xfc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xf8], ebx
push ecx
push dword [ebp + 0x24]
mov ecx, edi
push eax
call fcn.1003dca4
test eax, eax
je 0x1003e2bc
mov eax, dword [ebp + 0x20]
push esi
test eax, eax
je 0x1003de8f
test ebx, ebx
je 0x1003de7b
mov esi, dword [ebp + 0x1c]
test esi, esi
jne 0x1003de92
mov ebx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x110]
mov dword [ebp - 0xf8], ebx
jmp 0x1003de92
mov esi, dword [ebp + 0x1c]
cmp dword [edi + 4], 5
jl 0x1003df81
push 0
call fcn.1012d0e6
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10144af5
push 4
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10144b3c
lea eax, [edi + 0x18]
push 0x20
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10144b3c
push 5
lea eax, [ebp - 0xf4]
push str.there
push eax
call fcn.10144b3c
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10144931
add esp, 0x34
lea eax, [edi + 0x18]
mov ecx, edi
push eax
push 0
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call fcn.1003cb3d
cmp dword [ebp + 0x20], 0
je 0x1003e2bb
lea eax, [edi + 0x18]
mov ecx, edi
push eax
push 1
push esi
push ebx
mov ebx, dword [ebp - 0x10c]
push ebx
call fcn.1003cb3d
push 0x101556d0
lea ecx, [ebp - 0x104]
call fcn.100139c3
lea eax, [edi + 0x18]
xor edx, edx
push eax
inc edx
lea eax, [ebp - 0x104]
push edx
push eax
mov ecx, ebx
call fcn.1001eec3
movzx eax, al
mov ecx, edi
push eax
push dword [edi + 0x10]
push ebx
call fcn.1003ce88
lea ecx, [ebp - 0x104]
jmp 0x1003e2b6
mov ebx, dword [ebp - 0x108]
mov dword [ebp - 0x104], 1
test eax, eax
je 0x1003e0ed
mov ebx, dword [ebp - 0xf8]
lea eax, [ebp - 0x24]
mov edx, 0x101556b0
xor ecx, ecx
sub edx, esi
sub ebx, eax
cmp ecx, esi
jae 0x1003dfba
lea eax, [ebx + ecx]
mov al, byte [ebp + eax - 0x24]
jmp 0x1003dfbd
mov al, byte [edx + ecx]
mov byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0x20
jb 0x1003dfad
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.1014a022
mov ebx, dword [ebp - 0x108]
add esp, 0xc
cmp dword [edi + 4], 3
jl 0x1003dffc
push 0x32
pop esi
lea eax, [ebp - 0x34]
push eax
push 0x10
push eax
call fcn.1014a022
add esp, 0xc
sub esi, 1
jne 0x1003dfe8
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10128bc0
mov ebx, dword [ebp - 0x110]
lea eax, [ebp - 0x24]
mov esi, dword [ebp - 0x114]
mov edx, 0x101556b0
add esp, 0xc
xor ecx, ecx
sub edx, ebx
sub esi, eax
cmp ecx, ebx
jae 0x1003e034
lea eax, [esi + ecx]
mov al, byte [ebp + eax - 0x24]
jmp 0x1003e037
mov al, byte [edx + ecx]
mov byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0x20
jb 0x1003e027
mov ebx, dword [ebp - 0x108]
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.10149e80
add esp, 0x10
cmp dword [edi + 4], 3
jl 0x1003e0a3
mov dl, 1
mov byte [ebp - 0xfd], dl
xor ecx, ecx
test ebx, ebx
jle 0x1003e07d
mov al, byte [ebp + ecx - 0x54]
xor al, dl
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, ebx
jl 0x1003e06e
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.10149e80
mov dl, byte [ebp - 0xfd]
add esp, 0x10
inc dl
mov byte [ebp - 0xfd], dl
cmp dl, 0x13
jbe 0x1003e068
push 0x1014fcc8
lea ecx, [ebp - 0xf8]
call fcn.100139c3
push 0x20
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x108]
call fcn.10013a5d
mov ecx, dword [ebp - 0x10c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.1001f5f5
lea ecx, [ebp - 0x108]
call fcn.10013aa3
lea ecx, [ebp - 0xf8]
call fcn.10013aa3
push dword [ebp - 0xfc]
lea esi, [edi + 0x18]
push 0
push ebx
push esi
push dword [ebp - 0x110]
mov dword [ebp - 0xf8], esi
push dword [ebp - 0x114]
push dword [edi + 0xc]
call fcn.1003d007
add esp, 0x1c
cmp dword [edi + 4], 3
jge 0x1003e189
push 8
pop ecx
push ebx
push dword [ebp - 0xf8]
lea eax, [ebp - 0x54]
mov esi, 0x101556b0
lea edi, [ebp - 0x54]
push 0x20
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10149e80
add esp, 0x10
lea ecx, [ebp - 0xf8]
push 0x1014e330
call fcn.100139c3
push 0x20
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10013a5d
mov ecx, dword [ebp - 0x10c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.1001f5f5
lea ecx, [ebp - 0xfc]
call fcn.10013aa3
lea ecx, [ebp - 0xf8]
jmp 0x1003e2b6
lea eax, [ebp - 0xd8]
push eax
call fcn.1014a06d
push 0x20
lea eax, [ebp - 0xd8]
push 0x101556b0
push eax
call fcn.1014a098
mov eax, dword [ebp - 0xfc]
add esp, 0x10
test eax, eax
je 0x1003e200
push 0
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.10022d52
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x1003e1d4
mov ecx, dword [eax + 4]
jmp 0x1003e1d6
xor ecx, ecx
test eax, eax
je 0x1003e1df
add eax, 0xc
jmp 0x1003e1e4
mov eax, 0x1014e2b4
push ecx
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.1014a098
add esp, 0xc
lea ecx, [ebp - 0xfc]
call fcn.10013aa3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10149f39
push ebx
push esi
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.10149e80
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jle 0x1003e23a
mov edx, dword [ebp - 0x104]
mov al, byte [esi + ecx]
xor al, dl
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, ebx
jl 0x1003e22c
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.10149e80
mov eax, dword [ebp - 0x104]
add esp, 0x10
inc al
mov dword [ebp - 0x104], eax
cmp al, 0x13
jbe 0x1003e220
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.1014a022
add esp, 0xc
lea ecx, [ebp - 0xfc]
push 0x1014e330
call fcn.100139c3
push 0x20
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xf8]
call fcn.10013a5d
mov ecx, dword [ebp - 0x10c]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.1001f5f5
lea ecx, [ebp - 0xf8]
call fcn.10013aa3
lea ecx, [ebp - 0xfc]
call fcn.10013aa3
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10127041
mov esp, ebp
pop ebp
ret 0x20