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

Disassembly:
mov eax, 0x429335
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edi
cmp byte [edi + 4], bl
jne 0x402637
mov al, byte [ebp + 0xb]
mov esi, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x54]
push 0x435260
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
xor ebx, ebx
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
shl edx, 0x18
inc eax
shl ecx, 0x10
or edx, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax]
or edx, ecx
inc eax
movzx ecx, byte [eax]
movzx esi, byte [eax + 1]
or edx, ecx
inc eax
xor edx, dword [edi + 0x38]
movzx ecx, byte [eax + 1]
shl esi, 0x18
inc eax
mov dword [ebp - 0x1c], edx
shl ecx, 0x10
or esi, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax]
or esi, ecx
inc eax
movzx ecx, byte [eax]
or esi, ecx
inc eax
xor esi, dword [edi + 0x3c]
movzx ecx, byte [eax]
shl ecx, 0x18
inc eax
mov dword [ebp - 0x18], esi
movzx esi, byte [eax]
mov bh, byte [eax + 1]
shl esi, 0x10
or ecx, esi
inc eax
or ecx, ebx
inc eax
movzx esi, byte [eax]
or ecx, esi
inc eax
xor ecx, dword [edi + 0x40]
movzx esi, byte [eax]
movzx ebx, byte [eax + 1]
shl esi, 0x18
inc eax
mov dword [ebp - 0x20], ecx
shl ebx, 0x10
or esi, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov bl, byte [eax + 1]
mov eax, dword [edi + 0x3d8]
or ebx, esi
mov dword [ebp - 0x24], eax
xor ebx, dword [edi + 0x44]
cmp eax, 1
mov esi, 0xff
mov dword [ebp - 0x14], ebx
jle 0x4027df
add edi, 0x60
dec eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], eax
xor eax, eax
xor ebx, ebx
mov al, byte [ebp - 0x13]
mov bl, byte [ebp - 0x1e]
mov edi, dword [eax*4 + 0x42fa80]
xor eax, eax
xor edi, dword [ebx*4 + 0x42f680]
mov al, byte [ebp - 0x15]
xor ebx, ebx
xor edi, dword [eax*4 + 0x42f280]
mov eax, edx
and eax, esi
mov bl, byte [ebp - 0x1d]
xor edi, dword [eax*4 + 0x42fe80]
mov eax, dword [ebp + 8]
xor edi, dword [eax - 4]
xor eax, eax
mov al, byte [ebp - 0x12]
mov eax, dword [eax*4 + 0x42f680]
xor eax, dword [ebx*4 + 0x42f280]
xor ebx, ebx
mov bl, dh
mov edx, dword [ebp - 0x18]
and edx, esi
xor eax, dword [ebx*4 + 0x42fa80]
mov ebx, dword [ebp + 8]
add ebx, 0x20
xor eax, dword [edx*4 + 0x42fe80]
mov edx, dword [ebp + 8]
mov dword [ebp + 8], ebx
xor eax, dword [edx]
xor edx, edx
mov dl, byte [ebp - 0x17]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x11]
mov eax, dword [eax*4 + 0x42f280]
xor eax, dword [edx*4 + 0x42fa80]
xor edx, edx
mov dl, byte [ebp - 0x1a]
xor eax, dword [edx*4 + 0x42f680]
mov edx, ecx
and edx, esi
xor eax, dword [edx*4 + 0x42fe80]
xor edx, edx
mov dl, ch
xor ecx, ecx
mov cl, byte [ebp - 0x16]
xor eax, dword [ebx - 0x1c]
mov edx, dword [edx*4 + 0x42fa80]
mov dword [ebp - 0x18], edi
xor edx, dword [ecx*4 + 0x42f680]
xor ecx, ecx
mov cl, byte [ebp - 0x19]
xor edx, dword [ecx*4 + 0x42f280]
mov ecx, dword [ebp - 0x14]
and ecx, esi
mov dword [ebp - 0x14], eax
xor edx, dword [ecx*4 + 0x42fe80]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
xor edx, dword [ebx - 0x28]
dec dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
jne 0x4026e8
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
shl eax, 5
mov edx, dword [eax + edi + 0x38]
lea edi, [eax + edi + 0x38]
xor eax, eax
mov ebx, edx
mov al, byte [ebp - 0x19]
mov dword [ebp - 0x10], edx
sar ebx, 0x18
mov al, byte [eax + str.cw]
xor al, bl
mov bl, al
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
xor ebx, ebx
mov bl, byte [ebp - 0x16]
sar edx, 0x10
mov bl, byte [ebx + str.cw]
xor bl, dl
xor edx, edx
mov byte [eax + 1], bl
mov ebx, dword [ebp - 0x10]
mov dl, ch
sar ebx, 8
mov dl, byte [edx + str.cw]
xor dl, bl
xor ebx, ebx
mov byte [eax + 2], dl
mov edx, dword [ebp - 0x14]
and edx, esi
mov bl, byte [ebp - 0x15]
mov dl, byte [edx + str.cw]
xor dl, byte [ebp - 0x10]
mov byte [eax + 3], dl
mov edx, dword [edi + 4]
mov bl, byte [ebx + str.cw]
mov dword [ebp - 0x10], edx
sar edx, 0x18
xor bl, dl
xor edx, edx
mov dl, byte [ebp - 0x1e]
mov byte [eax + 4], bl
mov ebx, dword [ebp - 0x10]
mov dl, byte [edx + str.cw]
sar ebx, 0x10
xor dl, bl
mov ebx, dword [ebp - 0x10]
mov byte [eax + 5], dl
xor edx, edx
mov dl, byte [ebp - 0x13]
sar ebx, 8
mov dl, byte [edx + str.cw]
xor dl, bl
xor ebx, ebx
mov byte [eax + 6], dl
mov edx, dword [ebp - 0x1c]
and edx, esi
mov bl, byte [ebp - 0x1d]
mov dl, byte [edx + str.cw]
xor dl, byte [ebp - 0x10]
mov byte [eax + 7], dl
mov edx, dword [edi + 8]
mov bl, byte [ebx + str.cw]
mov dword [ebp - 0x10], edx
sar edx, 0x18
xor bl, dl
xor edx, edx
mov dl, byte [ebp - 0x12]
mov byte [eax + 8], bl
mov ebx, dword [ebp - 0x10]
mov dl, byte [edx + str.cw]
sar ebx, 0x10
xor dl, bl
mov ebx, dword [ebp - 0x10]
mov byte [eax + 9], dl
xor edx, edx
mov dl, byte [ebp - 0x1b]
sar ebx, 8
mov dl, byte [edx + str.cw]
xor dl, bl
mov byte [eax + 0xa], dl
mov edx, dword [ebp - 0x18]
and ecx, esi
and edx, esi
mov dl, byte [edx + str.cw]
xor dl, byte [ebp - 0x10]
mov byte [eax + 0xb], dl
mov edi, dword [edi + 0xc]
xor edx, edx
mov ebx, edi
mov dl, byte [ebp - 0x11]
mov dword [ebp - 0x10], edi
sar ebx, 0x18
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 0xc], dl
xor edx, edx
mov dl, byte [ebp - 0x1a]
sar ebx, 0x10
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 0xd], dl
xor edx, edx
mov dl, byte [ebp - 0x17]
pop edi
sar ebx, 8
mov dl, byte [edx + str.cw]
pop esi
xor dl, bl
pop ebx
mov byte [eax + 0xe], dl
mov cl, byte [ecx + str.cw]
xor cl, byte [ebp - 0x10]
mov byte [eax + 0xf], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8