Function at 0x1400e3af8
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 [0x140436b28]
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 0x1400e3b9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e3b80
mov esi, 0x80004005
jmp 0x1400e3b8e
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140079c40
jmp 0x1400e3d71
cmp dword [rsp + 0x34], edi
je 0x1400e3ba9
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400e3b90
mov eax, dword [rbp + 0x88]
test eax, eax
je 0x1400e3ba0
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 0x1400e3bd8
mov esi, 0x8007000e
jmp 0x1400e3b8e
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 0x1400e3b6f
mov eax, dword [rsp + 0x34]
cmp dword [rbp + 0x88], eax
jne 0x1400e3ba0
mov edi, 0x3c
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rbp - 0x70]
call fcn.140079840
mov esi, eax
test eax, eax
jns 0x1400e3c2d
mov ecx, eax
jmp 0x1400e3b90
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_wcscmp
xor r9d, r9d
test eax, eax
je 0x1400e3c64
and qword [rsp + 0x20], r9
lea ecx, [r9 + 1]
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.14005316c
mov esi, 0x80049e59
jmp 0x1400e3b8e
lea rax, [0x14000a798]
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 0x1400e3b8e
mov rdx, qword [rsp + 0x38]
lea rax, [0x140013358]
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 0x1400e3b8e
mov edx, dword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400e4494
mov esi, eax
test eax, eax
js 0x1400e3c26
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 0x1400e3d83
mov ecx, dword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov ecx, esi
call fcn.140079c60
lea rcx, [rsp + 0x38]
call fcn.14005a9b4
test rbx, rbx
je 0x1400e3dad
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.14037a9a0
add rsp, 0x1a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret