Function at 0x140043340
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, rcx
mov qword [rsp + 0x70], rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov r15b, 1
lea rsi, [rcx + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140013ee0
nop
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x48]
call fcn.1400132c0
test al, al
jne 0x1400433c9
mov rdx, rsi
lea rcx, [rsp + 0x1e8]
call fcn.140005d60
mov rdx, rax
call fcn.140044000
test al, al
jne 0x1400433c9
movzx ebx, r15b
jmp 0x1400433cb
xor bl, bl
mov dword [rsp + 0x44], r13d
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140043415
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043410
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043410
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688bc
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
test bl, bl
je 0x1400437cf
mov rax, qword [r14 + 0xe0]
lea rcx, [r14 + 0xe0]
call qword [rax + 0x10]
mov rdi, rax
mov rcx, rax
call fcn.140069634
mov r12, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x1e0], rax
mov rdx, qword [r14 + 0xe0]
mov r9, qword [rdx + 8]
mov r8, rdi
mov rdx, rax
lea rcx, [r14 + 0xe0]
call r9
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xa0]
call fcn.140044f40
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], r13
mov qword [rsp + 0x1d8], 7
mov word [rsp + 0x1c0], r13w
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
mov edx, 6
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
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140043501
mov rdx, qword [rsi]
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 0x140043711
lea rdi, [r14 + 0x90]
lea rax, [rsp + 0x1c0]
cmp rax, rdi
je 0x140043595
mov rdx, qword [rdi + 0x10]
mov r9, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14004355c
mov r9, qword [rdi]
lea rcx, [rsp + 0x1c0]
cmp rdx, 7
ja 0x14004358c
mov qword [rsp + 0x1d0], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x1c0], r13w
jmp 0x140043595
lfence
call fcn.140005f30
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov dword [rsp + 0x44], 2
lea rcx, [rsp + 0x1e8]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x1e8]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140009ee0
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140009f60
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140043647
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043642
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043642
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688bc
mov qword [rsp + 0x60], 7
cmp qword [rsi + 0x18], 7
jbe 0x14004365a
mov rsi, qword [rsi]
mov r8d, dword [r14 + 0x48]
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.140045300
mov r8d, dword [r14 + 0x40]
lea rdx, [r14 + 0x90]
cmp qword [rdx + 0x18], 7
jbe 0x140043683
mov rdx, qword [rdx]
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.140045240
test rax, rax
jne 0x1400436e6
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 0x140043714
xor r15b, r15b
mov rdx, qword [rsp + 0x1d8]
cmp rdx, 7
jbe 0x140043760
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004375a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004375a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688bc
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 r8d, [rcx - 0xb8]
mov dword [rsp + rcx + 0x9c], r8d
lea rcx, [rsp + 0xb8]
call fcn.140044ed0
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.1400688bc
jmp 0x1400437d2
xor r15b, r15b
movzx eax, r15b
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140068870
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