Function at 0x422cd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x1c
cmp byte [ecx + 4], 0
mov dword [esp + 8], ecx
jne 0x422cfb
push 0x44a720
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x446330
lea eax, [esp + 0x14]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [esp + 0x20]
movzx edx, byte [eax]
inc eax
push ebx
push ebp
push esi
movzx esi, byte [eax]
inc eax
shl esi, 0x10
inc eax
shl edx, 0x18
or edx, esi
movzx esi, byte [eax - 1]
shl esi, 8
or edx, esi
movzx esi, byte [eax]
inc eax
inc eax
push edi
movzx edi, byte [eax]
or edx, esi
movzx esi, byte [eax - 1]
shl edi, 0x10
inc eax
shl esi, 0x18
or esi, edi
movzx edi, byte [eax]
inc eax
shl edi, 8
or esi, edi
movzx edi, byte [eax]
inc eax
movzx ebx, byte [eax + 1]
or esi, edi
movzx edi, byte [eax]
inc eax
shl ebx, 0x10
inc eax
shl edi, 0x18
or edi, ebx
movzx ebx, byte [eax]
shl ebx, 8
inc eax
xor edx, dword [ecx + 8]
xor esi, dword [ecx + 0xc]
or edi, ebx
movzx ebx, byte [eax]
inc eax
movzx ebp, byte [eax + 1]
or edi, ebx
movzx ebx, byte [eax]
xor edi, dword [ecx + 0x10]
inc eax
shl ebp, 0x10
inc eax
shl ebx, 0x18
or ebx, ebp
movzx ebp, byte [eax]
movzx eax, byte [eax + 1]
shl ebp, 8
or ebp, eax
mov eax, dword [ecx + 0x3d0]
or ebp, ebx
xor ebp, dword [ecx + 0x14]
cmp eax, 1
mov dword [esp + 0x1c], eax
jle 0x422efe
lea ebx, [ecx + 0x30]
dec eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], eax
lea ecx, [ecx]
mov eax, edi
sar eax, 0x10
and eax, 0xff
mov ecx, ebp
sar ecx, 8
and ecx, 0xff
mov dword [esp + 0x14], eax
mov eax, dword [ecx*4 + 0x43b8f8]
mov ecx, dword [esp + 0x14]
xor eax, dword [ecx*4 + 0x43b4f8]
mov ecx, esi
sar ecx, 0x18
and ecx, 0xff
xor eax, dword [ecx*4 + 0x43b0f8]
mov ecx, edx
and ecx, 0xff
xor eax, dword [ecx*4 + 0x43bcf8]
mov ecx, ebp
xor eax, dword [ebx - 4]
sar ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43b4f8]
mov ebx, edi
sar ebx, 0x18
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x43b0f8]
mov ebx, edx
sar ebx, 8
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x43b8f8]
mov ebx, esi
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x43bcf8]
mov ebx, dword [esp + 0x30]
xor ecx, dword [ebx]
mov ebx, esi
mov dword [esp + 0x14], ecx
sar ebx, 8
mov ecx, ebp
sar ecx, 0x18
and ebx, 0xff
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43b0f8]
xor ecx, dword [ebx*4 + 0x43b8f8]
mov ebx, edx
sar ebx, 0x10
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x43b4f8]
mov ebx, edi
sar edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x43b8f8]
sar esi, 0x10
and esi, 0xff
xor edi, dword [esi*4 + 0x43b4f8]
sar edx, 0x18
and edx, 0xff
xor edi, dword [edx*4 + 0x43b0f8]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x43bcf8]
mov ebx, dword [esp + 0x30]
xor ecx, dword [ebx + 4]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x43bcf8]
add ebx, 0x20
xor edi, dword [ebx - 0x28]
sub dword [esp + 0x10], 1
mov edx, edi
mov edi, dword [esp + 0x14]
mov esi, eax
mov ebp, ecx
mov dword [esp + 0x30], ebx
jne 0x422db0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
shl eax, 5
lea ecx, [eax + ecx + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx]
mov ebx, ecx
mov dword [esp + 0x30], ecx
sar ebx, 0x18
sar ecx, 0x10
mov eax, edx
sar eax, 0x18
and eax, 0xff
xor bl, byte [eax + str.cw]
mov eax, dword [esp + 0x34]
mov byte [eax], bl
mov ebx, esi
sar ebx, 0x10
and ebx, 0xff
xor cl, byte [ebx + str.cw]
mov ebx, dword [esp + 0x30]
mov byte [eax + 1], cl
sar ebx, 8
mov ecx, edi
sar ecx, 8
and ecx, 0xff
xor bl, byte [ecx + str.cw]
mov ecx, ebp
and ecx, 0xff
mov byte [eax + 2], bl
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esp + 0x30]
mov ebx, esi
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], ecx
sar ecx, 0x18
sar ebx, 0x18
and ebx, 0xff
xor cl, byte [ebx + str.cw]
mov ebx, dword [esp + 0x30]
mov byte [eax + 4], cl
sar ebx, 0x10
mov ecx, edi
sar ecx, 0x10
and ecx, 0xff
xor bl, byte [ecx + str.cw]
mov ecx, ebp
mov byte [eax + 5], bl
mov ebx, dword [esp + 0x30]
sar ecx, 8
and ecx, 0xff
sar ebx, 8
xor bl, byte [ecx + str.cw]
mov ecx, edx
and ecx, 0xff
mov byte [eax + 6], bl
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esp + 0x30]
mov ebx, edi
mov byte [eax + 7], cl
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x30], ecx
sar ebx, 0x18
sar ecx, 0x18
and ebx, 0xff
xor cl, byte [ebx + str.cw]
mov ebx, dword [esp + 0x30]
mov byte [eax + 8], cl
mov ecx, ebp
sar ecx, 0x10
and ecx, 0xff
sar ebx, 0x10
xor bl, byte [ecx + str.cw]
mov ecx, edx
mov byte [eax + 9], bl
mov ebx, dword [esp + 0x30]
sar ecx, 8
and ecx, 0xff
sar ebx, 8
xor bl, byte [ecx + str.cw]
mov byte [eax + 0xa], bl
mov ecx, esi
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esp + 0x30]
sar ebp, 0x18
mov byte [eax + 0xb], cl
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0xc]
and ebp, 0xff
mov ebx, ecx
sar ebx, 0x18
xor bl, byte [ebp + str.cw]
sar edx, 0x10
mov byte [eax + 0xc], bl
and edx, 0xff
mov ebx, ecx
sar ebx, 0x10
xor bl, byte [edx + str.cw]
sar esi, 8
and esi, 0xff
mov edx, ecx
sar edx, 8
mov byte [eax + 0xd], bl
xor dl, byte [esi + str.cw]
and edi, 0xff
mov byte [eax + 0xe], dl
mov dl, byte [edi + str.cw]
pop edi
pop esi
xor dl, cl
pop ebp
mov byte [eax + 0xf], dl
pop ebx
add esp, 0x1c
ret 8