Function at 0x140002070
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Get hostname
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rdi
push r12
lea rbp, [rsp - 0x3f]
sub rsp, 0xb8
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rdx
lea r8, [0x140021950]
mov edi, ecx
lea rdx, [0x1400219a0]
mov rcx, qword [0x140026cf8]
mov ebx, 0x54f
call fcn.140007b20
mov rcx, rax
test rax, rax
je 0x1400023a7
mov qword [rsp + 0xf0], r14
mov r14d, dword [rax]
mov rax, qword [0x140026cf8]
add r14, qword [rax + 8]
mov eax, dword [rcx + 4]
mov dword [rbp - 0x49], eax
je 0x1400023a0
cmp eax, 0x20
jb 0x1400023a0
mov ecx, eax
mov qword [rsp + 0xe0], rsi
call fcn.14000a200
mov rsi, rax
test rax, rax
je 0x14000239c
mov r8d, dword [rbp - 0x49]
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0xb0], r15
call fcn.1400097c0
test edi, edi
je 0x140002343
xor r15d, r15d
mov dword [rbp - 0x41], r15d
sub edi, 1
je 0x14000213f
cmp edi, 1
jne 0x14000233c
mov ebx, r15d
jmp 0x140002144
mov ebx, 2
lea r8, [rbp - 0x41]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x14000233c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000233c
mov ecx, dword [rbp - 0x41]
mov rdi, 0xffffffffffffffff
add ecx, 1
cmovb rcx, rdi
call fcn.14000a200
mov r14, rax
test rax, rax
je 0x14000233c
mov r8d, dword [rbp - 0x41]
xor edx, edx
inc r8d
mov rcx, rax
call fcn.140008fb0
lea r8, [rbp - 0x41]
mov rdx, r14
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x14000233c
mov edx, dword [rbp - 0x41]
mov rcx, r14
inc edx
call fcn.14000bddc
test eax, eax
jne 0x14000233c
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
inc rdi
cmp byte [r14 + rdi], r15b
jne 0x1400021d5
mov rcx, qword [0x140026ee0]
lea rax, [rbp - 1]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x39], 0x20
mov edx, 0x800c
mov ebx, 0x54f
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140002252
mov rcx, qword [rbp - 1]
xor r9d, r9d
mov r8d, edi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140002248
mov rcx, qword [rbp - 1]
lea r9, [rbp - 0x39]
lea r8, [rbp + 0xf]
mov dword [rsp + 0x20], r15d
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
cmovne ebx, r15d
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test ebx, ebx
jne 0x140002361
movups xmm1, xmmword [rbp + 0x1f]
mov rcx, qword [0x140026ee0]
lea rax, [rbp - 0x41]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rbp - 0x39], 1
movups xmmword [rbp - 1], xmm0
lea rdx, [rbp - 0x31]
mov ebx, 0x54f
movups xmm0, xmmword [rbp + 0xf]
lea r8d, [r9 + 0x2c]
mov dword [rbp - 0x31], 0x208
mov dword [rbp - 0x2d], 0x6610
movups xmmword [rbp - 0x25], xmm0
mov dword [rbp - 0x29], 0x20
movups xmmword [rbp - 0x15], xmm1
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14000231b
mov rcx, qword [rbp - 0x41]
lea r8, [rbp - 0x39]
xor r9d, r9d
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140002311
mov rcx, qword [rbp - 0x41]
lea r8, [rbp - 1]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140002311
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
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 ebx, r15d
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test ebx, ebx
jne 0x140002361
cmp dword [rbp - 0x49], 0x20
jb 0x14000233c
test r12, r12
jne 0x14000234f
call fcn.14000a1cc
mov dword [rax], 0x16
call fcn.14000a04c
jmp 0x140002361
mov ebx, 0x54f
jmp 0x140002361
cmp dword [rbp - 0x49], 0x20
jb 0x140002361
xor r15d, r15d
mov ebx, r15d
movups xmm0, xmmword [rsi]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [r12 + 0x10], xmm1
mov rcx, rsi
call fcn.14000a1ec
mov r15, qword [rsp + 0xb0]
mov eax, ebx
mov rsi, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xf0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007c70
add rsp, 0xb8
pop r12
pop rdi
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x140002373
mov eax, 0x490
jmp 0x14000237b
mov eax, 0x490
jmp 0x140002383