Function at 0x18000d440
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, r8
mov rbx, rdx
xor esi, esi
mov dword [rbp - 0x10], esi
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0xf
jbe 0x18000d48e
mov rbx, qword [rbx]
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.180015600
nop
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x18], 1
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0xb8]
mov qword [rbp - 0x10], rax
test rax, rax
sete byte [rbp - 8]
mov byte [rbp - 7], 0
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm1
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x50]
call fcn.1800180e0
nop
mov qword [rbp - 0x68], rsi
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x50]
lea rcx, [rbp]
call fcn.1800189b0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8d, 8
lea rdx, str.os_crypt
lea rcx, [rsp + 0x40]
call fcn.180019d80
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
movzx ecx, byte [rbp]
test cl, cl
jne 0x18000d552
mov byte [rbp], 1
call fcn.18001a7a0
mov qword [rbp + 8], rax
movzx ecx, byte [rbp]
jmp 0x18000d556
mov rax, qword [rbp + 8]
cmp cl, 1
jne 0x18000d8e1
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.180029800
mov rbx, qword [rbp - 0x20]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18000d5b4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d5af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d5af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180034744
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rdx, str.encrypted_key
lea rcx, [rbx + 0x40]
call fcn.180018720
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov r8, rsi
mov qword [rbp + 0x40], rsi
mov ecx, 0xf
mov qword [rbp + 0x48], rcx
mov byte [rbp + 0x30], r8b
mov dword [rbp - 0x10], 8
cmp byte [rax], 3
jne 0x18000d8a9
mov rdx, qword [rax + 8]
lea rax, [rbp + 0x30]
cmp rax, rdx
je 0x18000d62e
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], rcx
jbe 0x18000d61d
mov rdx, qword [rdx]
lea rcx, [rbp + 0x30]
call fcn.180016150
mov rcx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x40]
test r8, r8
jne 0x18000d63a
xor bl, bl
jmp 0x18000d79d
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov qword [rbp - 0x20], r8
lea rdx, [rbp + 0x30]
cmp rcx, 0xf
cmova rdx, qword [rbp + 0x30]
lea r8, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.180004070
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.180016310
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18000d6bc
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d6b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d6b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180034744
mov rbx, qword [rbp + 0x20]
mov eax, 5
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rcx, qword [rbp + 0x10]
sub rbx, rax
lea r8, [rbx + 1]
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x20], rbx
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], ebx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
setne bl
test eax, eax
je 0x18000d74b
mov r8d, dword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.180016150
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x18000d789
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d784
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d784
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180034744
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov rcx, qword [rbp + 0x48]
cmp rcx, 0xf
jbe 0x18000d7d9
lea rdx, [rcx + 1]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d7d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d7d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180034744
nop
movzx edx, byte [rbp]
lea rcx, [rbp + 8]
call fcn.1800173f0
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x18000d825
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d820
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d820
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180034744
movdqa xmm0, xmmword [0x18003c750]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
mov rcx, qword [rbp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx + 0x70], rax
mov rcx, qword [rbp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rbp + rdx + 0x6c], r8d
lea rcx, [rbp + 0x80]
call fcn.180015590
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800346e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.18001ccc0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.1800325e0
nop
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.1800326a0
lea rdx, [0x180043898]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rbp]
call fcn.18001ccc0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.180026720
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0x60]
call fcn.1800267e0
lea rdx, [0x180043898]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3