Function at 0x1009da20
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
push edi
lea ecx, [edx + 2]
add edx, edx
lea edi, [esi + edx*8]
mov edx, dword [edi + 0x24]
xor edx, dword [ebx + 4]
mov dword [ebp - 8], edi
mov edi, dword [edi + 0x28]
xor edi, dword [ebx + 8]
add ecx, ecx
mov ecx, dword [esi + ecx*8]
xor ecx, dword [ebx]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 8]
mov edi, dword [edi + 0x2c]
xor edi, dword [ebx + 0xc]
mov ebx, edi
shr ebx, 8
mov dword [ebp - 0x10], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x100d5c38]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d6038]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d6438]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x100d5838]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x100d6038]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d6438]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d5c38]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x100d5838]
mov ebx, edx
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x10]
shr ebx, 8
movzx ebx, bl
shr edi, 0x18
mov edi, dword [edi*4 + 0x100d6438]
xor edi, dword [ebx*4 + 0x100d5c38]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d6038]
movzx ebx, byte [ebp - 0x14]
xor edi, dword [ebx*4 + 0x100d5838]
mov ebx, dword [ebp - 0x14]
mov dword [eax + 8], edi
shr edx, 0x10
shr ebx, 8
movzx edi, bl
movzx ebx, dl
mov edx, dword [edi*4 + 0x100d5c38]
xor edx, dword [ebx*4 + 0x100d6038]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x100d6438]
movzx ecx, byte [ebp - 0x10]
xor edx, dword [ecx*4 + 0x100d5838]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x1c]
dec ecx
cmp ecx, 1
jle 0x1009dc7a
mov ebx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, ecx
add edx, edx
dec ecx
mov dword [ebp + 0xc], ebx
lea esi, [esi + edx*8 + 0x24]
mov dword [ebp - 8], ecx
jmp 0x1009db67
mov edi, dword [ebp - 0xc]
mov edx, dword [esi]
xor edx, edi
mov edi, dword [esi + 4]
xor edi, dword [ebp + 0xc]
mov ecx, dword [esi - 4]
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 8]
xor edi, dword [ebp - 4]
xor ecx, dword [eax]
mov ebx, edi
shr ebx, 8
mov dword [ebp - 0x10], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x100d5c38]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d6038]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d6438]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x100d5838]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x100d6038]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d6438]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d5c38]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x100d5838]
mov ebx, edx
mov dword [ebp - 0xc], edi
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x10]
shr edi, 0x18
mov edi, dword [edi*4 + 0x100d6438]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d5c38]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100d6038]
movzx ebx, byte [ebp - 0x14]
xor edi, dword [ebx*4 + 0x100d5838]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edi
mov dword [eax + 8], edi
shr ebx, 8
shr edx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x100d5c38]
movzx edx, dl
xor edi, dword [edx*4 + 0x100d6038]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x100d6438]
movzx ecx, byte [ebp - 0x10]
xor edi, dword [ecx*4 + 0x100d5838]
sub esi, 0x10
dec dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 4], ecx
mov dword [eax + 0xc], ecx
jne 0x1009db64
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x38]
xor edi, dword [eax + 8]
mov ecx, dword [esi + 0x30]
xor ecx, dword [eax]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 0x3c]
xor edi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [ebp - 0x10], edi
movzx edi, cl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax], bl
mov ebx, dword [ebp - 0x10]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 1], bl
mov ebx, dword [ebp - 0x14]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 2], bl
mov edi, edx
shr edi, 0x18
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 3], bl
movzx edi, dl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 4], bl
mov ebx, ecx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 5], bl
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
mov edi, dword [ebp - 0x14]
mov byte [eax + 6], bl
shr edi, 0x18
movzx ebx, byte [edi + 0x100d6838]
movzx edi, byte [ebp - 0x14]
mov byte [eax + 7], bl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 8], bl
mov ebx, edx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
mov edi, dword [ebp - 0x10]
mov byte [eax + 0xa], bl
shr edi, 0x18
movzx ebx, byte [edi + 0x100d6838]
movzx edi, byte [ebp - 0x10]
mov byte [eax + 0xb], bl
movzx ebx, byte [edi + 0x100d6838]
mov byte [eax + 0xc], bl
mov ebx, dword [ebp - 0x14]
shr ebx, 8
shr edx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x100d6838]
movzx edx, dl
mov byte [eax + 0xd], bl
mov dl, byte [edx + 0x100d6838]
mov byte [eax + 0xe], dl
shr ecx, 0x18
mov cl, byte [ecx + 0x100d6838]
mov byte [eax + 0xf], cl
mov edx, dword [esi + 0x20]
xor dword [eax], edx
mov ecx, dword [esi + 0x24]
xor dword [eax + 4], ecx
mov edx, dword [esi + 0x28]
xor dword [eax + 8], edx
mov ecx, dword [esi + 0x2c]
xor dword [eax + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret