Function at 0x1400700c0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rbx, rcx
mov esi, 1
mov ecx, esi
call fcn.1400de610
lea r14, str.CPcCryptKeyGenerate::createCryptUserKeys
lea r15, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPcCryptKeyGenerate.cpp
test eax, eax
je 0x140070121
lea rax, str.Create_user_keys_called.
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0x30]
mov r8, r14
mov rdx, r15
mov ecx, esi
call fcn.140028a20
lea r9, [rbx + 0x10]
mov r8d, esi
mov edx, 0x6610
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
cmp eax, esi
je 0x14007025c
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], ax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], ax
mov edx, esi
lea rcx, [rbp - 0x40]
call fcn.140029460
nop
nop
xor eax, eax
lock cmpxchg dword [0x1403e3090], esi
test eax, eax
je 0x14007018d
cmp eax, 1
jne 0x1400701ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140070170
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, esi
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0xb8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0xb8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0xb8]
mov dword [rax + 0x10], reloc.WS2_32.dll_getprotobyname
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
mov dword [rsp + 0x70], reloc.WS2_32.dll_getprotobyname
mov r8d, 0x63
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.14002b640
mov dword [rbp - 0x48], 4
mov r8d, 0x28
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.14002b640
nop
lea rdx, str.Initial_CryptGenKey_failed.
lea rcx, [rsp + 0x30]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002be60
nop
lea rcx, [rsp + 0x30]
call fcn.14002ce60
nop
lea rcx, [rsp + 0x70]
call fcn.140028cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400703f3
lea r9, [rbx + 0x20]
xor r8d, r8d
mov edx, esi
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
cmp eax, esi
je 0x1400703c7
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], 7
mov word [rbp + 0xc8], ax
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], ax
mov edx, esi
lea rcx, [rbp + 0x110]
call fcn.140029460
nop
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], esi
test eax, eax
je 0x1400702ed
cmp eax, 1
jne 0x14007030b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400702d0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, esi
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x208], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x208]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x208]
mov dword [rax + 0x10], 0x3d
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
mov dword [rbp + 0xc0], 0x3d
mov r8d, 0x63
mov rdx, r15
lea rcx, [rbp + 0xc8]
call fcn.14002b640
mov dword [rbp + 0x108], 4
mov r8d, 0x28
mov rdx, r14
lea rcx, [rbp + 0xe8]
call fcn.14002b640
nop
lea rdx, str.Exchange_CryptGenKey_failed.
lea rcx, [rsp + 0x50]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.14002be60
nop
lea rcx, [rsp + 0x50]
call fcn.14002ce60
nop
lea rcx, [rbp + 0xc0]
call fcn.140028cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400703f3
mov ecx, esi
call fcn.1400de610
test eax, eax
je 0x1400703f1
lea rax, str.Create_user_keys_succeeded
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, r14
mov rdx, r15
mov ecx, esi
call fcn.140028a20
xor eax, eax
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret