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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [ecx + 4], 0
mov dword [ebp - 0x1c], ecx
jne 0x405ce3
push 0x442098
lea ecx, [ebp - 0x28]
call fcn.00413299
push 0x43ced4
lea eax, [ebp - 0x28]
push eax
call fcn.00413452
movzx eax, byte [edx]
shl eax, 0x18
push ebx
push esi
movzx esi, byte [edx + 1]
shl esi, 0x10
or eax, esi
movzx esi, byte [edx + 2]
shl esi, 8
or eax, esi
movzx esi, byte [edx + 3]
or eax, esi
xor eax, dword [ecx + 0x1e8]
movzx ebx, byte [edx + 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 5]
shl eax, 0x10
push edi
movzx edi, byte [edx + 4]
shl edi, 0x18
or edi, eax
movzx eax, byte [edx + 6]
shl eax, 8
or edi, eax
movzx eax, byte [edx + 7]
movzx esi, byte [edx + 0xd]
or edi, eax
movzx eax, byte [edx + 9]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [edx + 0xa]
xor edi, dword [ecx + 0x1ec]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 0xb]
or ebx, eax
movzx eax, byte [edx + 0xc]
xor ebx, dword [ecx + 0x1f0]
shl esi, 0x10
shl eax, 0x18
or eax, esi
movzx esi, byte [edx + 0xe]
movzx edx, byte [edx + 0xf]
shl esi, 8
or esi, edx
mov edx, dword [ecx + 0x3d0]
or esi, eax
xor esi, dword [ecx + 0x1f4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], esi
mov eax, 0xff
cmp edx, 1
jle 0x405eb5
add ecx, 0x210
dec edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
jmp 0x405da8
mov esi, dword [ebp - 8]
sar esi, 8
and esi, eax
mov edx, dword [esi*4 + 0x4363a8]
mov ecx, edi
sar ecx, 0x18
and ecx, eax
xor edx, dword [ecx*4 + 0x435ba8]
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, eax
xor edx, dword [ecx*4 + 0x435fa8]
mov ecx, ebx
and ecx, eax
xor edx, dword [ecx*4 + 0x4367a8]
mov ecx, dword [ebp - 4]
xor edx, dword [ecx - 4]
mov ecx, ebx
sar ecx, 0x18
and ecx, eax
mov ecx, dword [ecx*4 + 0x435ba8]
mov esi, edi
sar esi, 0x10
and esi, eax
xor ecx, dword [esi*4 + 0x435fa8]
mov esi, dword [ebp - 0xc]
sar esi, 8
and esi, eax
xor ecx, dword [esi*4 + 0x4363a8]
mov esi, dword [ebp - 8]
and esi, eax
xor ecx, dword [esi*4 + 0x4367a8]
mov esi, dword [ebp - 4]
xor ecx, dword [esi]
mov esi, ebx
sar esi, 0x10
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
and esi, eax
sar ecx, 0x18
and ecx, eax
mov ecx, dword [ecx*4 + 0x435ba8]
xor ecx, dword [esi*4 + 0x435fa8]
mov esi, edi
sar esi, 8
and esi, eax
xor ecx, dword [esi*4 + 0x4363a8]
mov esi, dword [ebp - 0xc]
and esi, eax
xor ecx, dword [esi*4 + 0x4367a8]
mov esi, dword [ebp - 4]
xor ecx, dword [esi + 4]
mov esi, dword [ebp - 8]
sar esi, 0x10
and esi, eax
mov esi, dword [esi*4 + 0x435fa8]
sar ebx, 8
and ebx, eax
xor esi, dword [ebx*4 + 0x4363a8]
mov ebx, dword [ebp - 0xc]
sar ebx, 0x18
and ebx, eax
xor esi, dword [ebx*4 + 0x435ba8]
mov ebx, dword [ebp - 0x14]
and edi, eax
xor esi, dword [edi*4 + 0x4367a8]
mov edi, dword [ebp - 4]
xor esi, dword [edi - 8]
add dword [ebp - 4], 0x20
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov edi, edx
mov dword [ebp - 8], ecx
jne 0x405da5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
shl edx, 5
lea ecx, [edx + ecx + 0x1e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
sar edx, 0x18
and edx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
sar ecx, 0x10
sar ebx, 0x18
xor bl, byte [edx + 0x434aa8]
mov edx, dword [ebp - 8]
sar edx, 0x10
and edx, eax
mov byte [esi], bl
xor cl, byte [edx + 0x434aa8]
mov ebx, dword [ebp - 0x1c]
mov byte [esi + 1], cl
mov edx, dword [ebp - 4]
sar edx, 8
mov ecx, ebx
sar ecx, 8
and ecx, eax
xor dl, byte [ecx + 0x434aa8]
mov ecx, edi
and ecx, eax
mov byte [esi + 2], dl
mov cl, byte [ecx + 0x434aa8]
xor cl, byte [ebp - 4]
mov edx, edi
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
mov dword [ebp - 4], ecx
sar ecx, 0x18
sar edx, 0x18
and edx, eax
xor cl, byte [edx + 0x434aa8]
mov edx, dword [ebp - 4]
mov byte [esi + 4], cl
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, eax
sar edx, 0x10
xor dl, byte [ecx + 0x434aa8]
mov ecx, dword [ebp - 8]
sar ecx, 8
mov byte [esi + 5], dl
mov edx, dword [ebp - 4]
and ecx, eax
sar edx, 8
xor dl, byte [ecx + 0x434aa8]
mov ecx, ebx
and ecx, eax
mov byte [esi + 6], dl
mov cl, byte [ecx + 0x434aa8]
xor cl, byte [ebp - 4]
mov edx, ebx
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 4], ecx
sar edx, 0x18
sar ecx, 0x18
and edx, eax
xor cl, byte [edx + 0x434aa8]
mov edx, dword [ebp - 4]
mov byte [esi + 8], cl
mov ecx, edi
sar ecx, 0x10
and ecx, eax
sar edx, 0x10
xor dl, byte [ecx + 0x434aa8]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
mov byte [esi + 9], dl
mov edx, dword [ebp - 4]
and ecx, eax
sar edx, 8
xor dl, byte [ecx + 0x434aa8]
mov ecx, dword [ebp - 8]
and ecx, eax
mov byte [esi + 0xa], dl
mov cl, byte [ecx + 0x434aa8]
xor cl, byte [ebp - 4]
sar ebx, 0x10
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 8]
sar ecx, 0x18
and ecx, eax
mov dword [ebp - 4], edx
sar edx, 0x18
xor dl, byte [ecx + 0x434aa8]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
and ebx, eax
mov byte [esi + 0xc], dl
xor cl, byte [ebx + 0x434aa8]
sar edi, 8
mov byte [esi + 0xd], cl
mov ecx, dword [ebp - 4]
and edi, eax
sar ecx, 8
xor cl, byte [edi + 0x434aa8]
pop edi
mov byte [esi + 0xe], cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
mov al, byte [ecx + 0x434aa8]
xor al, byte [ebp - 4]
mov byte [esi + 0xf], al
pop esi
pop ebx
leave
ret 4