Function at 0x1007fd80
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
shr ebx, 2
lea eax, [ebx + 6]
push esi
lea ebp, [ecx + 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
lea esi, [eax*4 + 4]
mov eax, dword [ebp + 4]
cmp eax, esi
push edi
mov dword [esp + 0x10], ecx
jne 0x1007fdae
mov eax, edx
jmp 0x1007fdcd
mov ecx, eax
xor eax, eax
mov edi, edx
push edx
rep stosd dword es:[edi], eax
call fcn.100569b3
add esp, 4
push 0
push esi
mov ecx, ebp
call fcn.10002ca0
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [ebp + 4], esi
mov esi, dword [ecx + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push 1
call fcn.1007fd10
mov eax, dword [esi + ebx*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
xor edx, edx
mov dh, byte [ecx + str.cw]
mov edi, dword [0x1014a3f0]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, ecx
shl edx, 8
xor edx, eax
mov eax, dword [esi]
xor eax, edx
xor eax, edi
mov dword [esi + ebx*4], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + ebx*4 + 4], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + ebx*4 + 8], eax
mov ecx, dword [esi + 0xc]
xor ecx, eax
mov dword [esi + ebx*4 + 0xc], ecx
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*4]
lea edx, [esi + ebx*4 + 0x10]
add esp, 0x14
cmp edx, ecx
mov edi, 0x1014a3f4
je 0x1007ff80
mov eax, dword [esp + 0x1c]
cmp eax, 0x18
jne 0x1007fe91
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x24]
xor eax, ecx
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x1007fefa
cmp eax, 0x20
jne 0x1007fefa
mov eax, dword [esi + 0x2c]
xor ecx, ecx
mov edx, eax
shr edx, 0x18
mov ch, byte [edx + str.cw]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, edx
mov edx, eax
shr edx, 8
shl ecx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, edx
movzx eax, al
movzx edx, byte [eax + str.cw]
shl ecx, 8
xor ecx, edx
mov eax, ecx
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
lea esi, [esi + ebx*4]
mov eax, dword [esi + ebx*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
xor edx, edx
mov dh, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
mov ecx, dword [edi]
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
mov eax, dword [esi]
xor edx, ecx
xor edx, eax
mov dword [esi + ebx*4], edx
mov eax, dword [esi + 4]
mov ecx, edx
xor eax, ecx
mov dword [esi + ebx*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + ebx*4 + 8], ecx
mov edx, dword [esi + 0xc]
xor edx, ecx
mov dword [esi + ebx*4 + 0xc], edx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*4]
lea eax, [esi + ebx*4 + 0x10]
add edi, 4
cmp eax, edx
jne 0x1007fe73
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
call dword [edx + 0x1c]
test al, al
jne 0x10080173
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
shl esi, 2
xor edi, edi
test esi, esi
jbe 0x1007fff0
lea edx, [eax + esi*4 + 8]
lea ecx, [eax + 8]
jmp 0x1007ffb0
mov ebp, dword [edx - 8]
mov ebx, dword [ecx - 8]
mov dword [ecx - 8], ebp
mov ebp, dword [edx - 4]
mov dword [edx - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], ebx
mov ebx, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], ebx
add edi, 4
sub esi, 4
add ecx, 0x10
sub edx, 0x10
cmp edi, esi
jb 0x1007ffb0
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov esi, 1
cmp ecx, esi
jbe 0x10080173
mov ecx, dword [eax + 0x10]
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x101493f0]
shr ecx, 8
add eax, 0x10
shr ebx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x101497f0]
mov ebx, dword [ecx*4 + 0x10149bf0]
movzx ecx, byte [eax]
movzx ecx, byte [ecx + str.cw]
mov edi, dword [ecx*4 + 0x10149ff0]
mov ecx, dword [eax + 4]
xor edx, ebx
xor edx, edi
mov dword [eax], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x101493f0]
shr ecx, 8
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x101497f0]
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
mov ebx, dword [ecx*4 + 0x10149bf0]
movzx ecx, byte [eax + 4]
movzx ecx, byte [ecx + str.cw]
mov edi, dword [ecx*4 + 0x10149ff0]
mov ecx, dword [eax + 8]
xor edx, ebx
xor edx, edi
mov dword [eax + 4], edx
mov ebx, ecx
mov edx, ecx
shr ebx, 0x10
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x101493f0]
shr ecx, 8
movzx edi, bl
movzx edi, byte [edi + str.cw]
mov ebx, dword [edi*4 + 0x101497f0]
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, ebx
mov ebx, dword [ecx*4 + 0x10149bf0]
movzx ecx, byte [eax + 8]
movzx ecx, byte [ecx + str.cw]
mov edi, dword [ecx*4 + 0x10149ff0]
mov ecx, dword [eax + 0xc]
xor edx, ebx
xor edx, edi
mov dword [eax + 8], edx
mov ebx, ecx
shr ebx, 0x10
mov edx, ecx
movzx edi, bl
movzx edi, byte [edi + str.cw]
mov ebx, dword [edi*4 + 0x101497f0]
shr ecx, 8
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x101493f0]
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, ebx
mov ebx, dword [ecx*4 + 0x10149bf0]
movzx ecx, byte [eax + 0xc]
xor edx, ebx
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x10149ff0]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
inc esi
cmp esi, ecx
jb 0x10080000
mov eax, dword [ebp + 0x14]
mov ecx, eax
sub ecx, eax
mov edx, 4
nop
mov esi, dword [ecx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
dec edx
jne 0x10080180
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
shl edx, 4
add eax, edx
mov ecx, eax
sub ecx, eax
mov edx, 4
mov esi, dword [ecx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
dec edx
jne 0x100801a1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc