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

Disassembly:
mov eax, 0x429349
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edi
cmp byte [edi + 4], bl
jne 0x4029b1
mov al, byte [ebp + 0xb]
mov esi, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], 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 - 0x3c]
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 - 0x3c]
lea ecx, [ebp - 0x58]
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 - 0x58]
push 0x435260
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 0x18
inc eax
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax]
or ecx, edx
inc eax
movzx edx, byte [eax]
movzx esi, byte [eax + 1]
or ecx, edx
inc eax
xor ecx, dword [edi + 0x1f8]
movzx edx, byte [eax + 1]
shl esi, 0x18
inc eax
mov dword [ebp - 0x20], ecx
shl edx, 0x10
or esi, edx
inc eax
xor edx, edx
mov dh, byte [eax]
or esi, edx
inc eax
movzx edx, byte [eax]
or esi, edx
inc eax
xor esi, dword [edi + 0x1fc]
movzx edx, byte [eax + 1]
mov dword [ebp - 0x1c], esi
movzx esi, byte [eax]
shl esi, 0x18
inc eax
shl edx, 0x10
or esi, edx
inc eax
xor edx, edx
mov dh, byte [eax]
or esi, edx
inc eax
movzx edx, byte [eax]
or esi, edx
inc eax
xor esi, dword [edi + 0x200]
movzx edx, byte [eax + 1]
mov dword [ebp - 0x18], esi
movzx esi, byte [eax]
shl esi, 0x18
inc eax
shl edx, 0x10
or esi, edx
inc eax
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
mov eax, dword [edi + 0x3d8]
or edx, esi
mov dword [ebp - 0x2c], eax
xor edx, dword [edi + 0x204]
cmp eax, 1
mov esi, 0xff
mov dword [ebp - 0x14], edx
jle 0x402b68
lea edx, [edi + 0x220]
dec eax
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], eax
xor eax, eax
xor ebx, ebx
mov al, byte [ebp - 0x13]
mov bl, byte [ebp - 0x19]
mov edi, dword [eax*4 + 0x430a80]
xor eax, eax
xor edi, dword [ebx*4 + 0x430280]
mov al, byte [ebp - 0x1e]
xor ebx, ebx
xor edi, dword [eax*4 + 0x430680]
mov eax, dword [ebp - 0x18]
and eax, esi
mov bl, byte [ebp - 0x1a]
xor edi, dword [eax*4 + 0x430e80]
xor eax, eax
mov al, byte [ebp - 0x15]
xor edi, dword [edx - 4]
mov eax, dword [eax*4 + 0x430280]
xor eax, dword [ebx*4 + 0x430680]
xor ebx, ebx
mov bl, ch
and ecx, esi
xor eax, dword [ebx*4 + 0x430a80]
mov ebx, dword [ebp - 0x14]
and ebx, esi
xor eax, dword [ebx*4 + 0x430e80]
xor ebx, ebx
mov bl, byte [ebp - 0x16]
xor eax, dword [edx]
xor edx, edx
mov dl, byte [ebp - 0x11]
mov edx, dword [edx*4 + 0x430280]
xor edx, dword [ebx*4 + 0x430680]
xor ebx, ebx
mov bl, byte [ebp - 0x1b]
mov dword [ebp - 0x24], edx
xor edx, dword [ebx*4 + 0x430a80]
xor edx, dword [ecx*4 + 0x430e80]
mov ecx, dword [ebp + 8]
xor edx, dword [ecx + 4]
xor ecx, ecx
mov cl, byte [ebp - 0x12]
mov dword [ebp - 0x24], edx
xor edx, edx
mov dl, byte [ebp - 0x17]
mov ecx, dword [ecx*4 + 0x430680]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
xor ecx, dword [edx*4 + 0x430a80]
xor edx, edx
mov dl, byte [ebp - 0x1d]
mov dword [ebp - 0x14], eax
xor ecx, dword [edx*4 + 0x430280]
mov edx, dword [ebp - 0x1c]
and edx, esi
mov dword [ebp - 0x1c], edi
xor ecx, dword [edx*4 + 0x430e80]
mov edx, dword [ebp + 8]
xor ecx, dword [edx - 8]
add edx, 0x20
dec dword [ebp - 0x10]
mov dword [ebp + 8], edx
mov dword [ebp - 0x20], ecx
jne 0x402a71
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
shl eax, 5
mov edx, dword [eax + edi + 0x1f8]
lea edi, [eax + edi + 0x1f8]
xor eax, eax
mov ebx, edx
mov al, byte [ebp - 0x1d]
mov dword [ebp - 0x10], edx
sar ebx, 0x18
mov al, byte [eax + 0x42f180]
xor al, bl
mov bl, al
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
xor ebx, ebx
mov bl, byte [ebp - 0x12]
sar edx, 0x10
mov bl, byte [ebx + 0x42f180]
xor bl, dl
xor edx, edx
mov dl, byte [ebp - 0x17]
mov byte [eax + 1], bl
mov ebx, dword [ebp - 0x10]
mov dl, byte [edx + 0x42f180]
sar ebx, 8
xor dl, bl
xor ebx, ebx
mov byte [eax + 2], dl
mov edx, dword [ebp - 0x1c]
and edx, esi
mov bl, byte [ebp - 0x19]
mov dl, byte [edx + 0x42f180]
xor dl, byte [ebp - 0x10]
mov byte [eax + 3], dl
mov edx, dword [edi + 4]
mov bl, byte [ebx + 0x42f180]
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 + 0x42f180]
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 + 0x42f180]
xor dl, bl
xor ebx, ebx
mov byte [eax + 6], dl
mov edx, dword [ebp - 0x18]
and edx, esi
mov bl, byte [ebp - 0x15]
mov dl, byte [edx + 0x42f180]
xor dl, byte [ebp - 0x10]
mov byte [eax + 7], dl
mov edx, dword [edi + 8]
mov bl, byte [ebx + 0x42f180]
mov dword [ebp - 0x10], edx
sar edx, 0x18
xor bl, dl
xor edx, edx
mov dl, byte [ebp - 0x1a]
mov byte [eax + 8], bl
mov ebx, dword [ebp - 0x10]
mov dl, byte [edx + 0x42f180]
sar ebx, 0x10
xor dl, bl
mov ebx, dword [ebp - 0x10]
mov byte [eax + 9], dl
xor edx, edx
mov dl, ch
sar ebx, 8
mov dl, byte [edx + 0x42f180]
xor dl, bl
mov byte [eax + 0xa], dl
mov edx, dword [ebp - 0x14]
and ecx, esi
and edx, esi
mov dl, byte [edx + 0x42f180]
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 + 0x42f180]
xor dl, bl
mov ebx, edi
mov byte [eax + 0xc], dl
xor edx, edx
mov dl, byte [ebp - 0x16]
sar ebx, 0x10
mov dl, byte [edx + 0x42f180]
xor dl, bl
mov ebx, edi
mov byte [eax + 0xd], dl
xor edx, edx
mov dl, byte [ebp - 0x1b]
pop edi
sar ebx, 8
mov dl, byte [edx + 0x42f180]
pop esi
xor dl, bl
pop ebx
mov byte [eax + 0xe], dl
mov cl, byte [ecx + 0x42f180]
xor cl, byte [ebp - 0x10]
mov byte [eax + 0xf], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8