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

Disassembly:
sub esp, 0x24
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, dword [ecx + 8]
mov dword [esp + 0xc], edx
push edi
mov ebx, dword [esi]
mov edx, dword [esi + 8]
xor eax, ebx
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
xor ebp, edx
xor ecx, ebx
xor edx, edx
xor ebx, ebx
mov bl, byte [esp + 0x26]
mov dl, ch
xor eax, edi
mov dword [esp + 0x2c], ebp
mov edi, dword [edx*4 + 0x486300]
mov edx, dword [ebx*4 + 0x486700]
xor edi, edx
mov edx, eax
shr edx, 0x18
and ebp, 0xff
add esi, 0x10
mov ebx, dword [edx*4 + 0x486b00]
mov dword [esp + 0x28], eax
mov edx, dword [ebp*4 + 0x485f00]
xor edi, ebx
mov ebx, dword [esi + 8]
xor edi, edx
xor edi, ebx
xor edx, edx
mov dl, byte [esp + 0x2e]
xor ebx, ebx
mov bl, ah
mov dword [esp + 0x30], ecx
mov eax, dword [edx*4 + 0x486700]
mov dword [esp + 0x1c], edi
mov edx, dword [ebx*4 + 0x486300]
xor eax, edx
mov edx, ecx
shr edx, 0x18
and ecx, 0xff
mov ebx, dword [edx*4 + 0x486b00]
mov edx, dword [esp + 0x24]
xor eax, ebx
mov ebx, edx
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x485f00]
mov ebx, dword [esi]
xor eax, ebp
xor eax, ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [esp + 0x2a]
mov bl, dh
mov edx, dword [eax*4 + 0x486700]
mov eax, dword [ebx*4 + 0x486300]
xor edx, eax
mov eax, dword [esp + 0x2c]
mov ebx, eax
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x486b00]
mov ebx, dword [ecx*4 + 0x485f00]
mov ecx, dword [esi + 0xc]
xor edx, ebp
xor edx, ebx
xor edx, ecx
xor ecx, ecx
mov cl, byte [esp + 0x32]
xor ebx, ebx
mov dword [esp + 0x20], edx
mov bl, ah
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx*4 + 0x486700]
mov ebp, dword [ebx*4 + 0x486300]
mov ebx, dword [esi + 4]
shr eax, 0x18
xor ecx, ebp
mov ebp, dword [eax*4 + 0x486b00]
mov eax, dword [esp + 0x28]
and eax, 0xff
xor ecx, ebp
mov ebp, dword [eax*4 + 0x485f00]
xor ecx, ebp
mov ebp, dword [esp + 0x3c]
xor ecx, ebx
dec ebp
mov dword [esp + 0x18], ecx
je 0x45c29b
jmp 0x45c073
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
mov bl, byte [esp + 0x16]
mov al, dh
and edi, 0xff
add esi, 0x20
mov eax, dword [eax*4 + 0x486300]
xor eax, dword [ebx*4 + 0x486700]
mov ebx, ecx
shr ebx, 0x18
shr edx, 0x18
xor eax, dword [ebx*4 + 0x486b00]
mov ebx, dword [edi*4 + 0x485f00]
xor eax, ebx
mov ebx, dword [esi - 8]
xor eax, ebx
mov ebx, dword [edx*4 + 0x486b00]
mov dword [esp + 0x2c], eax
xor eax, eax
mov al, ch
xor ecx, ecx
mov cl, byte [esp + 0x1e]
mov eax, dword [eax*4 + 0x486300]
mov edi, dword [ecx*4 + 0x486700]
mov ecx, dword [esp + 0x14]
mov edx, ecx
xor eax, edi
and edx, 0xff
xor eax, ebx
mov edi, dword [esi - 0x10]
mov ebx, dword [edx*4 + 0x485f00]
xor edx, edx
mov dl, byte [esp + 0x1a]
xor eax, ebx
xor ebx, ebx
xor eax, edi
mov bl, ch
mov ecx, dword [edx*4 + 0x486700]
mov dword [esp + 0x24], eax
mov edx, dword [ebx*4 + 0x486300]
xor ecx, edx
mov edx, dword [esp + 0x1c]
mov edi, edx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x486b00]
mov edi, dword [esp + 0x20]
and edi, 0xff
xor ecx, ebx
mov ebx, dword [edi*4 + 0x485f00]
mov edi, dword [esi - 4]
xor ecx, ebx
xor ebx, ebx
xor ecx, edi
mov bl, dh
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov cl, byte [esp + 0x22]
mov edx, dword [ebx*4 + 0x486300]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x486700]
mov bl, byte [esp + 0x26]
xor ecx, edx
mov edx, dword [esp + 0x14]
shr edx, 0x18
mov edi, dword [edx*4 + 0x486b00]
mov edx, dword [esp + 0x18]
and edx, 0xff
xor ecx, edi
mov edi, dword [edx*4 + 0x485f00]
mov edx, dword [esi - 0xc]
xor ecx, edi
mov edi, dword [ebx*4 + 0x486700]
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x31]
mov dword [esp + 0x28], ecx
mov edx, dword [edx*4 + 0x486300]
xor edx, edi
mov edi, ecx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x486b00]
mov edi, dword [esp + 0x2c]
xor edx, ebx
and edi, 0xff
mov ebx, dword [edi*4 + 0x485f00]
mov edi, dword [esi + 8]
xor edx, ebx
xor ebx, ebx
xor edx, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
xor edx, edx
mov dl, byte [esp + 0x2e]
mov bl, ch
mov ecx, dword [edx*4 + 0x486700]
mov edx, dword [ebx*4 + 0x486300]
xor ecx, edx
mov edx, edi
shr edx, 0x18
and edi, 0xff
mov ebx, dword [edx*4 + 0x486b00]
mov edx, eax
and edx, 0xff
xor ecx, ebx
mov ebx, dword [edx*4 + 0x485f00]
mov edx, dword [esi]
xor ecx, ebx
xor ecx, edx
xor edx, edx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cl, byte [esp + 0x2a]
mov dl, ah
shr eax, 0x18
mov ebx, dword [ecx*4 + 0x486700]
mov ecx, dword [edx*4 + 0x486300]
xor ebx, ecx
mov ecx, dword [esp + 0x2c]
mov edx, ecx
shr edx, 0x18
xor ebx, dword [edx*4 + 0x486b00]
mov edx, dword [edi*4 + 0x485f00]
mov edi, dword [esi + 0xc]
xor ebx, edx
xor edx, edx
mov dl, byte [esp + 0x32]
xor ebx, edi
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov bl, ch
mov ecx, dword [edx*4 + 0x486700]
mov edx, dword [ebx*4 + 0x486300]
xor ecx, edx
mov edx, dword [eax*4 + 0x486b00]
mov eax, dword [esp + 0x28]
xor ecx, edx
mov edx, dword [esi + 4]
and eax, 0xff
xor ecx, dword [eax*4 + 0x485f00]
xor ecx, edx
dec ebp
mov dword [esp + 0x18], ecx
jne 0x45c06b
mov edx, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
mov al, byte [esp + 0x1e]
mov ebp, dword [esp + 0x14]
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 + 0x22]
shl ebx, 8
or ebx, eax
xor eax, eax
xor ebx, edi
mov edi, dword [esp + 0x10]
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 + 0x1d]
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 + 0x16]
shr ecx, 0x18
mov dl, byte [eax + str.cw]
xor eax, eax
mov dh, byte [ecx + str.cw]
mov ecx, dword [esp + 0x20]
mov al, ch
shl edx, 8
mov bl, byte [eax + str.cw]
mov eax, dword [esp + 0x1c]
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 + 0x1a]
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 + 0x15]
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, 0x24
ret 8