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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov ebp, 1
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx + 0xf0]
bswap edi
bswap ebx
bswap edx
bswap esi
shr eax, 1
xor edx, dword [ecx + 8]
xor edi, dword [ecx]
xor ebx, dword [ecx + 4]
xor esi, dword [ecx + 0xc]
sub ebp, eax
shl eax, 3
lea ecx, [ecx + 0x2c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov dword [esp], edx
jmp 0x4422f4
mov esi, ecx
inc dword [esp + 0x14]
shr esi, 0xe
and esi, 0x3fc
mov edi, dword [esi + 0x58ff00]
mov esi, ebp
shr esi, 0x18
mov dword [esp], esi
mov esi, edx
shr esi, 0xe
and esi, 0x3fc
xor edi, dword [ebx*4 + 0x58fb00]
mov ebx, dword [esi + 0x58ff00]
mov esi, dword [esp]
mov dword [esp], eax
shr dword [esp], 0x18
xor ebx, dword [esi*4 + 0x58fb00]
mov esi, ebp
shr esi, 0xe
and esi, 0x3fc
mov ebp, dword [esi + 0x58ff00]
mov esi, dword [esp]
xor ebp, dword [esi*4 + 0x58fb00]
movzx esi, cl
mov dword [esp], esi
movzx esi, ch
shr ecx, 0x18
mov dword [esp + 0xc], esi
movzx esi, al
mov dword [esp + 4], esi
movzx esi, ah
shr eax, 0xe
and eax, 0x3fc
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0x58ff00]
movzx eax, dl
mov dword [esp + 0x18], eax
xor esi, dword [ecx*4 + 0x58fb00]
movzx ecx, dh
mov edx, dword [esp + 8]
xor ebp, dword [ecx*4 + 0x590300]
mov ecx, dword [esp + 0x10]
movzx eax, dl
movzx edx, dh
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
xor esi, dword [edx*4 + 0x590300]
xor edi, dword [eax*4 + 0x590300]
mov eax, dword [esp + 0xc]
xor ebx, dword [eax*4 + 0x590300]
mov eax, dword [esp + 0x24]
xor edi, dword [eax*4 + 0x590700]
mov eax, dword [esp + 4]
xor ebx, dword [eax*4 + 0x590700]
mov eax, dword [esp]
xor edi, dword [ecx - 0xc]
xor ebp, dword [eax*4 + 0x590700]
mov eax, dword [esp + 0x18]
xor ebx, dword [ecx - 8]
xor esi, dword [eax*4 + 0x590700]
xor ebp, dword [ecx - 4]
xor esi, dword [ecx]
add ecx, 0x20
mov dword [esp], ebp
mov dword [esp + 0x10], ecx
mov ebp, edi
mov dword [esp + 8], esi
shr esi, 0xe
mov eax, edi
mov edi, ebx
mov dword [esp + 4], ebx
mov ecx, ebp
and esi, 0x3fc
shr eax, 0x18
shr edi, 0xe
mov edx, dword [esi + 0x58ff00]
shr ecx, 0xe
and edi, 0x3fc
and ecx, 0x3fc
mov esi, dword [ecx + 0x58ff00]
mov ecx, dword [esp]
xor edx, dword [eax*4 + 0x58fb00]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x58fb00]
mov eax, dword [edi + 0x58ff00]
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x58fb00]
mov ebx, dword [esp + 8]
movzx edi, bl
mov dword [esp + 0xc], edi
movzx edi, bh
shr ebx, 0x18
mov dword [esp + 0x1c], edi
movzx edi, cl
mov dword [esp + 8], edi
movzx edi, ch
shr ecx, 0xe
and ecx, 0x3fc
mov dword [esp + 0x18], edi
mov ecx, dword [ecx + 0x58ff00]
xor ecx, dword [ebx*4 + 0x58fb00]
mov ebx, ebp
movzx edi, bl
movzx ebp, bh
mov ebx, dword [esp + 4]
mov dword [esp], edi
xor eax, dword [ebp*4 + 0x590300]
movzx edi, bl
movzx ebx, bh
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18]
xor edx, dword [ebx*4 + 0x590300]
mov ebx, dword [esp + 0x1c]
xor esi, dword [ebx*4 + 0x590300]
xor edx, dword [edi*4 + 0x590700]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x10]
xor esi, dword [edi*4 + 0x590700]
mov edi, dword [esp + 0xc]
xor edx, dword [ebx - 0x1c]
xor eax, dword [edi*4 + 0x590700]
mov edi, dword [esp + 4]
xor esi, dword [ebx - 0x18]
mov ebp, esi
xor ecx, dword [edi*4 + 0x590300]
mov esi, dword [esp]
xor eax, dword [ebx - 0x14]
mov dword [esp + 8], ebp
xor ecx, dword [esi*4 + 0x590700]
xor ecx, dword [ebx - 0x10]
mov ebx, edx
shr ebx, 0x18
cmp dword [esp + 0x14], 0
jne 0x4421e0
movzx edi, byte [ebx + 0x590b00]
mov ebx, ecx
mov dword [esp + 0xc], edx
shr ebx, 0x10
movzx esi, bl
mov ebx, ebp
shr ebx, 0x18
mov dword [esp + 0x10], esi
movzx esi, byte [ebx + 0x590b00]
mov ebx, edx
mov edx, ebp
shl edi, 0x18
shr edx, 0x10
shr ebx, 0x10
movzx edx, dl
mov dword [esp + 4], edx
mov edx, dword [esp + 0x10]
mov dword [esp], esi
movzx esi, bl
mov ebx, eax
shr ebx, 0x18
mov dword [esp + 0x14], esi
movzx esi, byte [ebx + 0x590b00]
mov ebx, ebp
mov ebp, dword [esp + 0x20]
movzx edx, byte [edx + 0x590b00]
shl esi, 0x18
shl edx, 0x10
or edx, edi
movzx edi, ah
movzx edi, byte [edi + 0x590b00]
shl edi, 8
or edi, edx
movzx edx, bl
movzx edx, byte [edx + 0x590b00]
or edx, edi
mov edi, dword [esp + 0x44]
mov ebx, edi
mov edi, dword [esp + 0x40]
xor edx, dword [ebx + ebp*4]
bswap edx
mov dword [edi], edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp]
movzx edx, byte [edx + 0x590b00]
shl edi, 0x18
shl edx, 0x10
or edx, edi
movzx edi, ch
movzx edi, byte [edi + 0x590b00]
shl edi, 8
or edi, edx
movzx edx, al
shr eax, 0x10
movzx edx, byte [edx + 0x590b00]
movzx eax, al
movzx eax, byte [eax + 0x590b00]
or edx, edi
mov edi, dword [esp + 0x40]
xor edx, dword [ebx + ebp*4 + 4]
mov ebx, dword [esp + 0xc]
shl eax, 0x10
bswap edx
mov dword [edi + 4], edx
mov edx, dword [esp + 4]
movzx edx, byte [edx + 0x590b00]
shl edx, 0x10
or edx, esi
movzx esi, bh
movzx esi, byte [esi + 0x590b00]
shl esi, 8
or esi, edx
movzx edx, cl
shr ecx, 0x18
movzx edx, byte [edx + 0x590b00]
movzx ecx, byte [ecx + 0x590b00]
or edx, esi
mov esi, dword [esp + 0x44]
shl ecx, 0x18
or eax, ecx
xor edx, dword [esi + ebp*4 + 8]
movzx esi, bl
movzx ebx, byte [esi + 0x590b00]
bswap edx
mov dword [edi + 8], edx
mov edx, dword [esp + 8]
movzx edx, dh
movzx ecx, byte [edx + 0x590b00]
mov edx, dword [esp + 0x44]
shl ecx, 8
or ecx, eax
or ebx, ecx
xor ebx, dword [edx + ebp*4 + 0xc]
bswap ebx
mov dword [edi + 0xc], ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret