Function at 0x1400e6cac
Capabilities:
Generate random numbers via winapi
Get system information on windows
Make suspicious ntquerysysteminformation call
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor esi, esi
mov r15, r8
mov rdi, rdx
mov qword [rsp + 0x58], rsi
mov r13, rcx
mov qword [rsp + 0x38], rsi
mov ebx, esi
mov dword [rsp + 0x40], esi
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0xfc
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x1400e6d39
mov rdx, rdi
lea rcx, str.msft:spp_migrationencryptor_tokenact_1.0
call qword [sym.imp.msvcrt.dll__wcsicmp]
xor edi, edi
test eax, eax
je 0x1400e6d39
mov esi, 0x80070057
mov ecx, esi
call fcn.14007ac40
jmp 0x1400e707b
cmp dword [0x14045db08], 1
lea r12, [r13 + 0x10]
mov esi, edi
mov r14d, 0x40
je 0x1400e6d55
mov esi, 0x8000ffff
jmp 0x1400e6d8b
mov rcx, qword [0x14045c7e8]
mov r8, r12
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400e6d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e6d7d
mov esi, 0x80004005
jmp 0x1400e6d8b
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14007ac40
mov ecx, esi
call fcn.14007ace8
test esi, esi
js 0x1400e6d2d
lea rax, [0x140043adc]
mov dword [rbp - 0x80], r14d
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x60], 3
mov qword [rsp + 0x70], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x7c], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x74], rax
lea r14d, [r9 + 0x3c]
mov r8d, r14d
lea ecx, [r14 + 0x7d]
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x44]
test esi, esi
js 0x1400e6d2d
cmp dword [rsp + 0x48], 0x60
je 0x1400e6e0e
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400e6d2f
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, str.msft:rm_algorithm_hwid_4.0
call fcn.14009f95c
mov esi, eax
test eax, eax
jns 0x1400e6e38
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rsp + 0x50]
jmp 0x1400e707b
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x60]
mov rax, qword [0x1403d25b8]
mov rcx, rdi
call rax
mov rax, rdi
mov rcx, rbx
call rax
xor edi, edi
mov esi, eax
test eax, eax
jns 0x1400e6e67
mov ecx, eax
jmp 0x1400e6d2f
mov rax, qword [rbx]
mov rdi, qword [rax + 0x38]
mov rax, qword [0x1403d25b8]
mov rcx, rdi
call rax
mov rax, rdi
lea r8, [rsp + 0x38]
lea rdx, str.SppBindingEnvironmentData
mov rcx, rbx
call rax
xor edi, edi
mov esi, eax
test eax, eax
js 0x1400e6e60
mov rax, qword [rsp + 0x38]
cmp dword [rax + 8], 4
jne 0x1400e6e02
mov ecx, dword [rax + 0x18]
test ecx, ecx
je 0x1400e6e02
mov rdx, qword [rax + 0x10]
xor r9d, r9d
lea rax, [0x140045e9c]
mov dword [rsp + 0x78], ecx
mov qword [rsp + 0x68], rax
mov r8, r14
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x7c], rdx
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x60]
lea rax, [rbp + 0x78]
mov qword [rsp + 0x60], 3
mov ecx, 0xb9
mov qword [rbp - 0x6c], rax
mov dword [rbp - 0x7c], 0x40
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x70], 0x20
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x4c]
test esi, esi
js 0x1400e6d2d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x40], 2
lea r8d, [rdi + 4]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400e6f66
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e6f53
mov esi, 0x80004005
jmp 0x1400e6d2d
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400e6d2d
cmp dword [rsp + 0x30], 4
jne 0x1400e6f49
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rax, [rbp - 0x60]
sub rdx, rax
lea rcx, [rbp - 0x60]
lea rax, [r14 + 0x7fffffc2]
test rax, rax
je 0x1400e6fa1
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400e6fa1
mov word [rcx], ax
add rcx, 2
sub r14, 1
jne 0x1400e6f7f
test r14, r14
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
mov rax, r14
neg rax
sbb esi, esi
not esi
and esi, 0x8007007a
test r14, r14
je 0x1400e6d2d
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x30]
mov r8d, 0xfc
mov qword [rsp + 0x20], rdi
lea rdx, [rbp - 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x28], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbp + 0x48], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x50]
mov rax, qword [rsp + 0x38]
movups xmmword [rbp + 0x68], xmm1
mov ecx, dword [rax + 0x18]
mov dword [rbp + 0x98], ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e6f3f
cmp dword [rsp + 0x30], 0xfc
jne 0x1400e6f49
mov rax, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x20], rdi
mov r8d, dword [rax + 0x18]
mov rdx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e6f3f
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 0x18]
cmp dword [rsp + 0x30], ecx
jne 0x1400e6f49
mov qword [r13 + 8], r15
mov ecx, esi
call fcn.14007ace8
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400e7097
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x38], rdi
test rbx, rbx
je 0x1400e70b7
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rdi
call rax
mov rax, rdi
mov rcx, rbx
call rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e70c7
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140388a50
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret