Function at 0x1400dca6c
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r12, qword [rbp + 0x110]
lea rcx, [rbp - 0x60]
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 - 0x60]
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 0x1400dcb0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400dcaf4
mov esi, 0x80004005
jmp 0x1400dcb02
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140078308
jmp 0x1400dccdd
cmp dword [rsp + 0x34], edi
je 0x1400dcb1d
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400dcb04
mov eax, dword [rbp + 0x98]
test eax, eax
je 0x1400dcb14
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 0x1400dcb4c
mov esi, 0x8007000e
jmp 0x1400dcb02
mov r8d, dword [rbp + 0x98]
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 0x1400dcae3
mov eax, dword [rsp + 0x34]
cmp dword [rbp + 0x98], eax
jne 0x1400dcb14
mov r8d, 0x3c
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140077f90
mov esi, eax
test eax, eax
jns 0x1400dcb9f
mov ecx, eax
jmp 0x1400dcb04
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_wcscmp
xor r9d, r9d
test eax, eax
je 0x1400dcbd6
and qword [rsp + 0x20], r9
lea ecx, [r9 + 1]
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.140052bcc
mov esi, 0x80049e59
jmp 0x1400dcb02
lea rax, [0x1400236a0]
mov dword [rsp + 0x70], 0x60
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x44]
mov edi, 3
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
lea r8d, [rdi + 0x45]
mov qword [rbp - 0x80], rax
lea ecx, [r8 + 0x71]
mov qword [rsp + 0x50], rdi
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x44]
test esi, esi
js 0x1400dcb02
mov rdx, qword [rsp + 0x38]
lea rax, [0x14002c5a0]
mov qword [rsp + 0x58], rax
lea r8d, [rdi + 0x45]
lea rax, [rsp + 0x48]
mov qword [rbp - 0x78], rdx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x50]
mov eax, dword [rbp + 0x98]
lea ecx, [r8 + 0x71]
mov dword [rsp + 0x68], eax
xor r9d, r9d
mov eax, dword [rsp + 0x30]
mov dword [rbp - 0x80], eax
lea rax, [rbp + 0x78]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x78], 0x20
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rsp + 0x48]
test esi, esi
js 0x1400dcb02
mov edx, dword [rbp + 0x98]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400dd23c
mov esi, eax
test eax, eax
js 0x1400dcb98
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 0x1400dccef
mov ecx, dword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov ecx, esi
call fcn.140078324
lea rcx, [rsp + 0x38]
call fcn.14005a080
test rbx, rbx
je 0x1400dcd19
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 + 0xa0]
xor rcx, rsp
call fcn.14035a4e0
add rsp, 0x1b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret