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

Disassembly:
push 0xffffffffffffffff
push 0x100af942
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov al, byte [ebp + 4]
mov dword [esp + 0x24], ebp
cmp al, bl
jne 0x1000581d
mov al, byte [esp + 0x64]
mov esi, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
mov byte [esp + 0x28], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
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 0x100056ab
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x100056d4
mov al, byte [edi - 1]
cmp al, bl
je 0x100056d4
cmp al, 0xff
je 0x100056d4
cmp ebp, ebx
jne 0x100056ff
dec al
push ebx
lea ecx, [esp + 0x2c]
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 0x10005729
cmp ebp, ebx
jne 0x100056e6
push 1
lea ecx, [esp + 0x2c]
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 0x10005729
mov eax, dword [esp + 0x34]
cmp eax, 0x1f
ja 0x100056f3
cmp eax, ebp
jae 0x1000570e
push 1
lea ecx, [esp + 0x2c]
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 + 0x2c]
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 + 0x2c]
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 + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], ebx
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x28]
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 + 0x30]
mov byte [esp + 0x44], dl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [eax]
mov ebp, ecx
mov byte [esp + 0x5c], 1
cmp eax, ebp
jae 0x10005770
mov ebp, eax
cmp ebp, ebx
jbe 0x100057c2
cmp ebp, ecx
jne 0x100057c2
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x10005785
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 0x100057c2
push 1
lea ecx, [esp + 0x48]
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 + 0x2c]
cmp eax, ebx
jne 0x100057a4
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 + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x10005800
push 1
push ebp
lea ecx, [esp + 0x4c]
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 0x10005800
mov esi, dword [esp + 0x2c]
cmp esi, ebx
jne 0x100057e1
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 + 0x48]
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 + 0x48]
mov dword [esp + 0x4c], ebp
mov byte [ecx + ebp], bl
mov edx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea eax, [esp + 0x38]
push 0x100ccb48
push eax
mov dword [esp + 0x40], edx
mov byte [esp + 0x64], bl
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x64]
xor edx, edx
xor ecx, ecx
mov ebx, dword [ebp + 0x38]
mov dl, byte [eax]
mov cl, byte [eax + 1]
shl edx, 0x18
inc eax
mov edi, dword [ebp + 0x3c]
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, ebx
mov cl, byte [eax]
xor ebx, ebx
mov esi, ecx
xor ecx, ecx
mov cl, byte [eax + 1]
mov dword [esp + 0x18], edx
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
inc eax
xor ecx, ecx
xor esi, edi
mov cl, byte [eax]
mov bl, byte [eax + 1]
shl ecx, 0x18
inc eax
mov dword [esp + 0x14], esi
shl ebx, 0x10
or ecx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
or ecx, ebx
inc eax
xor ebx, ebx
mov bl, byte [eax]
or ecx, ebx
mov ebx, dword [ebp + 0x40]
inc eax
xor ecx, ebx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov bl, byte [eax]
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]
mov eax, dword [ebp + 0x44]
or ebx, esi
mov esi, dword [ebp + 0x3d8]
xor eax, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
cmp esi, 1
jle 0x10005a10
add ebp, 0x60
dec esi
mov dword [esp + 0x64], esi
xor ebx, ebx
add ebp, 0x20
mov bl, ah
xor eax, eax
mov al, byte [esp + 0x1e]
mov esi, dword [ebx*4 + 0x100c0020]
mov edi, dword [eax*4 + 0x100bfc20]
xor eax, eax
mov al, byte [esp + 0x17]
xor esi, edi
mov edi, dword [ebp - 0x24]
mov ebx, dword [eax*4 + 0x100bf820]
mov eax, edx
and eax, 0xff
xor esi, ebx
mov ebx, dword [eax*4 + 0x100c0420]
xor eax, eax
mov al, byte [esp + 0x12]
xor esi, ebx
xor ebx, ebx
xor esi, edi
mov bl, byte [esp + 0x1f]
mov edi, dword [eax*4 + 0x100bfc20]
mov eax, dword [ebx*4 + 0x100bf820]
xor edi, eax
xor eax, eax
mov al, dh
mov edx, dword [eax*4 + 0x100c0020]
mov eax, dword [esp + 0x14]
xor edi, edx
mov edx, eax
and edx, 0xff
mov ebx, dword [edx*4 + 0x100c0420]
xor edx, edx
mov dl, byte [esp + 0x13]
xor edi, ebx
mov ebx, dword [ebp - 0x20]
xor edi, ebx
xor ebx, ebx
mov bl, ah
mov eax, dword [edx*4 + 0x100bf820]
mov edx, dword [ebx*4 + 0x100c0020]
xor eax, edx
xor edx, edx
mov dl, byte [esp + 0x1a]
mov ebx, dword [edx*4 + 0x100bfc20]
mov edx, ecx
and edx, 0xff
xor eax, ebx
mov ebx, dword [edx*4 + 0x100c0420]
mov edx, dword [ebp - 0x1c]
xor eax, ebx
xor eax, edx
xor edx, edx
mov dl, ch
xor ecx, ecx
mov cl, byte [esp + 0x16]
mov dword [esp + 0x14], esi
mov edx, dword [edx*4 + 0x100c0020]
mov esi, dword [esp + 0x64]
mov ebx, dword [ecx*4 + 0x100bfc20]
xor ecx, ecx
mov cl, byte [esp + 0x1b]
xor edx, ebx
mov ebx, dword [ecx*4 + 0x100bf820]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
xor edx, ebx
mov dword [esp + 0x10], eax
mov ebx, dword [ecx*4 + 0x100c0420]
mov ecx, edi
xor edx, ebx
mov ebx, dword [ebp - 0x28]
xor edx, ebx
dec esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], esi
jne 0x100058e3
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl esi, 5
xor edx, edx
mov edi, dword [esi + ebp + 0x38]
mov dl, byte [esp + 0x1b]
lea esi, [esi + ebp + 0x38]
mov eax, edi
mov dl, byte [edx + str.cw]
mov ebx, edi
sar eax, 0x18
xor dl, al
mov eax, dword [esp + 0x68]
sar ebx, 0x10
mov byte [eax], dl
xor edx, edx
mov dl, byte [esp + 0x16]
mov dword [esp + 0x64], edi
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 1], dl
xor edx, edx
mov dl, ch
sar ebx, 8
mov dl, byte [edx + str.cw]
xor dl, bl
mov bl, byte [esp + 0x64]
mov byte [eax + 2], dl
mov edx, dword [esp + 0x10]
and edx, 0xff
mov dl, byte [edx + str.cw]
xor dl, bl
mov byte [eax + 3], dl
mov edi, dword [esi + 4]
xor edx, edx
mov ebx, edi
mov dl, byte [esp + 0x17]
mov dword [esp + 0x64], edi
sar ebx, 0x18
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 4], dl
xor edx, edx
mov dl, byte [esp + 0x1e]
sar ebx, 0x10
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 5], dl
xor edx, edx
mov dl, byte [esp + 0x11]
sar ebx, 8
mov dl, byte [edx + str.cw]
xor dl, bl
mov bl, byte [esp + 0x64]
mov byte [eax + 6], dl
mov edx, dword [esp + 0x18]
and edx, 0xff
mov dl, byte [edx + str.cw]
xor dl, bl
mov byte [eax + 7], dl
mov edi, dword [esi + 8]
xor edx, edx
mov ebx, edi
mov dl, byte [esp + 0x1f]
mov dword [esp + 0x64], edi
sar ebx, 0x18
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 8], dl
xor edx, edx
mov dl, byte [esp + 0x12]
sar ebx, 0x10
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, edi
mov byte [eax + 9], dl
xor edx, edx
mov dl, byte [esp + 0x19]
sar ebx, 8
mov dl, byte [edx + str.cw]
and ecx, 0xff
xor dl, bl
mov bl, byte [esp + 0x64]
mov byte [eax + 0xa], dl
mov edx, dword [esp + 0x14]
and edx, 0xff
pop edi
mov dl, byte [edx + str.cw]
xor dl, bl
mov byte [eax + 0xb], dl
mov esi, dword [esi + 0xc]
xor edx, edx
mov ebx, esi
mov dl, byte [esp + 0xf]
mov dword [esp + 0x60], esi
sar ebx, 0x18
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, esi
mov byte [eax + 0xc], dl
xor edx, edx
mov dl, byte [esp + 0x16]
sar ebx, 0x10
mov dl, byte [edx + str.cw]
xor dl, bl
mov ebx, esi
mov byte [eax + 0xd], dl
xor edx, edx
mov dl, byte [esp + 0x11]
pop esi
sar ebx, 8
mov dl, byte [edx + str.cw]
pop ebp
xor dl, bl
pop ebx
mov byte [eax + 0xe], dl
mov cl, byte [ecx + str.cw]
xor cl, byte [esp + 0x54]
mov byte [eax + 0xf], cl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8