Function at 0x180065f90
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x330
mov r14, rcx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x40], edi
mov ebx, 0x30
mov word [rsp + 0x100], bx
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x102]
call fcn.18006e5e0
mov word [rsp + 0xb8], bx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xba], xmm0
mov qword [rsp + 0xca], rax
mov dword [rsp + 0xd2], eax
mov word [rsp + 0xd6], ax
mov byte [rsp + 0xd8], al
mov word [rsp + 0x60], bx
mov qword [rsp + 0x62], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
mov byte [rsp + 0x70], al
mov word [rsp + 0x80], bx
mov qword [rsp + 0x82], rax
mov dword [rsp + 0x8a], eax
mov word [rsp + 0x8e], ax
mov byte [rsp + 0x90], al
mov word [rsp + 0x210], bx
xor edx, edx
mov r8d, 0x116
lea rcx, [rsp + 0x212]
call fcn.18006e5e0
nop
mov r15d, 1
mov word [rsp + 0x368], r15w
mov qword [rsp + 0x98], r14
lea r9d, [rdi + 0x53]
lea r8, [rsp + 0x368]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x100]
call fcn.18002dab0
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x40], eax
cmp eax, 0x100
ja 0x180066322
mov eax, 2
mov word [rsp + 0x370], ax
mov qword [rsp + 0xa0], r14
lea r9d, [rdi + 0x53]
lea r8, [rsp + 0x370]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xb8]
call fcn.18002dab0
mov rbx, rax
mov qword [rsp + 0xe8], rax
cmp eax, 0x20
ja 0x180066322
mov eax, 3
mov word [rsp + 0x378], ax
mov qword [rsp + 0xa8], r14
lea r9d, [rdi + 0x53]
lea r8, [rsp + 0x378]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x80]
call fcn.18002dab0
mov qword [rsp + 0xf0], rax
mov edx, edi
mov dword [rsp + 0x78], edx
cmp edx, 0x10
jge 0x180066175
movsxd rcx, edx
cmp edx, eax
ja 0x18006616c
movzx r8d, byte [rsp + rcx + 0x80]
test r8b, r8b
je 0x18006616c
movsxd rcx, edx
mov byte [rsp + rcx + 0x60], r8b
jmp 0x180066171
mov byte [rsp + rcx + 0x60], 0x30
inc edx
jmp 0x180066144
mov esi, dword [rsp + 0x40]
add esi, 0x10
and esi, 0xfffffff0
mov dword [rsp + 0x20], 8
mov r9d, 0x18
lea r8, str.Error:_no_passphrase_specified_afterh__phrase_option.
lea rdx, str.M0_fN._vN__
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1800661e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x180066322
mov dword [rsp + 0x20], edi
mov r9d, 0x18
lea r8, str.Can_not_access_socks5_bind_data_from_different_thread
lea rdx, str.M0_fN._vN__
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180066322
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180066322
xor r9d, r9d
mov r8d, ebx
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180066322
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
mov r8, qword [rsp + 0x48]
mov edx, 0x6610
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x180066322
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x180066322
mov qword [rsp + 0x48], rdi
xor r9d, r9d
lea r8, [rsp + 0x60]
mov edx, r15d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180066322
mov ecx, esi
call fcn.18007218c
mov rbx, rax
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x100]
mov rcx, rax
call fcn.18006e1d0
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, r15d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x18006631a
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0xb0], rax
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.18002ef20
mov rbx, rax
mov r8d, dword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.18006e1d0
mov rcx, rbx
call fcn.180072184
jmp 0x18006632e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180066343
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x58], rdi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180066358
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18006636f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x50], rdi
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x370], rax
mov qword [rsp + 0x368], r14
lea rax, [rsp + 0x210]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x368]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x370]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0x75]
call fcn.18003c470
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret