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

Disassembly:
sub esp, 0x30
mov eax, dword [0x100e6440]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [0x100ee838]
push esi
mov esi, dword [esp + 0x40]
push edi
lea ebx, [ebp - 6]
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x10085625
mov ecx, ebx
lea edx, [ebx*4 - 4]
shl ecx, 2
lea edi, [esp + 0x1c]
lea eax, [ecx - 4]
shr ecx, 2
sub esi, eax
add esi, edx
sub edx, eax
add edi, edx
xor edx, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10085629
cmp edi, ebx
jge 0x1008560a
mov ebp, dword [esp + 0x14]
cmp edx, 4
jge 0x10085604
mov eax, dword [esp + edi*4 + 0x1c]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x100855ee
mov ebp, dword [0x100ee838]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x100855df
jmp 0x10085629
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10085779
lea ecx, [esp + 0x1c]
mov edi, 0x100e5ea8
sub ecx, 4
movzx eax, byte [esp + ebx*4 + 0x19]
mov dword [esp + 0x10], ecx
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + ebx*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + ebx*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + ebx*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov eax, dword [edi]
xor cl, al
mov byte [esp + 0x1c], cl
add edi, 4
xor ecx, ecx
mov dword [esp + 0x18], edi
inc ecx
cmp ebx, 8
je 0x100856c3
cmp ebx, ecx
jle 0x100856ac
mov eax, dword [esp + ecx*4 + 0x18]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, ebx
jl 0x1008569f
lea ecx, [esp + 0x1c]
xor edi, edi
sub ecx, 4
mov dword [esp + 0x10], ecx
test ebx, ebx
jle 0x1008576a
jmp 0x10085722
mov edi, dword [esp + 0x10]
mov eax, dword [edi + ecx*4]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, 4
jl 0x100856c7
movzx eax, byte [esp + 0x28]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
mov eax, dword [edi + ecx*4]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, 8
jl 0x10085713
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10085766
cmp edi, ebx
jge 0x1008574d
mov ebp, dword [esp + 0x14]
cmp edx, 4
jge 0x10085747
mov eax, dword [esp + edi*4 + 0x1c]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x10085731
mov ebp, dword [0x100ee838]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x10085722
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x10085640
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008a872
add esp, 0x30
ret