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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x4211b9
jmp 0x42170e
mov edx, dword [ebp - 0x30]
add edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
or ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
xor ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x18
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x10
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 8
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
or edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
xor edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], 1
jmp 0x42136b
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x3d0]
jge 0x4214eb
mov edx, dword [ebp - 0x2c]
shl edx, 5
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x28]
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x14]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x65cc20]
xor ecx, dword [eax*4 + 0x65d020]
mov edx, dword [ebp - 8]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x65d420]
mov eax, dword [ebp - 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x65d820]
mov edx, dword [ebp - 0x10]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x65cc20]
xor edx, dword [ecx*4 + 0x65d020]
mov eax, dword [ebp - 0xc]
sar eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x65d420]
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x65d820]
mov eax, dword [ebp - 0x10]
xor edx, dword [eax + 4]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0xc]
sar edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x65cc20]
xor eax, dword [edx*4 + 0x65d020]
mov ecx, dword [ebp - 0x28]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x65d420]
mov edx, dword [ebp - 0x14]
and edx, 0xff
xor eax, dword [edx*4 + 0x65d820]
mov ecx, dword [ebp - 0x10]
xor eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x28]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x65cc20]
xor ecx, dword [eax*4 + 0x65d020]
mov edx, dword [ebp - 0x14]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x65d420]
mov eax, dword [ebp - 8]
and eax, 0xff
xor ecx, dword [eax*4 + 0x65d820]
mov edx, dword [ebp - 0x10]
xor ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x421362
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x3d0]
shl edx, 5
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x28]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x18]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0x14]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 1], al
mov eax, dword [ebp - 8]
sar eax, 8
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x18]
sar edx, 8
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 2], cl
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov byte [eax + 3], dl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x18]
sar edx, 0x18
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 4], cl
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x18]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 5], dl
mov edx, dword [ebp - 0xc]
sar edx, 8
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 6], al
mov eax, dword [ebp - 0x28]
and eax, 0xff
movsx ecx, byte [eax + str.cw]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov byte [edx + 7], cl
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
sar edx, 0x18
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x18
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 8], al
mov eax, dword [ebp - 0xc]
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x18]
sar edx, 0x10
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 9], cl
mov ecx, dword [ebp - 0x28]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x18]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
movsx eax, byte [edx + str.cw]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xb], al
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x18]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xc], dl
mov edx, dword [ebp - 0x28]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xd], al
mov eax, dword [ebp - 0x14]
sar eax, 8
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x18]
sar edx, 8
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xe], cl
mov ecx, dword [ebp - 8]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xf], dl
mov esp, ebp
pop ebp
ret 8