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

Disassembly:
sub esp, 0x18
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x24]
shl eax, 4
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, dword [eax + edx]
mov dword [esp + 8], ecx
lea ecx, [eax + edx]
mov eax, dword [ebp]
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ebp + 4]
xor eax, ebx
mov ebx, dword [ebp + 8]
xor esi, edi
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], esi
xor edi, ebx
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
xor ebx, ecx
mov ecx, dword [esp + 0x1b]
mov dword [esp + 0x20], ebx
and ecx, 0xff
mov ebp, dword [esp + 0x1e]
mov dword [esp + 0x14], eax
mov ecx, dword [ecx*4 + 0x10018000]
and ebp, 0xff
and eax, 0xff
and esi, 0xff
xor ecx, dword [ebp*4 + 0x10017c00]
mov ebp, dword [esp + 0x21]
and ebp, 0xff
and edi, 0xff
xor ecx, dword [ebp*4 + 0x10017800]
mov ebp, dword [eax*4 + 0x10017400]
mov eax, dword [esp + 0x30]
xor ecx, ebp
mov ebp, dword [esp + 0x22]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1f]
and ecx, 0xff
and ebp, 0xff
mov ecx, dword [ecx*4 + 0x10018000]
xor ecx, dword [ebp*4 + 0x10017c00]
mov ebp, dword [esp + 0x15]
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x10017800]
mov ebp, dword [esi*4 + 0x10017400]
mov esi, dword [esp + 0x16]
xor ecx, ebp
and esi, 0xff
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x23]
mov ebp, dword [esi*4 + 0x10017c00]
mov esi, dword [esp + 0x19]
and ecx, 0xff
and esi, 0xff
mov ecx, dword [ecx*4 + 0x10018000]
xor ecx, ebp
mov ebp, dword [esi*4 + 0x10017800]
mov esi, dword [esp + 0x1a]
xor ecx, ebp
mov ebp, dword [edi*4 + 0x10017400]
and esi, 0xff
xor ecx, ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x17]
mov edi, dword [esi*4 + 0x10017c00]
mov esi, dword [esp + 0x1d]
and ecx, 0xff
and esi, 0xff
mov ecx, dword [ecx*4 + 0x10018000]
xor ecx, edi
mov edi, dword [esi*4 + 0x10017800]
xor ecx, edi
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x10017400]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
dec ecx
cmp ecx, 1
jle 0x100047f6
mov esi, ecx
shl esi, 4
dec ecx
lea edi, [esi + edx + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edi
mov edx, dword [edi - 4]
mov esi, dword [eax + 4]
mov ecx, dword [edi - 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 8]
xor edx, esi
mov esi, dword [edi]
mov edi, dword [edi + 4]
xor ecx, ebx
mov ebx, dword [eax + 0xc]
xor esi, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
xor edi, ebx
mov ebx, dword [esp + 0x1b]
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0x1e]
and ebx, 0xff
and ebp, 0xff
mov dword [esp + 0x14], ecx
mov ebx, dword [ebx*4 + 0x10018000]
and ecx, 0xff
xor ebx, dword [ebp*4 + 0x10017c00]
mov ebp, dword [esp + 0x21]
and ebp, 0xff
and edx, 0xff
and esi, 0xff
and edi, 0xff
xor ebx, dword [ebp*4 + 0x10017800]
mov ebp, dword [ecx*4 + 0x10017400]
mov ecx, dword [esp + 0x1f]
xor ebx, ebp
and ecx, 0xff
mov dword [eax], ebx
mov ebx, dword [esp + 0x22]
mov ecx, dword [ecx*4 + 0x10018000]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x10017c00]
mov ebx, dword [esp + 0x15]
and ebx, 0xff
xor ecx, ebp
mov ebp, dword [ebx*4 + 0x10017800]
mov ebx, dword [edx*4 + 0x10017400]
xor ecx, ebp
mov edx, dword [esp + 0x23]
xor ecx, ebx
and edx, 0xff
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x16]
mov edx, dword [edx*4 + 0x10018000]
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x10017c00]
mov ecx, dword [esp + 0x19]
and ecx, 0xff
xor edx, ebx
mov ebx, dword [ecx*4 + 0x10017800]
mov ecx, dword [esp + 0x1a]
xor edx, ebx
mov ebx, dword [esi*4 + 0x10017400]
xor edx, ebx
and ecx, 0xff
mov dword [eax + 8], edx
mov edx, dword [esp + 0x17]
mov ebx, dword [ecx*4 + 0x10017c00]
mov ecx, dword [esp + 0x1d]
mov esi, dword [edi*4 + 0x10017400]
mov edi, dword [esp + 0x2c]
and edx, 0xff
and ecx, 0xff
sub edi, 0x10
mov edx, dword [edx*4 + 0x10018000]
mov ebp, dword [ecx*4 + 0x10017800]
mov ecx, dword [esp + 0x30]
xor edx, ebx
xor edx, ebp
mov dword [esp + 0x2c], edi
xor edx, esi
dec ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x30], ecx
jne 0x1000468b
mov edx, dword [esp + 0x34]
mov esi, dword [edx + 0x10]
mov ebp, dword [eax]
mov edi, dword [edx + 0x14]
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
xor esi, ebp
mov ebp, dword [edx + 0x18]
xor edi, ebx
mov ebx, dword [eax + 0xc]
xor ebp, ecx
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x14], esi
xor ecx, ebx
and esi, 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x21]
and esi, 0xff
mov byte [eax], bl
mov dword [esp + 0x18], edi
and edi, 0xff
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x1e]
and esi, 0xff
mov byte [eax + 1], bl
and ebp, 0xff
and ecx, 0xff
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x1b]
and esi, 0xff
mov byte [eax + 2], bl
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x15]
mov byte [eax + 3], bl
mov bl, byte [edi + 0x10018400]
and esi, 0xff
mov byte [eax + 4], bl
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x22]
and esi, 0xff
mov byte [eax + 5], bl
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x1f]
and esi, 0xff
mov byte [eax + 6], bl
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x19]
mov byte [eax + 7], bl
mov bl, byte [ebp + 0x10018400]
and esi, 0xff
mov byte [eax + 8], bl
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x16]
and esi, 0xff
mov byte [eax + 9], bl
mov bl, byte [esi + 0x10018400]
mov esi, dword [esp + 0x23]
and esi, 0xff
mov byte [eax + 0xa], bl
mov bl, byte [esi + 0x10018400]
mov byte [eax + 0xb], bl
mov cl, byte [ecx + 0x10018400]
mov byte [eax + 0xc], cl
mov ecx, dword [esp + 0x1d]
and ecx, 0xff
mov ebx, dword [eax]
mov cl, byte [ecx + 0x10018400]
mov byte [eax + 0xd], cl
mov ecx, dword [esp + 0x1a]
and ecx, 0xff
mov cl, byte [ecx + 0x10018400]
mov byte [eax + 0xe], cl
mov ecx, dword [esp + 0x17]
and ecx, 0xff
mov cl, byte [ecx + 0x10018400]
mov byte [eax + 0xf], cl
mov ecx, dword [edx]
xor ebx, ecx
mov dword [eax], ebx
mov ecx, dword [edx + 4]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
xor edi, ecx
mov dword [eax + 4], edi
mov ecx, dword [edx + 8]
xor esi, ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], esi
mov edx, dword [edx + 0xc]
xor ecx, edx
pop edi
pop esi
mov dword [eax + 0xc], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc