Function at 0x14003d100
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r15, rcx
mov qword [rsp + 0x68], rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov r14b, 1
mov rax, qword [rcx + 0xe0]
add rcx, 0xe0
call qword [rax + 0x10]
mov rdi, rax
mov rcx, rax
call fcn.140062974
mov r12, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x200], rax
mov rax, qword [r15 + 0xe0]
mov r8, rdi
mov rdx, r12
lea rcx, [r15 + 0xe0]
call qword [rax + 8]
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xa0]
call fcn.14003eb90
nop
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1d0], r13
mov esi, 7
mov qword [rsp + 0x1d8], rsi
mov word [rsp + 0x1c0], r13w
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
lea edx, [rsi - 1]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::ios_base::exceptions_int____ptr64]
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x98], r12
lea rdx, [r15 + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400122c0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
lea r8d, [r13 + 6]
lea rdx, [rsp + 0x1e0]
call fcn.140063764
mov edx, eax
test eax, eax
jne 0x14003d274
mov ebx, dword [rsp + 0x1f0]
mov eax, ebx
shr eax, 0xa
test r14b, al
je 0x14003d269
mov eax, dword [rsp + 0x1f4]
cmp eax, 0xa000000c
jne 0x14003d25b
lea ebx, [rsi - 3]
jmp 0x14003d29f
cmp eax, 0xa0000003
jne 0x14003d269
mov ebx, 0xa
jmp 0x14003d29f
shr ebx, 4
and ebx, 1
add ebx, 2
jmp 0x14003d29f
sub eax, 2
je 0x14003d28c
sub eax, 1
je 0x14003d28c
sub eax, 0x32
je 0x14003d28c
cmp eax, 0x46
je 0x14003d28c
xor al, al
jmp 0x14003d28e
mov al, 1
movzx ebx, al
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x14003d644
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d2e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d2df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d2df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061bc0
cmp ebx, 4
je 0x14003d4ef
lea rdx, [r15 + 0x70]
cmp qword [r15 + 0x88], 8
jb 0x14003d2ff
mov rdx, qword [r15 + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x90]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14003d4ef
lea rbx, [r15 + 0x90]
lea rax, [rsp + 0x1c0]
cmp rax, rbx
je 0x14003d36f
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003d356
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x1c0]
call fcn.140005a60
mov rsi, qword [rsp + 0x1d8]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003d3c0
lea rcx, [rsp + 0x48]
call fcn.140005a60
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400090d0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d433
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d42e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d42e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061bc0
mov r8d, dword [r15 + 0x48]
lea rdx, [r15 + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.14003ea70
mov r8d, dword [r15 + 0x40]
cmp qword [rbx + 0x18], 8
jb 0x14003d456
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0xb8]
call fcn.14003eef0
test rax, rax
jne 0x14003d4bc
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14003d4f2
xor r14b, r14b
cmp rsi, 8
jb 0x14003d536
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d530
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d530
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061bc0
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x9c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0x138], 0
je 0x14003d5c3
mov rax, qword [rsp + 0xd0]
lea rcx, [rsp + 0x128]
cmp qword [rax], rcx
jne 0x14003d5c3
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov qword [rax], rcx
mov rax, qword [rsp + 0xf0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x108]
mov dword [rax], edx
cmp byte [rsp + 0x134], 0
je 0x14003d5da
lea rcx, [rsp + 0xb8]
call fcn.14003eef0
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x158]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov edx, 1
mov rcx, r12
call fcn.140061bc0
movzx eax, r14b
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140061ba0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r8, [rsp + 0x48]
call fcn.140011690
int3