Function at 0x472010
Capabilities:
Create directory
Encrypt data using dpapi
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbf78
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x748
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x190], ecx
mov byte [ebp - 0x189], 0
mov dword [ebp - 4], 0
push 0x98
lea ecx, [ebp - 0xe4]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0xe4]
call fcn.00416190
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x4720dd
push 0x5e58a8
lea ecx, [ebp - 0x320]
call fcn.0040bdb0
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x2cc]
call fcn.0040b380
push 0x638088
lea edx, [ebp - 0x2cc]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x320]
call fcn.0040b3b0
push 4
lea ecx, [ebp - 0x18]
call fcn.004029d0
lea ecx, [ebp - 0x18]
call fcn.0045d290
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x190]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x190]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x198], ecx
cmp dword [ebp - 0x198], 0
je 0x4721f3
mov edx, dword [ebp - 0x198]
and edx, 0xffff
mov dword [ebp - 0x298], edx
push 0x5e58d0
lea eax, [ebp - 0xe4]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x294], eax
push 0x416260
mov ecx, dword [ebp - 0x294]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x298]
push ecx
mov ecx, dword [ebp - 0x29c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x2a0], eax
push 0x5e58cc
mov edx, dword [ebp - 0x2a0]
push edx
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00414da0
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x2d8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x338]
call fcn.0040b3b0
lea ecx, [ebp - 0x18]
call fcn.00402d50
push eax
call fcn.00541000
add esp, 4
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
jne 0x4722f5
push 0
lea ecx, [ebp - 0x18]
call fcn.00402d50
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x4722f5
push str.SHCreateDirectoryEx_failed__0x
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x1a0], eax
push 0x416260
mov ecx, dword [ebp - 0x1a0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x19c]
push edx
mov ecx, dword [ebp - 0x1a4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov dword [ebp - 0x1a8], eax
push 0x5e58e8
mov eax, dword [ebp - 0x1a8]
push eax
call fcn.00414ff0
add esp, 8
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00414da0
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040b380
push 0x638088
lea ecx, [ebp - 0x2e4]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x350]
call fcn.0040b3b0
push 0x5e590c
lea ecx, [ebp - 0x18]
call fcn.0040e010
push 0x4c
lea ecx, [ebp - 0x164]
call fcn.004029d0
push 3
lea ecx, [ebp - 0x164]
call fcn.0042c5d0
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 6
push 0x34
lea ecx, [ebp - 0x118]
call fcn.004029d0
push 0
lea edx, [ebp - 0x164]
push edx
lea ecx, [ebp - 0x118]
call fcn.0042f370
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 4], 7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
call fcn.00446240
push 0xc
lea ecx, [ebp - 0x2c]
call fcn.00417e30
lea ecx, [ebp - 0x2c]
call fcn.00418d60
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x164]
call fcn.00443c70
mov dword [ebp - 0x17c], 0
xor edx, edx
mov dword [ebp - 0x178], edx
lea ecx, [ebp - 0x2c]
call fcn.00418b30
mov dword [ebp - 0x17c], eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.00418b20
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], 0
xor ecx, ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], 0x80
mov dword [ebp - 0x170], str.694N91M93ikK0QZK2I5PO7Lk229H9QZDZVJBN36780LR2EC99g9TGX20903dQ8UjeKE263KpRGIPAN99iWFMORF993Ho9378YnOMF292LCRmm0HOlJ9QVUT620UE3XJi
mov dword [ebp - 0x16c], 0
xor edx, edx
mov dword [ebp - 0x168], edx
lea eax, [ebp - 0x16c]
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x174]
push ecx
push 0x5e5a3c
lea edx, [ebp - 0x17c]
push edx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x472a88
cmp dword [ebp - 0x168], 0
je 0x472a83
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 9
mov dword [ebp - 0x188], 0
xor eax, eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
lea ecx, [ebp - 0x4c]
call fcn.00409640
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x368]
push ecx
mov edx, dword [ebp - 0x190]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x190]
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040a250
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x368]
call fcn.0040a7f0
push 1
lea edx, [ebp - 0x4c]
push edx
call fcn.00470f50
add esp, 8
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
je 0x472502
mov dword [ebp - 0x188], 0xc
mov dword [ebp - 0x180], 0
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x184], ecx
jmp 0x4725dc
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov dword [ebp - 0x1c4], eax
push 0xfa0
mov ecx, dword [ebp - 0x1c4]
call fcn.0040a130
mov byte [ebp - 0x18a], al
movzx edx, byte [ebp - 0x18a]
test edx, edx
jne 0x472534
jmp 0x4725dc
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.004048b0
add esp, 4
mov dword [ebp - 0x1cc], eax
lea ecx, [ebp - 0x560]
push ecx
mov ecx, dword [ebp - 0x1cc]
call fcn.00402ad0
mov dword [ebp - 0x1d0], eax
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1d4]
call fcn.00402a30
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
call fcn.00402d20
mov dword [ebp - 0x1dc], eax
push 0x5e5ac8
mov eax, dword [ebp - 0x1dc]
push eax
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x1e0], eax
push str.Failed_to_create_sec._descriptor
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.00409d00
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x560]
call fcn.00402a50
push 8
lea ecx, [ebp - 0x34]
call fcn.004029d0
mov edx, dword [ebp - 0x190]
add edx, 0x48
push edx
lea ecx, [ebp - 0x34]
call fcn.00462260
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 0xd
push 4
lea ecx, [ebp - 0x1c]
call fcn.00417e30
push 0
push 6
push 2
lea eax, [ebp - 0x188]
push eax
push 0
push 0x40000000
lea ecx, [ebp - 0x18]
call fcn.00402d50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00420f60
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1c]
call fcn.00418da0
cmp eax, 0xffffffff
jne 0x472779
lea ecx, [ebp - 0x18]
call fcn.00402d50
push eax
lea ecx, [ebp - 0x434]
call fcn.00418dd0
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], ecx
mov byte [ebp - 4], 0xf
push str.Failed_to_create_file__
lea edx, [ebp - 0xe4]
push edx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1e8]
call fcn.00418da0
push eax
mov eax, dword [ebp - 0x1ec]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x1f0], eax
push 0x5e5ad4
mov ecx, dword [ebp - 0x1f0]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x1f4], eax
push 0x416260
mov ecx, dword [ebp - 0x1f4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x1f8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1f8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x1fc], eax
push 0x5e5ad0
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00414ff0
add esp, 8
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x434]
call fcn.00418db0
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00414da0
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
mov dword [ebp - 0x204], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x204]
push edx
lea ecx, [ebp - 0x2f0]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x2f0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x380]
call fcn.0040b3b0
mov dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418da0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4728d7
lea ecx, [ebp - 0x18]
call fcn.00402d50
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00418dd0
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
mov byte [ebp - 4], 0x11
push 0x5e5b00
lea edx, [ebp - 0xe4]
push edx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x20c]
call fcn.00418da0
push eax
mov eax, dword [ebp - 0x210]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x214], eax
push 0x5e5af8
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x218], eax
push 0x416260
mov ecx, dword [ebp - 0x218]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x21c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x220], eax
push 0x5e5af4
mov edx, dword [ebp - 0x220]
push edx
call fcn.00414ff0
add esp, 8
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x4b8]
call fcn.00418db0
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00414da0
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x228]
push edx
lea ecx, [ebp - 0x2fc]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x2fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x398]
call fcn.0040b3b0
mov byte [ebp - 0x189], 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1c]
call fcn.00421b30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.004680a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
call fcn.0040a7f0
jmp 0x472a50
mov dword [ebp - 4], 8
jmp 0x472a60
cmp dword [ebp - 0x194], 0
je 0x472a76
mov eax, dword [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x472b40
push 0x5e5b78
lea edx, [ebp - 0xe4]
push edx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x260], eax
push 0x416260
mov ecx, dword [ebp - 0x260]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x264], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x264]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x268], eax
push 0x5e5b58
mov eax, dword [ebp - 0x268]
push eax
call fcn.00414ff0
add esp, 8
lea ecx, [ebp - 0x3b0]
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00414da0
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x308]
call fcn.0040b380
push 0x638088
lea ecx, [ebp - 0x308]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3b0]
call fcn.0040b3b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00418bb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x118]
call fcn.00430c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x164]
call fcn.0042ff20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040c680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.00415390
jmp 0x472d47
mov dword [ebp - 4], 0xffffffff
jmp 0x472d59
jmp 0x472d62
mov al, byte [ebp - 0x189]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 4