Function at 0x1001dda6
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
push 8
pop ecx
xor esi, esi
xor eax, eax
push 8
lea edi, [ebp - 0x44]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x6c]
push 0xc8
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.1003e4bd
mov eax, dword [ebp + 8]
add esp, 0xc
push 5
xor ecx, ecx
add eax, 0x18
pop edx
mov esi, dword [eax - 0x18]
xor esi, dword [eax - 0x10]
mov edi, dword [eax - 0x14]
xor edi, dword [eax - 0xc]
xor esi, dword [eax - 8]
xor edi, dword [eax - 4]
xor esi, dword [eax + 8]
xor edi, dword [eax + 0xc]
xor esi, dword [eax]
xor edi, dword [eax + 4]
mov dword [ebp + ecx*8 - 0x4c], esi
mov dword [ebp + ecx*8 - 0x48], edi
inc ecx
add eax, 0x28
cmp ecx, edx
jl 0x1001ddf2
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x74]
mov dword [ebp - 8], edx
mov esi, dword [ebp - 4]
mov eax, esi
cdq
push 5
pop edi
idiv edi
xor ebx, ebx
push 5
mov eax, dword [ebp + edx*8 - 0x4c]
mov edx, dword [ebp + edx*8 - 0x48]
mov edi, edx
shld edx, eax, 1
add eax, eax
shr edi, 0x1f
or edi, eax
or ebx, edx
lea eax, [esi + 3]
cdq
pop esi
idiv esi
xor edi, dword [ebp + edx*8 - 0x4c]
xor ebx, dword [ebp + edx*8 - 0x48]
inc dword [ebp - 4]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
add ecx, 8
dec dword [ebp - 8]
jne 0x1001de2c
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov eax, ebx
mov edx, dword [ebp + ecx*8 - 0x74]
mov esi, dword [ebp + ecx*8 - 0x70]
push 5
pop edi
xor dword [eax], edx
xor dword [eax + 4], esi
add eax, 8
dec edi
jne 0x1001de83
inc ecx
cmp ecx, 5
jl 0x1001de78
mov eax, 0x10040cd0
mov dword [ebp - 0x18], ebx
sub dword [ebp - 0x18], eax
and dword [ebp - 8], edi
mov esi, eax
mov eax, dword [ebp - 8]
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push 5
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x14], edx
test edx, edx
jge 0x1001dec1
add dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + esi]
mov edx, dword [eax + esi + 4]
mov edi, dword [esi]
push 0x40
pop ecx
sub ecx, edi
mov eax, ebx
mov dword [ebp - 0x20], edx
call fcn.1003e6a0
mov ecx, edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov eax, ebx
mov ecx, edi
call fcn.1003e7a0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
add dword [ebp - 4], 5
add dword [ebp - 0x1c], 3
or ecx, eax
mov eax, dword [ebp - 0xc]
or eax, edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [edi + edx]
mov dword [ebp + eax*8 - 0x13c], ecx
mov ecx, dword [ebp - 0xc]
add esi, 8
cmp dword [ebp - 4], 0x19
mov dword [ebp + eax*8 - 0x138], ecx
jl 0x1001deae
push 2
pop ebx
add dword [ebp - 8], ebx
cmp esi, 0x10040d98
jl 0x1001dea4
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x13c]
sub edi, ecx
mov dword [ebp - 8], 5
lea eax, [ebx - 1]
cdq
push 5
pop esi
idiv esi
and dword [ebp - 4], 0
mov eax, ebx
mov dword [ebp - 0xc], edx
cdq
idiv esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
test eax, eax
jge 0x1001df6e
add eax, 5
mov esi, dword [ebp - 0x10]
test esi, esi
jge 0x1001df78
add esi, 5
imul eax, eax, 5
imul esi, esi, 5
add eax, dword [ebp - 4]
add esi, dword [ebp - 4]
mov edx, dword [ebp + eax*8 - 0x13c]
mov eax, dword [ebp + eax*8 - 0x138]
not edx
and edx, dword [ebp + esi*8 - 0x13c]
not eax
and eax, dword [ebp + esi*8 - 0x138]
xor edx, dword [edi + ecx]
xor eax, dword [edi + ecx + 4]
inc dword [ebp - 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
add ecx, 8
cmp dword [ebp - 4], 5
jl 0x1001df64
inc ebx
dec dword [ebp - 8]
jne 0x1001df4c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor dword [eax], ecx
mov ecx, dword [ebp + 0x10]
xor dword [eax + 4], ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret