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

Disassembly:
push 0xffffffffffffffff
push 0x100af962
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 4]
mov dword [esp + 0x20], esi
cmp al, bl
jne 0x10005d8d
mov al, byte [esp + 0x68]
mov esi, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
mov byte [esp + 0x2c], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::max_size_void_const]
cmp eax, ebp
jae 0x10005c1b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x10005c44
mov al, byte [edi - 1]
cmp al, bl
je 0x10005c44
cmp al, 0xff
je 0x10005c44
cmp ebp, ebx
jne 0x10005c6f
dec al
push ebx
lea ecx, [esp + 0x30]
mov byte [edi - 1], 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_]
jmp 0x10005c99
cmp ebp, ebx
jne 0x10005c56
push 1
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x10005c99
mov eax, dword [esp + 0x38]
cmp eax, 0x1f
ja 0x10005c63
cmp eax, ebp
jae 0x10005c7e
push 1
lea ecx, [esp + 0x30]
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 ebp
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], ebx
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x2c]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x48], dl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
mov ebp, ecx
mov byte [esp + 0x60], 1
cmp eax, ebp
jae 0x10005ce0
mov ebp, eax
cmp ebp, ebx
jbe 0x10005d32
cmp ebp, ecx
jne 0x10005d32
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x10005cf5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax - 1], 0xfe
jae 0x10005d32
push 1
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x10005d14
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x10005d70
push 1
push ebp
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10005d70
mov esi, dword [esp + 0x30]
cmp esi, ebx
jne 0x10005d51
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, dword [esp + 0x4c]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x50], ebp
mov byte [ecx + ebp], bl
mov edx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea eax, [esp + 0x3c]
push 0x100ccb48
push eax
mov dword [esp + 0x44], edx
mov byte [esp + 0x68], bl
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x68]
xor edx, edx
xor ecx, ecx
mov edi, dword [esi + 0x1f8]
mov dl, byte [eax]
mov cl, byte [eax + 1]
shl edx, 0x18
inc eax
xor ebx, ebx
shl ecx, 0x10
or edx, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax]
or edx, ecx
inc eax
xor ecx, ecx
mov cl, byte [eax]
or edx, ecx
inc eax
xor ecx, ecx
xor edx, edi
mov cl, byte [eax]
mov dword [esp + 0x1c], edx
mov esi, ecx
xor ecx, ecx
mov cl, byte [eax + 1]
shl esi, 0x18
inc eax
shl ecx, 0x10
or esi, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax]
or esi, ecx
inc eax
xor ecx, ecx
mov cl, byte [eax]
or esi, ecx
mov ecx, dword [esp + 0x20]
inc eax
mov ebp, dword [ecx + 0x1fc]
xor ecx, ecx
mov cl, byte [eax]
mov bl, byte [eax + 1]
xor esi, ebp
shl ecx, 0x18
inc eax
mov dword [esp + 0x10], esi
shl ebx, 0x10
or ecx, ebx
inc eax
xor ebx, ebx
mov esi, dword [esp + 0x20]
mov bh, byte [eax]
or ecx, ebx
inc eax
xor ebx, ebx
mov edi, dword [esi + 0x200]
mov bl, byte [eax]
or ecx, ebx
inc eax
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax]
mov dword [esp + 0x18], ecx
mov esi, ebx
xor ebx, ebx
mov bl, byte [eax + 1]
shl esi, 0x18
inc eax
shl ebx, 0x10
or esi, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov bl, byte [eax + 1]
or ebx, esi
mov esi, dword [esp + 0x20]
xor ebx, dword [esi + 0x204]
mov eax, dword [esi + 0x3d8]
mov dword [esp + 0x14], ebx
cmp eax, 1
mov dword [esp + 0x28], eax
jle 0x10005fab
add esi, 0x220
dec eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x24], eax
xor eax, eax
mov al, bh
xor ebx, ebx
mov bl, byte [esp + 0x13]
mov esi, dword [eax*4 + 0x100c1020]
xor eax, eax
mov al, byte [esp + 0x1e]
mov ebp, dword [ebx*4 + 0x100c0820]
xor esi, ebp
mov edi, dword [eax*4 + 0x100c0c20]
mov eax, ecx
and eax, 0xff
xor esi, edi
mov ebx, dword [eax*4 + 0x100c1420]
mov eax, dword [esp + 0x68]
xor esi, ebx
xor ebx, ebx
mov edi, dword [eax - 4]
mov bl, byte [esp + 0x12]
xor eax, eax
xor esi, edi
mov al, byte [esp + 0x1b]
mov edi, dword [eax*4 + 0x100c0820]
mov eax, dword [ebx*4 + 0x100c0c20]
xor edi, eax
xor eax, eax
mov al, dh
and edx, 0xff
mov ebp, dword [eax*4 + 0x100c1020]
mov eax, dword [esp + 0x14]
and eax, 0xff
xor edi, ebp
mov ebp, dword [eax*4 + 0x100c1420]
mov eax, dword [esp + 0x68]
xor edi, ebp
mov ebx, dword [eax]
xor eax, eax
mov al, byte [esp + 0x17]
xor edi, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov ebp, dword [eax*4 + 0x100c0820]
mov eax, dword [ebx*4 + 0x100c0c20]
xor ebp, eax
xor eax, eax
mov al, byte [esp + 0x11]
mov ebx, dword [eax*4 + 0x100c1020]
mov eax, dword [esp + 0x68]
xor ebp, ebx
mov ebx, dword [edx*4 + 0x100c1420]
mov edx, dword [eax + 4]
xor ebp, ebx
xor ebp, edx
xor edx, edx
mov dl, byte [esp + 0x16]
xor ebx, ebx
mov bl, ch
add eax, 0x20
mov edx, dword [edx*4 + 0x100c0c20]
mov dword [esp + 0x68], eax
mov ecx, dword [ebx*4 + 0x100c1020]
xor edx, ecx
xor ecx, ecx
mov cl, byte [esp + 0x1f]
mov ebx, dword [ecx*4 + 0x100c0820]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
xor edx, ebx
mov dword [esp + 0x10], esi
mov ebx, dword [ecx*4 + 0x100c1420]
mov ecx, edi
xor edx, ebx
mov ebx, dword [eax - 0x28]
mov eax, dword [esp + 0x24]
xor edx, ebx
mov ebx, ebp
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
jne 0x10005e70
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
shl eax, 5
mov edi, dword [eax + esi + 0x1f8]
lea esi, [eax + esi + 0x1f8]
xor eax, eax
mov ecx, edi
mov al, byte [esp + 0x1f]
mov dword [esp + 0x68], edi
sar ecx, 0x18
mov bl, byte [eax + 0x100bf720]
mov eax, dword [esp + 0x6c]
xor bl, cl
xor ecx, ecx
mov cl, byte [esp + 0x16]
mov byte [eax], bl
mov ebx, edi
mov cl, byte [ecx + 0x100bf720]
sar ebx, 0x10
xor cl, bl
mov ebx, edi
mov byte [eax + 1], cl
xor ecx, ecx
mov cl, byte [esp + 0x19]
sar ebx, 8
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov bl, byte [esp + 0x68]
mov byte [eax + 2], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov byte [eax + 3], cl
mov edi, dword [esi + 4]
xor ecx, ecx
mov ebx, edi
mov cl, byte [esp + 0x13]
mov dword [esp + 0x68], edi
sar ebx, 0x18
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov ebx, edi
mov byte [eax + 4], cl
xor ecx, ecx
mov cl, byte [esp + 0x1e]
sar ebx, 0x10
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov ebx, edi
mov edi, dword [esp + 0x18]
mov byte [eax + 5], cl
xor ecx, ecx
and edi, 0xff
mov cl, byte [esp + 0x15]
sar ebx, 8
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov bl, byte [esp + 0x68]
mov byte [eax + 6], cl
mov cl, byte [edi + 0x100bf720]
xor cl, bl
mov byte [eax + 7], cl
mov edi, dword [esi + 8]
xor ecx, ecx
mov ebx, edi
mov cl, byte [esp + 0x1b]
mov dword [esp + 0x68], edi
sar ebx, 0x18
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov ebx, edi
mov byte [eax + 8], cl
xor ecx, ecx
mov cl, byte [esp + 0x12]
sar ebx, 0x10
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov ebx, edi
mov byte [eax + 9], cl
xor ecx, ecx
mov cl, dh
sar ebx, 8
mov cl, byte [ecx + 0x100bf720]
mov edi, dword [esp + 0x14]
xor cl, bl
mov bl, byte [esp + 0x68]
and edi, 0xff
mov byte [eax + 0xa], cl
and edx, 0xff
mov cl, byte [edi + 0x100bf720]
pop edi
xor cl, bl
mov byte [eax + 0xb], cl
mov esi, dword [esi + 0xc]
xor ecx, ecx
mov ebx, esi
mov cl, byte [esp + 0x13]
mov dword [esp + 0x64], esi
sar ebx, 0x18
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov ebx, esi
mov byte [eax + 0xc], cl
xor ecx, ecx
mov cl, byte [esp + 0x16]
sar ebx, 0x10
mov cl, byte [ecx + 0x100bf720]
xor cl, bl
mov ebx, esi
mov byte [eax + 0xd], cl
xor ecx, ecx
mov cl, byte [esp + 0xd]
pop esi
sar ebx, 8
mov cl, byte [ecx + 0x100bf720]
pop ebp
xor cl, bl
pop ebx
mov byte [eax + 0xe], cl
mov dl, byte [edx + 0x100bf720]
mov cl, byte [esp + 0x58]
xor dl, cl
mov ecx, dword [esp + 0x48]
mov byte [eax + 0xf], dl
mov dword fs:[0], ecx
add esp, 0x54
ret 8