Function at 0x406768
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x41ada4
call fcn.0041a140
sub esp, 0xba4
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x208
push esi
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp - 0x9a8]
push edi
push eax
call sub.MMVCR70.dll_memset
mov ebx, 0x104
lea eax, [ebp - 0x9a8]
push ebx
push eax
call fcn.004059f0
lea eax, [ebp - 0x9a8]
push str.mmz.lst
push eax
call dword [sym.imp.MMVCR70.dll_wcscat]
lea eax, [ebp - 0x9a8]
push eax
call fcn.004059d7
add esp, 0x20
test eax, eax
jne 0x40680c
push str._IsCredentialRevoked__revoked_list_not_found
call fcn.00419ffe
push 0x10
push 0x85
push 0x67
call fcn.00405740
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0041a123
pop edi
pop esi
pop ebx
leave
ret
push esi
lea eax, [ebp - 0xbb0]
push edi
push eax
call sub.MMVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0xbb0]
push eax
push ebx
call dword [0x429100]
push esi
lea eax, [ebp - 0x2f0]
push edi
push eax
call sub.MMVCR70.dll_memset
push esi
lea eax, [ebp - 0x700]
push edi
push eax
call sub.MMVCR70.dll_memset
push esi
lea eax, [ebp - 0x4f8]
push edi
push eax
call sub.MMVCR70.dll_memset
add esp, 0x24
lea eax, [ebp - 0x2f0]
push eax
push edi
push 0x41ca98
lea eax, [ebp - 0xbb0]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call dword [0x4290fc]
test eax, eax
jne 0x40689f
lea eax, [ebp - 0xbb0]
push eax
push str._IsCredentialRevoked__GetTempFileName_failed__dir_s
call fcn.00419ffe
pop ecx
pop ecx
mov dword [ebp - 0x3c], edi
push 0x421d30
lea eax, [ebp - 0x3c]
jmp 0x406d9d
lea eax, [ebp - 0x9a8]
push 0x41c2cc
push eax
call dword [sym.imp.MMVCR70.dll__wfopen]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
mov dword [ebp - 0x20], esi
je 0x406d7f
push ebx
lea eax, [ebp - 0x700]
push eax
push esi
call fcn.00405cab
add esp, 0xc
test al, al
jne 0x4068f1
push str._IsCredentialRevoked__ExtractFileFromStream_failed1
call fcn.00419ffe
mov dword [ebp - 0x2c], edi
mov dword [esp], 0x421d30
lea eax, [ebp - 0x2c]
jmp 0x406d9d
push ebx
lea eax, [ebp - 0x4f8]
push eax
push esi
call fcn.00405cab
add esp, 0xc
test al, al
jne 0x406922
push str._IsCredentialRevoked__ExtractFileFromStream_failed_2
call fcn.00419ffe
mov dword [ebp - 0x34], edi
mov dword [esp], 0x421d30
lea eax, [ebp - 0x34]
jmp 0x406d9d
push esi
mov esi, dword [sym.imp.MMVCR70.dll_fclose]
call esi
lea eax, [ebp - 0x2f0]
mov dword [esp], 0x41d994
push eax
call dword [sym.imp.MMVCR70.dll__wfopen]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
jne 0x40696b
lea eax, [ebp - 0x2f0]
push eax
push str._IsCredentialRevoked__file_open_failed__file_s
call fcn.00419ffe
pop ecx
pop ecx
mov dword [ebp - 0x38], edi
push 0x421d30
lea eax, [ebp - 0x38]
jmp 0x406d9d
push eax
mov ebx, str.305A300D06092A864886F70D010101050003490030460241009A4EB35E707A39229908D450C09BF349FD7F1D553DFB69D63BE1D2C0CEFC7D63C51A7CE95992E701BDA1B45E64D1BE756EA4C66831BA77C318EF6C77F43E130B020111
push ebx
call sub.MMVCR70.dll_strlen
pop ecx
push eax
push 1
push ebx
call dword [sym.imp.MMVCR70.dll_fwrite]
push dword [ebp - 0x24]
call esi
add esp, 0x14
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov esi, dword [sym.imp.CoreDll.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_mfConvertTToMBCS_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int_]
push edi
push eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 1
call esi
add esp, 0xc
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
push edi
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 4
call esi
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [ebp - 0x700]
push eax
lea ecx, [ebp - 0x78]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
push edi
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 7
call esi
add esp, 0xc
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 9
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x94]
call dword [sym.imp.MMVCP70.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [ebp - 0xcc]
mov ebx, eax
call dword [sym.imp.MMVCP70.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [ebp - 0xb0]
mov esi, eax
call dword [sym.imp.MMVCP70.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ebx
push esi
push eax
call fcn.00402826
add esp, 0xc
test al, al
jne 0x406a76
push str._IsCredentialRevoked__RSAVerifyFile_failed
call fcn.00419ffe
mov dword [ebp - 0x30], edi
mov dword [esp], 0x421d30
lea eax, [ebp - 0x30]
jmp 0x406d9d
lea eax, [ebp - 0x2f0]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406a94
lea eax, [ebp - 0x2f0]
push eax
call dword [0x4290d4]
lea eax, [ebp - 0x700]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406ab2
lea eax, [ebp - 0x700]
push eax
call dword [0x4290d4]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 3
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
and byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
push 0x41c2cc
push dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x406b68
push edi
mov edi, dword [sym.imp.MMVCR70.dll_fseek]
push 3
push ebx
call edi
push 1
push 4
push ebx
call edi
mov esi, dword [sym.imp.MMVCR70.dll_fread]
push ebx
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call esi
add esp, 0x28
cmp dword [ebp - 0x28], 0x7d0
jae 0x406b5f
push dword [ebp - 0x28]
call fcn.0041a0aa
push dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
push 0
push eax
call sub.MMVCR70.dll_memset
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x406b5f
push ebx
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x24]
call esi
add esp, 0x10
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
jmp 0x406b82
push dword [ebp + 8]
push str._IsCredentialRevoked__File_open_failed__file_s
call fcn.00419ffe
mov edi, dword [sym.imp.MMVCR70.dll_fseek]
mov esi, dword [sym.imp.MMVCR70.dll_fread]
pop ecx
and dword [ebp - 0x1c], 0
and byte [ebp - 0x15], 0
pop ecx
lea eax, [ebp - 0x4f8]
push 0x41c2cc
push eax
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x406d29
jmp 0x406c65
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
add esp, 0x10
cmp eax, 1
jb 0x406d21
mov eax, dword [ebp - 0x1c]
cmp eax, 0x7d0
ja 0x406d21
cmp eax, dword [ebp - 0x28]
jne 0x406c28
push eax
call fcn.0041a0aa
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push 0
push eax
call sub.MMVCR70.dll_memset
add esp, 0x10
cmp dword [ebp - 0x20], 0
je 0x406d21
push ebx
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call sub.MMVCR70.dll_memcmp
add esp, 0x1c
test eax, eax
jne 0x406c1d
mov byte [ebp - 0x15], 1
push dword [ebp - 0x20]
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x406c31
push 1
push eax
push ebx
call edi
add esp, 0xc
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
add esp, 0x10
cmp eax, 1
jb 0x406d21
mov eax, dword [ebp - 0x1c]
cmp eax, 0x7d0
ja 0x406d21
cmp byte [ebp - 0x15], 1
je 0x406c74
push 1
push eax
push ebx
call edi
add esp, 0xc
test byte [ebx + 0xc], 0x10
je 0x406bae
jmp 0x406d21
inc eax
push eax
call fcn.0041a0aa
mov edi, eax
test edi, edi
pop ecx
je 0x406d21
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 0
push edi
call sub.MMVCR70.dll_memset
push ebx
push dword [ebp - 0x1c]
push 1
push edi
call esi
mov eax, dword [ebp - 0x1c]
and byte [edi + eax], 0
add esp, 0x1c
push 0x200
lea eax, [ebp - 0x7a0]
push eax
push 0x64
push dword [0x429164]
call dword [0x429140]
test eax, eax
je 0x406d1a
push edi
lea ecx, [ebp - 0x78]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 0xb
call dword [sym.imp.CoreDll.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_mfConvertMBCSToT_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_]
add esp, 0xc
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x10
lea eax, [ebp - 0x7a0]
push eax
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MMVCP70.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push 0
call dword [0x429144]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push edi
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
pop ecx
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
pop ecx
lea eax, [ebp - 0x4f8]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406d47
lea eax, [ebp - 0x4f8]
push eax
call dword [0x4290d4]
cmp dword [ebp - 0x24], 0
je 0x406d56
push dword [ebp - 0x24]
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
pop ecx
cmp byte [ebp - 0x15], 1
jne 0x406d77
push str._IsCredentialRevoked__credential_was_revoked
call fcn.00419ffe
push 0x10
push 0x84
push 0x64
call fcn.00405740
add esp, 0x10
mov al, byte [ebp - 0x15]
jmp 0x4067f2
lea eax, [ebp - 0x9a8]
push eax
push str._IsCredentialRevoked__file_open_failed__file_s
call fcn.00419ffe
pop ecx
pop ecx
mov dword [ebp - 0x40], edi
push 0x421d30
lea eax, [ebp - 0x40]
push eax
call sub.MMVCR70.dll__CxxThrowException
lea eax, [ebp - 0x2f0]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406dc1
lea eax, [ebp - 0x2f0]
push eax
call dword [0x4290d4]
lea eax, [ebp - 0x4f8]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406ddf
lea eax, [ebp - 0x4f8]
push eax
call dword [0x4290d4]
lea eax, [ebp - 0x700]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406dfd
lea eax, [ebp - 0x700]
push eax
call dword [0x4290d4]
cmp dword [ebp - 0x20], 0
je 0x406e0d
push dword [ebp - 0x20]
call dword [sym.imp.MMVCR70.dll_fclose]
pop ecx
push str._IsCredentialRevoked__exception_occurred__bad_credential
call fcn.00419ffe
push 0x10
push 0x7e
push 0x64
call fcn.00405740
add esp, 0x10
mov eax, 0x4067f0
ret