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

Disassembly:
sub esp, 0x18
mov eax, dword [0x1018f814]
add eax, eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov edi, edx
mov edx, dword [ecx]
xor edx, dword [ebx + eax*8]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + eax*8 + 4]
xor edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + eax*8 + 8]
mov ebx, dword [ebx + eax*8 + 0xc]
xor edx, dword [ecx + 8]
xor ebx, dword [ecx + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebp, dword [ecx*4 + 0x10158570]
xor ebp, dword [eax*4 + 0x10158970]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ebp, dword [eax*4 + 0x10158170]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ebp, dword [eax*4 + 0x10158d70]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov dword [edi], ebp
mov ecx, dword [ecx*4 + 0x10158570]
xor ecx, dword [eax*4 + 0x10158970]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10158170]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
movzx eax, cl
xor esi, dword [eax*4 + 0x10158d70]
mov eax, esi
mov dword [edi + 4], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x10158970]
xor ecx, dword [eax*4 + 0x10158570]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10158170]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x10158d70]
mov eax, dword [esp + 0x1c]
mov dword [edi + 8], ecx
shr eax, 0x10
mov dword [esp + 0x18], ecx
movzx ecx, dl
movzx eax, al
mov edx, dword [ecx*4 + 0x10158970]
xor edx, dword [eax*4 + 0x10158570]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor edx, dword [eax*4 + 0x10158170]
movzx eax, bl
mov ebx, dword [0x1018f814]
xor edx, dword [eax*4 + 0x10158d70]
mov dword [esp + 0x1c], edx
mov dword [edi + 0xc], edx
dec ebx
cmp ebx, 1
jle 0x100622a1
mov ecx, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
shl eax, 4
add edx, 8
add edx, eax
dec ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov eax, dword [edx - 8]
xor eax, ebp
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [edx - 4]
mov edx, dword [edx]
xor eax, esi
mov ebx, dword [ebx + 4]
xor edx, ecx
xor ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebp, dword [ecx*4 + 0x10158570]
mov ecx, dword [esp + 0x10]
xor ebp, dword [eax*4 + 0x10158970]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor ebp, dword [eax*4 + 0x10158170]
movzx eax, cl
xor ebp, dword [eax*4 + 0x10158d70]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [edi], ebp
mov esi, dword [ecx*4 + 0x10158970]
xor esi, dword [eax*4 + 0x10158570]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x10158170]
mov eax, dword [esp + 0x14]
movzx eax, al
xor esi, dword [eax*4 + 0x10158d70]
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov dword [edi + 4], esi
mov ecx, dword [ecx*4 + 0x10158570]
xor ecx, dword [eax*4 + 0x10158970]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10158170]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x10158d70]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [edi + 8], ecx
shr eax, 0x10
movzx ecx, dl
mov edx, dword [esp + 0x20]
movzx eax, al
sub edx, 0x10
mov dword [esp + 0x20], edx
mov ecx, dword [ecx*4 + 0x10158970]
xor ecx, dword [eax*4 + 0x10158570]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10158170]
movzx eax, bl
xor ecx, dword [eax*4 + 0x10158d70]
sub dword [esp + 0x24], 1
mov dword [esp + 0x1c], ecx
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x18]
jne 0x10062173
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
xor eax, ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
movzx eax, al
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov al, byte [eax + 0x100fdd80]
xor ebx, esi
mov edx, dword [ebp + 0x18]
mov byte [edi], al
xor ecx, dword [esp + 0x1c]
xor edx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
movzx eax, al
mov esi, dword [esp + 0x24]
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 3], al
movzx eax, bl
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 4], al
mov eax, esi
shr eax, 8
movzx eax, al
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 7], al
movzx eax, dl
shr edx, 8
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 8], al
mov eax, ebx
shr eax, 8
movzx eax, al
shr ebx, 0x10
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 9], al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr esi, 0x18
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 0xb], al
movzx eax, cl
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 0xc], al
movzx eax, dl
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 0xd], al
movzx eax, bl
mov al, byte [eax + 0x100fdd80]
mov byte [edi + 0xe], al
mov al, byte [esi + 0x100fdd80]
mov byte [edi + 0xf], al
mov eax, dword [ebp]
xor dword [edi], eax
mov eax, dword [ebp + 4]
xor dword [edi + 4], eax
mov eax, dword [ebp + 8]
xor dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
xor dword [edi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret