Function at 0x1400db668
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 - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor r13d, r13d
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x58], r13
mov r15, rcx
mov qword [rsp + 0x38], r13
xor eax, eax
lea rcx, [rbp - 0x50]
mov ebx, r13d
mov dword [rsp + 0x40], eax
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0xfc
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x1400db6f7
mov rdx, rdi
lea rcx, str.msft:spp_migrationencryptor_tokenact_1.0
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400db6f7
mov esi, 0x80070057
mov ecx, esi
call fcn.140078308
jmp 0x1400dba27
cmp dword [0x140422d68], 1
mov esi, r13d
mov edi, 0x40
je 0x1400db70f
mov esi, 0x8000ffff
jmp 0x1400db745
mov rcx, qword [0x140421948]
lea r8, [r15 + 0x10]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400db74c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400db737
mov esi, 0x80004005
jmp 0x1400db745
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140078308
mov ecx, esi
call fcn.140078324
test esi, esi
js 0x1400db6eb
lea rax, [0x14002e2e0]
mov qword [rsp + 0x60], 3
mov qword [rsp + 0x68], rax
lea r12, [r15 + 0x10]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov dword [rbp - 0x80], edi
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x70], rax
lea r8d, [r9 + 0x48]
lea ecx, [r8 + 0x71]
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x44]
test esi, esi
js 0x1400db6eb
cmp dword [rsp + 0x48], 0x60
je 0x1400db7c8
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400db6ed
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, str.msft:rm_algorithm_hwid_4.0
call fcn.14009ac54
mov esi, eax
test eax, eax
jns 0x1400db7f2
mov ecx, eax
call fcn.140078308
mov rbx, qword [rsp + 0x50]
jmp 0x1400dba27
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x60]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
jns 0x1400db819
mov ecx, eax
jmp 0x1400db6ed
mov rax, qword [rbx]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [0x1403a2250]
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, str.SppBindingEnvironmentData
call rdi
mov esi, eax
test eax, eax
js 0x1400db812
mov rax, qword [rsp + 0x38]
cmp dword [rax + 8], 4
jne 0x1400db7bc
cmp dword [rax + 0x18], r13d
je 0x1400db7bc
lea rcx, [0x14002bf20]
mov qword [rsp + 0x60], 3
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x70], rdx
xor r9d, r9d
mov edx, dword [rax + 0x18]
mov dword [rsp + 0x78], edx
mov rdx, qword [rax + 0x10]
lea rax, [rbp + 0x88]
lea r8d, [r9 + 0x48]
mov qword [rbp - 0x80], rdx
lea rdx, [rsp + 0x60]
mov dword [rbp - 0x78], 0x40
lea ecx, [r8 + 0x71]
mov qword [rbp - 0x70], r12
mov dword [rbp - 0x68], 0x20
mov qword [rbp - 0x60], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x4c]
test esi, esi
js 0x1400db6eb
lea r9, [rsp + 0x30]
mov dword [rsp + 0x40], 2
mov r8d, 4
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400db916
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400db903
mov esi, 0x80004005
jmp 0x1400db6eb
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400db6eb
cmp dword [rsp + 0x30], 4
jne 0x1400db8f9
lea r8, str.spp:migblob_aesencryptor_tokenact
mov edx, 0x3c
lea rax, [rbp - 0x50]
mov esi, r13d
sub r8, rax
lea rcx, [rbp - 0x50]
lea rax, [rdx + 0x7fffffc2]
test rax, rax
je 0x1400db95a
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400db95a
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400db937
test rdx, rdx
jne 0x1400db968
sub rcx, 2
mov esi, 0x8007007a
mov word [rcx], r13w
test esi, esi
js 0x1400db6eb
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x30]
mov r8d, 0xfc
mov qword [rsp + 0x20], r13
lea rdx, [rbp - 0x50]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x38], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbp + 0x58], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x50]
mov rax, qword [rsp + 0x38]
movups xmmword [rbp + 0x78], xmm1
mov ecx, dword [rax + 0x18]
mov dword [rbp + 0xa8], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400db8ef
cmp dword [rsp + 0x30], 0xfc
jne 0x1400db8f9
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, r14
mov qword [rsp + 0x20], r13
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400db8ef
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 0x18]
cmp dword [rsp + 0x30], ecx
jne 0x1400db8f9
mov qword [r15 + 8], r14
mov ecx, esi
call fcn.140078324
lea rcx, [rsp + 0x38]
call fcn.140068bac
test rbx, rbx
je 0x1400dba52
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
lea rcx, [rsp + 0x58]
call fcn.14005a080
mov eax, esi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0x218]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret