Function at 0x140001540
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:
push rbx
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
cmp ecx, 5
je 0x14000157c
mov rdx, qword [rdx]
lea rcx, str.___Usage:__s__Host___Port___Cipher___Key__n
call fcn.140001010
mov eax, 1
jmp 0x1400017fa
mov rcx, qword [rdx + 0x10]
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rdi
mov rdi, qword [rdx + 8]
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rsi, qword [rbx + 0x18]
mov r13, 0xffffffffffffffff
mov rbp, qword [rbx + 0x20]
mov r15d, eax
mov rbx, r13
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400015d7
inc rbx
mov eax, 2
mul rbx
cmovb rax, r13
mov rcx, rax
call fcn.140001b54
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rbx, r13
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140001610
inc rbx
mov eax, 2
mul rbx
cmovb rax, r13
mov rcx, rax
call fcn.140001b54
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov r12, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rbx, r13
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140001645
inc rbx
mov eax, 2
mul rbx
cmovb rax, r13
mov rcx, rax
call fcn.140001b54
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov r9, r12
lea rcx, [rsp + 0x40]
mov r8d, r15d
mov rdx, r14
call fcn.140001210
mov r12, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xc0]
movups xmm0, xmmword [rax]
movq rsi, xmm0
movups xmmword [rsp + 0x78], xmm0
test rsi, rsi
jne 0x1400016c0
lea rcx, str.____Failed_in_getting_AES_Encrypted_PE_n
call fcn.140001010
mov eax, r13d
jmp 0x1400017d2
mov r9, rdi
lea rcx, [rsp + 0x50]
mov r8d, r15d
mov rdx, r14
call fcn.140001210
movups xmm0, xmmword [rax]
movq rbx, xmm0
movups xmmword [rsp + 0x30], xmm0
test rbx, rbx
jne 0x1400016fb
lea rcx, str.____Failed_in_getting_key_n
call fcn.140001010
mov eax, 0xfffffffe
jmp 0x1400017d2
movups xmm0, xmmword [rsp + 0x78]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x68]
psrldq xmm0, 8
xor edx, edx
movd dword [rsp + 0x60], xmm0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
movups xmm0, xmmword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
mov rdx, rbx
psrldq xmm0, 8
movq r8, xmm0
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001af0
add rsp, 0xb0
pop rbx
ret