Function at 0x401080
Capabilities:
Encrypt data using aes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, edi
xor ecx, ecx
cdq
and edx, 0x1f
lea ebp, [esi + 4]
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 5
add eax, 6
mov dword [esi + 0xf0], eax
mov cl, byte [edx + 1]
xor eax, eax
mov ah, byte [edx]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 2]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 3]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov dword [esi], eax
mov cl, byte [edx + 5]
xor eax, eax
mov ah, byte [edx + 4]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 6]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 7]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov dword [ebp], eax
mov cl, byte [edx + 9]
xor eax, eax
mov ah, byte [edx + 8]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0xa]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0xb]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov dword [esi + 8], eax
mov cl, byte [edx + 0xd]
xor eax, eax
mov ah, byte [edx + 0xc]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0xe]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0xf]
shl eax, 8
xor eax, ecx
cmp edi, 0x80
mov dword [esi + 0xc], eax
jne 0x4011d2
mov ecx, ebp
mov edi, 0x416918
mov esi, dword [ecx + 8]
xor eax, eax
mov edx, esi
xor ebx, ebx
mov dword [esp + 0x18], edx
mov al, dh
mov bl, byte [esp + 0x1a]
mov ebp, dword [edi]
mov eax, dword [eax*4 + str.ccccwwww]
add edi, 4
mov ebx, dword [ebx*4 + str.ccccwwww]
and eax, 0xff0000
and ebx, 0xff000000
xor eax, ebx
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and ebx, 0xff
xor eax, ebx
and edx, 0xff00
xor eax, edx
mov edx, dword [ecx - 4]
xor eax, edx
mov edx, dword [ecx]
xor eax, ebp
mov dword [ecx + 0xc], eax
xor edx, eax
mov eax, dword [ecx + 4]
mov dword [ecx + 0x10], edx
xor eax, edx
mov dword [ecx + 0x14], eax
xor eax, esi
cmp edi, 0x416940
mov dword [ecx + 0x18], eax
je 0x401426
add ecx, 0x10
jmp 0x401144
xor eax, eax
xor ecx, ecx
mov ah, byte [edx + 0x10]
mov cl, byte [edx + 0x11]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x12]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x13]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov dword [esi + 0x10], eax
mov cl, byte [edx + 0x15]
xor eax, eax
mov ah, byte [edx + 0x14]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x16]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x17]
shl eax, 8
xor eax, ecx
cmp edi, 0xc0
mov dword [esi + 0x14], eax
jne 0x4012cd
mov ecx, ebp
mov esi, 0x416918
mov edx, dword [ecx + 0x10]
xor eax, eax
mov dword [esp + 0x18], edx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov al, dh
add esi, 4
mov eax, dword [eax*4 + str.ccccwwww]
mov edi, dword [ebx*4 + str.ccccwwww]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
shr edi, 0x18
and edx, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and edi, 0xff
xor eax, edi
mov edi, dword [ecx - 4]
and edx, 0xff00
xor eax, edx
mov edx, dword [esi - 4]
xor eax, edi
xor eax, edx
mov edx, dword [ecx]
mov dword [ecx + 0x14], eax
xor edx, eax
mov eax, dword [ecx + 4]
mov dword [ecx + 0x18], edx
xor eax, edx
mov edx, dword [ecx + 8]
xor edx, eax
cmp esi, 0x416938
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], edx
je 0x401426
mov eax, dword [ecx + 0xc]
mov ebx, edx
mov edx, dword [ecx + 0x10]
xor eax, ebx
xor edx, eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], edx
add ecx, 0x18
jmp 0x40122b
xor eax, eax
xor ecx, ecx
mov ah, byte [edx + 0x18]
mov cl, byte [edx + 0x19]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x1a]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x1b]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov dword [esi + 0x18], eax
mov cl, byte [edx + 0x1d]
xor eax, eax
mov ah, byte [edx + 0x1c]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x1e]
shl eax, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x1f]
shl eax, 8
xor eax, ecx
cmp edi, 0x100
mov dword [esi + 0x1c], eax
jne 0x401426
mov eax, ebp
mov edi, 0x416918
mov edx, dword [eax + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], edx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov cl, dh
mov ebp, dword [eax]
add edi, 4
mov ecx, dword [ecx*4 + str.ccccwwww]
mov esi, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff0000
and esi, 0xff000000
xor ecx, esi
mov esi, edx
shr esi, 0x18
and edx, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and esi, 0xff
xor ecx, esi
mov esi, dword [eax - 4]
and edx, 0xff00
xor ecx, edx
mov edx, dword [edi - 4]
xor ecx, esi
xor ecx, edx
mov edx, dword [eax + 4]
mov dword [eax + 0x1c], ecx
xor ecx, ebp
mov dword [eax + 0x20], ecx
xor edx, ecx
mov ecx, dword [eax + 8]
mov dword [eax + 0x24], edx
xor ecx, edx
cmp edi, 0x416934
mov dword [eax + 0x28], ecx
je 0x401426
mov dword [esp + 0x18], ecx
xor edx, edx
mov dl, byte [esp + 0x1a]
mov ebp, dword [eax + 0xc]
mov esi, dword [edx*4 + str.ccccwwww]
xor edx, edx
mov dl, ch
and esi, 0xff0000
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff00
xor esi, edx
mov edx, ecx
shr edx, 0x18
and ecx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff000000
xor esi, edx
mov edx, dword [eax + 0x10]
and ecx, 0xff
xor esi, ecx
mov ecx, dword [eax + 0x14]
xor esi, ebp
xor edx, esi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], edx
xor ecx, edx
mov edx, dword [eax + 0x18]
mov dword [eax + 0x34], ecx
xor ecx, edx
mov dword [eax + 0x38], ecx
add eax, 0x20
jmp 0x401326
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret