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

Disassembly:
sub esp, 0x28
mov dl, byte [ecx]
push ebx
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
mov byte [eax + 1], bl
movzx ebx, byte [ecx + 2]
mov byte [eax + 2], bl
movzx ebx, byte [ecx + 3]
mov byte [eax + 3], bl
movzx ebx, byte [ecx + 4]
mov byte [eax + 4], bl
movzx ebx, byte [ecx + 5]
mov byte [eax + 5], bl
movzx ebx, byte [ecx + 6]
lea edx, [eax + 1]
mov byte [eax + 6], bl
movzx ebx, byte [ecx + 7]
push ebp
push esi
lea esi, [eax + 2]
mov byte [eax + 7], bl
movzx ebx, byte [ecx + 8]
push edi
lea edi, [eax + 3]
mov byte [eax + 8], bl
movzx ebx, byte [ecx + 9]
mov byte [eax + 9], bl
movzx ebx, byte [ecx + 0xa]
mov byte [eax + 0xa], bl
movzx ebx, byte [ecx + 0xb]
mov byte [eax + 0xb], bl
movzx ebx, byte [ecx + 0xc]
mov byte [eax + 0xc], bl
movzx ebx, byte [ecx + 0xd]
mov byte [eax + 0xd], bl
movzx ebx, byte [ecx + 0xe]
mov byte [eax + 0xe], bl
movzx ebx, byte [ecx + 0xf]
mov byte [eax + 0xf], bl
movzx ebx, byte [ecx + 0x10]
mov byte [eax + 0x10], bl
movzx ebx, byte [ecx + 0x11]
mov byte [eax + 0x11], bl
movzx ebx, byte [ecx + 0x12]
mov byte [eax + 0x12], bl
movzx ebx, byte [ecx + 0x13]
mov byte [eax + 0x13], bl
movzx ebx, byte [ecx + 0x14]
mov byte [eax + 0x14], bl
movzx ebx, byte [ecx + 0x15]
mov byte [eax + 0x15], bl
movzx ebx, byte [ecx + 0x16]
mov byte [eax + 0x16], bl
movzx ebx, byte [ecx + 0x17]
mov byte [eax + 0x17], bl
movzx ebx, byte [ecx + 0x18]
mov byte [eax + 0x18], bl
movzx ebx, byte [ecx + 0x19]
mov byte [eax + 0x19], bl
movzx ebx, byte [ecx + 0x1a]
mov byte [eax + 0x1a], bl
movzx ebx, byte [ecx + 0x1b]
mov byte [eax + 0x1b], bl
movzx ebx, byte [ecx + 0x1c]
mov byte [eax + 0x1c], bl
movzx ebx, byte [ecx + 0x1d]
mov byte [eax + 0x1d], bl
movzx ebx, byte [ecx + 0x1e]
mov byte [eax + 0x1e], bl
mov cl, byte [ecx + 0x1f]
mov ebx, eax
sub ebx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
lea ebx, [eax + 2]
mov byte [eax + 0x1f], cl
add edi, 4
mov dword [esp + 0x18], 0xa
lea ebp, [eax + 0x24]
lea ecx, [edx + 0x1c]
sub ebx, edx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
sub ebx, edx
mov dword [esp + 0x24], ebx
lea edx, [eax + 2]
mov ebx, eax
sub ebx, edx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x14]
sub ebx, edx
sub eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
lea ecx, [ecx]
movzx ebx, byte [ecx]
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx]
mov byte [esp + 0x15], bl
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + ecx]
mov byte [esp + 0x16], bl
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + ecx]
mov byte [esp + 0x17], bl
lea ebx, [edx - 2]
mov dword [esp + 0x18], ebx
and ebx, 7
mov dword [esp + 0x28], ebx
jne 0x4059a6
movzx ebx, byte [esp + 0x16]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x13], al
movzx eax, byte [esp + 0x15]
mov al, byte [eax + str.cw]
mov byte [esp + 0x15], bl
movzx ebx, byte [esp + 0x17]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x16], bl
movzx ebx, byte [esp + 0x13]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x17], bl
mov ebx, dword [esp + 0x18]
shr ebx, 3
xor al, byte [ebx + 0x4291c8]
mov ebx, dword [esp + 0x28]
cmp ebx, 4
jne 0x4059e4
movzx ebx, byte [esp + 0x15]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x15], bl
movzx ebx, byte [esp + 0x16]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x16], bl
movzx ebx, byte [esp + 0x17]
movzx ebx, byte [ebx + str.cw]
movzx eax, al
mov al, byte [eax + str.cw]
mov byte [esp + 0x17], bl
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + esi]
xor bl, al
mov byte [ebp - 4], bl
movzx eax, byte [ecx - 0x1c]
xor al, byte [esp + 0x15]
mov byte [ecx + 4], al
movzx eax, byte [esi]
xor al, byte [esp + 0x16]
mov byte [esi + 0x20], al
mov eax, dword [esp + 0x30]
movzx eax, byte [eax + esi]
xor al, byte [esp + 0x17]
mov byte [edi + 0x1c], al
mov al, bl
movzx ebx, byte [ecx + 4]
mov byte [esp + 0x15], bl
movzx ebx, byte [esi + 0x20]
mov byte [esp + 0x16], bl
movzx ebx, byte [edi + 0x1c]
mov byte [esp + 0x17], bl
lea ebx, [edx - 1]
mov dword [esp + 0x28], ebx
and ebx, 7
mov dword [esp + 0x18], ebx
jne 0x405a8f
movzx ebx, byte [esp + 0x16]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x13], al
movzx eax, byte [esp + 0x15]
mov al, byte [eax + str.cw]
mov byte [esp + 0x15], bl
movzx ebx, byte [esp + 0x17]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x16], bl
movzx ebx, byte [esp + 0x13]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x17], bl
mov ebx, dword [esp + 0x28]
shr ebx, 3
xor al, byte [ebx + 0x4291c8]
mov ebx, dword [esp + 0x18]
cmp ebx, 4
jne 0x405acd
movzx ebx, byte [esp + 0x15]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x15], bl
movzx ebx, byte [esp + 0x16]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x16], bl
movzx ebx, byte [esp + 0x17]
movzx ebx, byte [ebx + str.cw]
movzx eax, al
mov al, byte [eax + str.cw]
mov byte [esp + 0x17], bl
mov ebx, dword [esp + 0x34]
movzx ebx, byte [edi + ebx]
xor bl, al
mov byte [ebp], bl
movzx eax, byte [ecx - 0x18]
xor al, byte [esp + 0x15]
mov byte [ecx + 8], al
movzx eax, byte [esi + 4]
xor al, byte [esp + 0x16]
mov byte [esi + 0x24], al
mov al, byte [edi]
xor al, byte [esp + 0x17]
mov byte [edi + 0x20], al
movzx ebx, byte [ebp]
mov byte [esp + 0x14], bl
movzx ebx, byte [ecx + 8]
mov byte [esp + 0x17], al
mov byte [esp + 0x15], bl
movzx ebx, byte [esi + 0x24]
mov eax, edx
and eax, 7
mov byte [esp + 0x16], bl
mov dword [esp + 0x28], eax
jne 0x405b75
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x13], al
movzx eax, byte [esp + 0x15]
mov bl, byte [eax + str.cw]
movzx eax, byte [esp + 0x16]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x15], al
movzx eax, byte [esp + 0x17]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x13]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x17], al
mov eax, edx
shr eax, 3
xor bl, byte [eax + 0x4291c8]
mov eax, dword [esp + 0x28]
jmp 0x405b79
mov bl, byte [esp + 0x14]
cmp eax, 4
jne 0x405bb7
movzx eax, bl
mov bl, byte [eax + str.cw]
movzx eax, byte [esp + 0x15]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x15], al
movzx eax, byte [esp + 0x16]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x17]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x17], al
movzx eax, byte [ebp - 0x1c]
xor al, bl
mov byte [ebp + 4], al
movzx eax, byte [ecx - 0x14]
xor al, byte [esp + 0x15]
mov byte [ecx + 0xc], al
movzx eax, byte [esi + 8]
xor al, byte [esp + 0x16]
mov byte [esi + 0x28], al
mov al, byte [edi + 4]
xor al, byte [esp + 0x17]
mov byte [edi + 0x24], al
movzx ebx, byte [ebp + 4]
mov byte [esp + 0x14], bl
movzx ebx, byte [ecx + 0xc]
mov byte [esp + 0x15], bl
movzx ebx, byte [esi + 0x28]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
lea ebx, [edx + 1]
mov eax, ebx
and eax, 7
mov dword [esp + 0x28], eax
jne 0x405c65
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x13], al
movzx eax, byte [esp + 0x15]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x16]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x15], al
movzx eax, byte [esp + 0x17]
movzx eax, byte [eax + str.cw]
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x13]
movzx eax, byte [eax + str.cw]
shr ebx, 3
mov byte [esp + 0x17], al
movzx eax, byte [ebx + 0x4291c8]
xor byte [esp + 0x14], al
mov eax, dword [esp + 0x28]
cmp eax, 4
jne 0x405ca7
movzx ebx, byte [esp + 0x15]
movzx ebx, byte [ebx + str.cw]
movzx eax, byte [esp + 0x14]
mov al, byte [eax + str.cw]
mov byte [esp + 0x15], bl
movzx ebx, byte [esp + 0x16]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x16], bl
movzx ebx, byte [esp + 0x17]
movzx ebx, byte [ebx + str.cw]
mov byte [esp + 0x17], bl
jmp 0x405cab
mov al, byte [esp + 0x14]
mov bl, byte [ebp - 0x18]
xor bl, al
mov byte [ebp + 8], bl
movzx eax, byte [ecx - 0x10]
xor al, byte [esp + 0x15]
add edx, 4
mov byte [ecx + 0x10], al
movzx eax, byte [esi + 0xc]
xor al, byte [esp + 0x16]
add ecx, 0x10
mov byte [esi + 0x2c], al
movzx eax, byte [edi + 8]
xor al, byte [esp + 0x17]
add esi, 0x10
mov byte [edi + 0x28], al
lea eax, [edx - 2]
add edi, 0x10
add ebp, 0x10
cmp eax, 0x3c
jb 0x405920
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret