Function at 0x10004bb0
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100af8fc
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x78]
xor esi, esi
cmp ecx, esi
push edi
jne 0x10004c7f
mov al, byte [esp + 0x80]
mov edx, dword [str.FileCrypt_ERROR:_No_Key_DataSpecified_]
mov byte [esp + 0x20], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
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 ecx, [esp + 0x80]
mov dword [esp + 0x74], esi
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x84], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 1
mov byte [esp + 0x40], dl
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [esp + 0x48]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea ecx, [esp + 0x30]
push 0x100ccb48
push ecx
mov dword [esp + 0x38], eax
mov byte [esp + 0x7c], 0
call sub.MSVCRT.dll__CxxThrowException
cmp dword [esp + 0x80], 1
jge 0x10004d34
mov al, byte [esp + 0x80]
mov edx, dword [str.FileCrypt_ERROR:_Key_Data_Length_should_be___0_]
mov byte [esp + 0x20], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
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 ecx, [esp + 0x80]
mov dword [esp + 0x74], 2
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x84], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 3
mov byte [esp + 0x40], dl
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [esp + 0x48]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea ecx, [esp + 0x30]
push 0x100ccb48
push ecx
mov dword [esp + 0x38], eax
mov byte [esp + 0x7c], 2
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [esp + 0x88]
cmp ebx, 0x10
je 0x10004e00
cmp ebx, 0x18
je 0x10004e00
cmp ebx, 0x20
je 0x10004e00
mov edi, str.Illegal_Key_Length_
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x20], dl
push ecx
push str.Illegal_Key_Length_
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
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, [esp + 0x80]
mov ebx, 4
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov cl, byte [esp + 0x20]
push esi
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 5
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 edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x20]
mov eax, dword [edx]
push eax
push esi
push ecx
lea ecx, [esp + 0x48]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea eax, [esp + 0x30]
push 0x100ccb48
push eax
mov dword [esp + 0x38], edx
mov byte [esp + 0x7c], bl
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [esp + 0x8c]
cmp edi, 0x10
je 0x10004ecb
cmp edi, 0x18
je 0x10004ecb
cmp edi, 0x20
je 0x10004ecb
mov cl, byte [esp + 0x80]
mov edx, dword [str.Illegal_Block_Size_]
mov byte [esp + 0x20], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
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 edx, [esp + 0x80]
mov ebx, 6
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov al, byte [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 7
mov byte [esp + 0x40], 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_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x20]
mov edx, dword [ecx]
lea ecx, [esp + 0x3c]
push edx
push esi
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea edx, [esp + 0x30]
push 0x100ccb48
push edx
mov dword [esp + 0x38], ecx
mov byte [esp + 0x7c], bl
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x90]
cmp edx, esi
jl 0x1000546c
cmp edx, 2
jg 0x1000546c
mov eax, dword [esp + 0x94]
cmp eax, esi
jl 0x1000539b
cmp eax, 2
jg 0x1000539b
mov dword [ebp + 0x10], edx
xor edx, edx
test ebx, ebx
mov dword [ebp + 0x14], eax
jle 0x10004f1e
mov al, byte [edx + ecx]
mov byte [esp + esi + 0x4c], al
lea eax, [edx + 1]
cdq
idiv dword [esp + 0x80]
inc esi
cmp esi, ebx
jl 0x10004f07
mov esi, dword [esp + 0x84]
mov ecx, edi
lea eax, [ebp + 0x3dc]
mov edx, ecx
mov dword [ebp + 8], edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ecx
lea edi, [ebp + 0x3fc]
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, ebx
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebp + 0x18]
shr ecx, 2
mov dword [ebp + 0xc], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
cmp eax, 0x10
je 0x10004f9d
cmp eax, 0x18
je 0x10004f8c
mov dword [ebp + 0x3d8], 0xe
jmp 0x10004fbf
mov eax, dword [ebp + 8]
sub eax, 0x20
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0xe
jmp 0x10004fb9
mov eax, dword [ebp + 8]
cmp eax, 0x10
jne 0x10004fac
mov eax, 0xa
jmp 0x10004fb9
sub eax, 0x18
neg eax
sbb eax, eax
and eax, 2
add eax, 0xc
mov dword [ebp + 0x3d8], eax
mov eax, dword [ebp + 8]
cdq
and edx, 3
add eax, edx
xor edx, edx
mov ebx, eax
mov eax, dword [ebp + 0x3d8]
sar ebx, 2
test eax, eax
mov dword [esp + 0x7c], ebx
jl 0x10004ffa
lea esi, [ebp + 0x38]
test ebx, ebx
jle 0x10004fec
mov ecx, ebx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x3d8]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x10004fe0
mov eax, dword [ebp + 0x3d8]
xor edx, edx
test eax, eax
jl 0x10005026
lea esi, [ebp + 0x1f8]
test ebx, ebx
jle 0x10005018
mov ecx, ebx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x3d8]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x1000500c
mov esi, dword [ebp + 0x3d8]
mov eax, dword [ebp + 0xc]
inc esi
lea ecx, [ebp + 0x41c]
cdq
imul esi, ebx
and edx, 3
mov dword [esp + 0x88], esi
add eax, edx
mov edi, eax
lea eax, [esp + 0x4c]
sar edi, 2
test edi, edi
mov dword [esp + 0x94], edi
jle 0x1000509b
mov dword [esp + 0x80], edi
xor edx, edx
add ecx, 4
mov dl, byte [eax]
shl edx, 0x18
mov dword [ecx - 4], edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or dword [ecx - 4], edx
inc eax
xor edx, edx
mov dh, byte [eax]
or dword [ecx - 4], edx
inc eax
xor edx, edx
mov dl, byte [eax]
or dword [ecx - 4], edx
mov edx, dword [esp + 0x80]
inc eax
dec edx
mov dword [esp + 0x80], edx
jne 0x10005061
xor ecx, ecx
test edi, edi
jle 0x10005111
lea eax, [ebp + 0x41c]
mov dword [esp + 0x80], eax
cmp ecx, esi
jge 0x100052e9
mov eax, ecx
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
mov dword [esp + 0x8c], edx
lea eax, [edx + esi*8]
mov edx, dword [esp + 0x80]
mov edx, dword [edx]
mov dword [ebp + eax*4 + 0x38], edx
mov eax, dword [ebp + 0x3d8]
mov edx, dword [esp + 0x8c]
sub eax, esi
inc ecx
lea edx, [edx + eax*8]
mov eax, dword [esp + 0x80]
mov esi, dword [eax]
add eax, 4
mov dword [ebp + edx*4 + 0x1f8], esi
mov esi, dword [esp + 0x88]
cmp ecx, edi
mov dword [esp + 0x80], eax
jl 0x100050ae
cmp ecx, esi
jge 0x100052e9
mov dword [esp + 0x8c], 0x100c2820
mov eax, dword [ebp + edi*4 + 0x418]
mov esi, dword [esp + 0x8c]
xor edx, edx
mov dword [esp + 0x80], eax
mov dl, byte [esp + 0x82]
xor ebx, ebx
movsx esi, byte [esi]
movsx edx, byte [edx + str.cw]
xor edx, esi
mov bl, ah
shl edx, 8
mov esi, edx
xor edx, edx
mov dl, byte [ebx + str.cw]
xor esi, edx
and eax, 0xff
xor edx, edx
mov ebx, dword [ebp + 0x41c]
mov dl, byte [eax + str.cw]
xor eax, eax
mov al, byte [esp + 0x83]
shl esi, 8
xor esi, edx
xor edx, edx
mov dl, byte [eax + str.cw]
shl esi, 8
xor esi, edx
mov edx, dword [esp + 0x8c]
xor ebx, esi
inc edx
cmp edi, 8
mov dword [ebp + 0x41c], ebx
mov dword [esp + 0x8c], edx
je 0x100051d1
cmp edi, 1
jle 0x10005269
lea eax, [ebp + 0x420]
lea edx, [edi - 1]
mov esi, dword [eax - 4]
mov ebx, dword [eax]
xor ebx, esi
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x100051bd
jmp 0x10005269
lea eax, [ebp + 0x420]
mov edx, 3
mov esi, dword [eax - 4]
mov ebx, dword [eax]
xor ebx, esi
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x100051dc
mov eax, dword [ebp + 0x428]
xor edx, edx
mov dword [esp + 0x80], eax
mov dl, byte [esp + 0x83]
xor ebx, ebx
movsx esi, byte [edx + str.cw]
mov bl, byte [esp + 0x82]
xor edx, edx
shl esi, 8
mov dl, byte [ebx + str.cw]
xor ebx, ebx
xor esi, edx
xor edx, edx
mov dl, ah
and eax, 0xff
shl esi, 8
mov bl, byte [edx + str.cw]
xor edx, edx
mov dl, byte [eax + str.cw]
mov eax, dword [ebp + 0x42c]
xor esi, ebx
shl esi, 8
xor esi, edx
mov edx, 3
xor eax, esi
mov dword [ebp + 0x42c], eax
lea eax, [ebp + 0x430]
mov esi, dword [eax - 4]
mov ebx, dword [eax]
xor ebx, esi
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x1000525a
test edi, edi
mov dword [esp + 0x80], 0
jle 0x100052d6
lea esi, [ebp + 0x41c]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x7c]
cmp ecx, eax
jge 0x100052e9
mov eax, ecx
add esi, 4
cdq
idiv ebx
mov edi, eax
mov eax, ecx
cdq
idiv ebx
mov ebx, dword [esi - 4]
lea eax, [edx + edi*8]
mov dword [ebp + eax*4 + 0x38], ebx
mov eax, dword [ebp + 0x3d8]
sub eax, edi
mov edi, dword [esp + 0x94]
lea edx, [edx + eax*8]
mov eax, dword [esi - 4]
mov dword [ebp + edx*4 + 0x1f8], eax
mov eax, dword [esp + 0x80]
inc eax
inc ecx
cmp eax, edi
mov dword [esp + 0x80], eax
jl 0x1000527e
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x7c]
cmp ecx, eax
jl 0x10005124
mov ecx, dword [ebp + 0x3d8]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x7c], eax
jle 0x10005382
lea esi, [ebp + 0x218]
mov dword [esp + 0x88], esi
test ebx, ebx
jle 0x1000535e
mov edi, ebx
mov eax, dword [esi]
xor ecx, ecx
mov dword [esp + 0x80], eax
mov cl, byte [esp + 0x83]
xor edx, edx
add esi, 4
mov dl, byte [esp + 0x82]
mov ecx, dword [ecx*4 + 0x100c1820]
xor ecx, dword [edx*4 + 0x100c1c20]
xor edx, edx
mov dl, ah
and eax, 0xff
xor ecx, dword [edx*4 + 0x100c2020]
mov edx, dword [eax*4 + 0x100c2420]
xor ecx, edx
dec edi
mov dword [esi - 4], ecx
jne 0x10005313
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x88]
mov ecx, dword [ebp + 0x3d8]
inc eax
add esi, 0x20
cmp eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], esi
jl 0x1000530d
mov ecx, dword [esp + 0x6c]
pop edi
mov byte [ebp + 4], 1
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0x1c
mov al, byte [esp + 0x80]
mov ebp, dword [str.FileCrypt_ERROR:_Illegal_Padding_Mode_]
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 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_]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
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 0x100053fa
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
mov esi, ebp
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 + 0x14]
mov dword [esp + 0x18], ebx
xor esi, esi
mov byte [eax + ebx], 0
lea ecx, [esp + 0x80]
mov ebx, 0xa
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x10]
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 0xb
mov byte [esp + 0x5c], dl
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [esp + 0x64]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea ecx, [esp + 0x4c]
push 0x100ccb48
push ecx
mov dword [esp + 0x54], eax
mov byte [esp + 0x7c], bl
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [esp + 0x80]
mov edx, dword [str.FileCrypt_ERROR:_Illegal_Operation_Mode_]
mov byte [esp + 0x20], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
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 ecx, [esp + 0x80]
mov ebx, 8
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 9
mov byte [esp + 0x40], dl
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [esp + 0x48]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea ecx, [esp + 0x30]
push 0x100ccb48
push ecx
mov dword [esp + 0x38], eax
mov byte [esp + 0x7c], bl
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100af922
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, ecx
push ebx
xor ebx, ebx
mov cl, byte [eax + 4]
push esi
cmp cl, bl
push edi
jne 0x1000560c
mov al, byte [esp + 0xf]
mov esi, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
mov byte [esp + 0x14], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
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 0x100055a3
mov edi, dword [esp + 0x1c]
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 + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], ebx
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0x100f029c
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esp + 0x18]
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 byte [esp + 0x34], dl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push ebx
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
lea ecx, [esp + 0x28]
push 0x100ccb48
push ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0x54], bl
call sub.MSVCRT.dll__CxxThrowException
pop ebp
mov ecx, dword [eax + 8]
lea esi, [eax + 0x3dc]
mov edx, ecx
lea edi, [eax + 0x3fc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret