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

Disassembly:
sub esp, 0x20
mov edx, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ebx, dword [edx]
mov ecx, dword [edx + 8]
push edi
mov eax, dword [esi]
mov ebp, dword [esi + 0x18]
mov edi, dword [edx + 4]
add esi, 0x10
mov dword [esp + 0x34], eax
xor ebp, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
xor eax, ebx
mov ebx, dword [edx + 0xc]
xor ecx, ebx
xor edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dl, ch
mov bl, byte [esp + 0x22]
xor eax, edi
mov edi, dword [edx*4 + 0x10089c6c]
mov dword [esp + 0x28], ebp
mov edx, dword [ebx*4 + 0x1008a06c]
and ebp, 0xff
xor edi, edx
mov edx, eax
shr edx, 0x18
add esi, 0x10
mov dword [esp + 0x24], eax
mov ebx, dword [edx*4 + 0x1008a46c]
mov edx, dword [ebp*4 + 0x1008986c]
xor edi, ebx
mov ebx, dword [esi + 8]
xor edi, edx
xor edx, edx
mov dl, byte [esp + 0x2a]
xor edi, ebx
xor ebx, ebx
mov dword [esp + 0x2c], ecx
mov bl, ah
mov eax, dword [edx*4 + 0x1008a06c]
mov dword [esp + 0x18], edi
mov edx, dword [ebx*4 + 0x10089c6c]
xor eax, edx
mov edx, ecx
shr edx, 0x18
and ecx, 0xff
mov ebx, dword [edx*4 + 0x1008a46c]
mov edx, dword [esp + 0x20]
xor eax, ebx
mov ebx, edx
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x1008986c]
mov ebx, dword [esi]
xor eax, ebp
xor eax, ebx
xor ebx, ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov al, byte [esp + 0x26]
mov bl, dh
mov edx, dword [eax*4 + 0x1008a06c]
mov eax, dword [ebx*4 + 0x10089c6c]
xor edx, eax
mov eax, dword [esp + 0x28]
mov ebx, eax
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x1008a46c]
mov ebx, dword [ecx*4 + 0x1008986c]
mov ecx, dword [esi + 0xc]
xor edx, ebp
xor edx, ebx
xor edx, ecx
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov cl, byte [esp + 0x2e]
xor ebx, ebx
mov bl, ah
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx*4 + 0x1008a06c]
mov ebp, dword [ebx*4 + 0x10089c6c]
mov ebx, dword [esi + 4]
shr eax, 0x18
xor ecx, ebp
mov ebp, dword [eax*4 + 0x1008a46c]
mov eax, dword [esp + 0x24]
and eax, 0xff
xor ecx, ebp
mov ebp, dword [eax*4 + 0x1008986c]
xor ecx, ebp
mov ebp, dword [esp + 0x34]
xor ecx, ebx
dec ebp
mov dword [esp + 0x14], ecx
je 0x10053304
jmp 0x100530dc
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor eax, eax
xor ebx, ebx
mov bl, byte [esp + 0x12]
mov al, dh
and edi, 0xff
add esi, 0x20
mov eax, dword [eax*4 + 0x10089c6c]
xor eax, dword [ebx*4 + 0x1008a06c]
mov ebx, ecx
shr ebx, 0x18
shr edx, 0x18
xor eax, dword [ebx*4 + 0x1008a46c]
mov ebx, dword [edi*4 + 0x1008986c]
xor eax, ebx
mov ebx, dword [esi - 8]
xor eax, ebx
mov ebx, dword [edx*4 + 0x1008a46c]
mov dword [esp + 0x28], eax
xor eax, eax
mov al, ch
xor ecx, ecx
mov cl, byte [esp + 0x1a]
mov eax, dword [eax*4 + 0x10089c6c]
mov edi, dword [ecx*4 + 0x1008a06c]
mov ecx, dword [esp + 0x10]
mov edx, ecx
xor eax, edi
and edx, 0xff
xor eax, ebx
mov edi, dword [esi - 0x10]
mov ebx, dword [edx*4 + 0x1008986c]
xor edx, edx
mov dl, byte [esp + 0x16]
xor eax, ebx
xor ebx, ebx
xor eax, edi
mov bl, ch
mov ecx, dword [edx*4 + 0x1008a06c]
mov dword [esp + 0x20], eax
mov edx, dword [ebx*4 + 0x10089c6c]
xor ecx, edx
mov edx, dword [esp + 0x18]
mov edi, edx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x1008a46c]
mov edi, dword [esp + 0x1c]
and edi, 0xff
xor ecx, ebx
mov ebx, dword [edi*4 + 0x1008986c]
mov edi, dword [esi - 4]
xor ecx, ebx
xor ebx, ebx
xor ecx, edi
mov bl, dh
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov cl, byte [esp + 0x1e]
mov edx, dword [ebx*4 + 0x10089c6c]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x1008a06c]
mov bl, byte [esp + 0x22]
xor ecx, edx
mov edx, dword [esp + 0x10]
shr edx, 0x18
mov edi, dword [edx*4 + 0x1008a46c]
mov edx, dword [esp + 0x14]
and edx, 0xff
xor ecx, edi
mov edi, dword [edx*4 + 0x1008986c]
mov edx, dword [esi - 0xc]
xor ecx, edi
mov edi, dword [ebx*4 + 0x1008a06c]
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x2d]
mov dword [esp + 0x24], ecx
mov edx, dword [edx*4 + 0x10089c6c]
xor edx, edi
mov edi, ecx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x1008a46c]
mov edi, dword [esp + 0x28]
xor edx, ebx
and edi, 0xff
mov ebx, dword [edi*4 + 0x1008986c]
mov edi, dword [esi + 8]
xor edx, ebx
xor ebx, ebx
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
xor edx, edx
mov dl, byte [esp + 0x2a]
mov bl, ch
mov ecx, dword [edx*4 + 0x1008a06c]
mov edx, dword [ebx*4 + 0x10089c6c]
xor ecx, edx
mov edx, edi
shr edx, 0x18
and edi, 0xff
mov ebx, dword [edx*4 + 0x1008a46c]
mov edx, eax
and edx, 0xff
xor ecx, ebx
mov ebx, dword [edx*4 + 0x1008986c]
mov edx, dword [esi]
xor ecx, ebx
xor ecx, edx
xor edx, edx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cl, byte [esp + 0x26]
mov dl, ah
shr eax, 0x18
mov ebx, dword [ecx*4 + 0x1008a06c]
mov ecx, dword [edx*4 + 0x10089c6c]
xor ebx, ecx
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr edx, 0x18
xor ebx, dword [edx*4 + 0x1008a46c]
mov edx, dword [edi*4 + 0x1008986c]
mov edi, dword [esi + 0xc]
xor ebx, edx
xor edx, edx
mov dl, byte [esp + 0x2e]
xor ebx, edi
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov bl, ch
mov ecx, dword [edx*4 + 0x1008a06c]
mov edx, dword [ebx*4 + 0x10089c6c]
xor ecx, edx
mov edx, dword [eax*4 + 0x1008a46c]
mov eax, dword [esp + 0x24]
xor ecx, edx
mov edx, dword [esi + 4]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1008986c]
xor ecx, edx
dec ebp
mov dword [esp + 0x14], ecx
jne 0x100530d4
mov edx, dword [esp + 0x1c]
xor eax, eax
xor ebx, ebx
mov al, byte [esp + 0x1a]
mov ebp, dword [esp + 0x10]
shr edx, 0x18
mov bl, byte [eax + str.cw]
xor eax, eax
mov bh, byte [edx + str.cw]
xor edx, edx
mov dl, ch
mov edi, dword [esi + 0x10]
shl ebx, 8
mov al, byte [edx + str.cw]
mov edx, ebp
or ebx, eax
and edx, 0xff
xor eax, eax
add esi, 0x10
mov al, byte [edx + str.cw]
xor edx, edx
mov dl, byte [esp + 0x1e]
shl ebx, 8
or ebx, eax
xor eax, eax
xor ebx, edi
mov edi, dword [esp + 0x38]
shr ebp, 0x18
mov dword [edi], ebx
mov al, byte [edx + str.cw]
mov ah, byte [ebp + str.cw]
xor edx, edx
mov dl, byte [esp + 0x19]
xor ebx, ebx
mov ebp, dword [esi + 4]
mov bl, byte [edx + str.cw]
mov edx, ecx
shl eax, 8
or eax, ebx
and edx, 0xff
xor ebx, ebx
mov bl, byte [edx + str.cw]
xor edx, edx
shl eax, 8
or eax, ebx
xor ebx, ebx
xor eax, ebp
mov dword [edi + 4], eax
xor eax, eax
mov al, byte [esp + 0x12]
shr ecx, 0x18
mov dl, byte [eax + str.cw]
xor eax, eax
mov dh, byte [ecx + str.cw]
mov ecx, dword [esp + 0x1c]
mov al, ch
shl edx, 8
mov bl, byte [eax + str.cw]
mov eax, dword [esp + 0x18]
mov ebp, eax
or edx, ebx
and ebp, 0xff
xor ebx, ebx
shl edx, 8
mov bl, byte [ebp + str.cw]
or edx, ebx
mov ebx, dword [esi + 8]
xor edx, ebx
xor ebx, ebx
mov dword [edi + 8], edx
xor edx, edx
mov dl, byte [esp + 0x16]
shr eax, 0x18
mov bl, byte [edx + str.cw]
xor edx, edx
mov bh, byte [eax + str.cw]
xor eax, eax
mov al, byte [esp + 0x11]
shl ebx, 8
mov dl, byte [eax + str.cw]
or ebx, edx
shl ebx, 8
and ecx, 0xff
xor eax, eax
mov al, byte [ecx + str.cw]
or ebx, eax
mov eax, dword [esi + 0xc]
xor ebx, eax
mov dword [edi + 0xc], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc