Function at 0x1400df5d0
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12, qword [rbp + 0x100]
lea rcx, [rbp - 0x70]
mov r14, r8
mov rsi, rdx
mov edi, 0xfc
xor edx, edx
mov r8d, edi
mov r15, r9
call sub.msvcrt.dll_memset
xor ebx, ebx
lea r9, [rsp + 0x34]
and qword [rsp + 0x38], rbx
lea rdx, [rbp - 0x70]
and dword [rsp + 0x30], ebx
mov r8d, edi
and qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400df672
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400df658
mov esi, 0x80004005
jmp 0x1400df666
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.1400790f8
jmp 0x1400df849
cmp dword [rsp + 0x34], edi
je 0x1400df681
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400df668
mov eax, dword [rbp + 0x88]
test eax, eax
je 0x1400df678
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400df6b0
mov esi, 0x8007000e
jmp 0x1400df666
mov r8d, dword [rbp + 0x88]
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400df647
mov eax, dword [rsp + 0x34]
cmp dword [rbp + 0x88], eax
jne 0x1400df678
mov edi, 0x3c
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rbp - 0x70]
call fcn.140078cfc
mov esi, eax
test eax, eax
jns 0x1400df705
mov ecx, eax
jmp 0x1400df668
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_wcscmp
xor r9d, r9d
test eax, eax
je 0x1400df73c
and qword [rsp + 0x20], r9
lea ecx, [r9 + 1]
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.140052eec
mov esi, 0x80049e59
jmp 0x1400df666
lea rax, [0x140001e78]
mov qword [rsp + 0x50], 3
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x70], 0x60
mov qword [rsp + 0x60], rax
mov r8, rdi
lea rax, [rbp + 8]
mov ecx, 0xb9
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x74], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x7c], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x44]
test esi, esi
js 0x1400df666
mov rdx, qword [rsp + 0x38]
lea rax, [0x14000b3f8]
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x7c], rdx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x50]
mov eax, dword [rbp + 0x88]
mov r8, rdi
mov dword [rsp + 0x68], eax
mov ecx, 0xb9
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x78], eax
lea rax, [rbp + 0x68]
mov qword [rbp - 0x7c], rax
mov qword [rsp + 0x6c], rbx
mov qword [rsp + 0x50], 3
mov dword [rsp + 0x74], 0x20
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x48]
test esi, esi
js 0x1400df666
mov edx, dword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400dfff4
mov esi, eax
test eax, eax
js 0x1400df6fe
mov rax, qword [rsp + 0x38]
and qword [rsp + 0x38], 0
mov qword [r15], rax
mov eax, dword [rsp + 0x30]
mov dword [r14], eax
mov eax, dword [rsp + 0x40]
mov dword [r12], eax
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400df85b
mov ecx, dword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov ecx, esi
call fcn.140079118
lea rcx, [rsp + 0x38]
call fcn.14005a598
test rbx, rbx
je 0x1400df885
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140368700
add rsp, 0x1a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret