Function at 0x402016
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add eax, 4
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, 5
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 6
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 7
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
add eax, 8
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, 9
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xa
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xb
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, 0xc
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xd
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xe
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xf
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, 8
mov eax, dword [eax]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov eax, dword [eax]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1e0]
shr eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 0x10]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0x14
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 8]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 0xc]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0x1c
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0x28], eax
add dword [ebp - 0x14], 0x20
sub dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jne 0x4022ad
jmp 0x4023e3
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 0x20]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 0x24]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 0x28]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 0x24]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 0x28]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 0x28]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 0x1c]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 0x20]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 8
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
shr eax, 0x18
mov edx, dword [eax*4 + 0x454060]
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x454c60]
xor edx, eax
mov eax, dword [ebp - 0x20]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455060]
xor edx, eax
mov eax, dword [ebp - 0x24]
movzx eax, al
mov eax, dword [eax*4 + 0x455460]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0x10], eax
jmp 0x402166
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov edx, dword [eax*4 + 0x456460]
mov eax, dword [ebp - 0x20]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x456060]
xor edx, eax
mov eax, dword [ebp - 0x24]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455c60]
xor edx, eax
mov eax, dword [ebp - 0x28]
movzx eax, al
mov eax, dword [eax*4 + str.cwko0]
xor edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
shr eax, 0x18
mov edx, dword [eax*4 + 0x456460]
mov eax, dword [ebp - 0x24]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x456060]
xor edx, eax
mov eax, dword [ebp - 0x28]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455c60]
xor edx, eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
mov eax, dword [eax*4 + str.cwko0]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
shr eax, 0x18
mov edx, dword [eax*4 + 0x456460]
mov eax, dword [ebp - 0x28]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x456060]
xor edx, eax
mov eax, dword [ebp - 0x1c]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455c60]
xor edx, eax
mov eax, dword [ebp - 0x20]
movzx eax, al
mov eax, dword [eax*4 + str.cwko0]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 8
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
shr eax, 0x18
mov edx, dword [eax*4 + 0x456460]
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x456060]
xor edx, eax
mov eax, dword [ebp - 0x20]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x455c60]
xor edx, eax
mov eax, dword [ebp - 0x24]
movzx eax, al
mov eax, dword [eax*4 + str.cwko0]
xor edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0x10]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov eax, dword [ebp - 4]
shr eax, 0x10
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 2]
mov eax, dword [ebp - 4]
shr eax, 8
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 3]
mov eax, dword [ebp - 4]
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 4]
mov eax, dword [ebp - 8]
shr eax, 0x18
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 5]
mov eax, dword [ebp - 8]
shr eax, 0x10
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 6]
mov eax, dword [ebp - 8]
shr eax, 8
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 7]
mov eax, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 8]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 9]
mov eax, dword [ebp - 0xc]
shr eax, 0x10
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0xa]
mov eax, dword [ebp - 0xc]
shr eax, 8
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0xb]
mov eax, dword [ebp - 0xc]
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0xd]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0xe]
mov eax, dword [ebp - 0x10]
shr eax, 8
mov byte [edx], al
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0xf]
mov eax, dword [ebp - 0x10]
mov byte [edx], al
leave
ret