Function at 0x1400e21a4
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 [0x14042eb28]
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 0x1400e2246
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e222c
mov esi, 0x80004005
jmp 0x1400e223a
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14007ab24
jmp 0x1400e241d
cmp dword [rsp + 0x34], edi
je 0x1400e2255
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400e223c
mov eax, dword [rbp + 0x88]
test eax, eax
je 0x1400e224c
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 0x1400e2284
mov esi, 0x8007000e
jmp 0x1400e223a
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 0x1400e221b
mov eax, dword [rsp + 0x34]
cmp dword [rbp + 0x88], eax
jne 0x1400e224c
mov edi, 0x3c
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rbp - 0x70]
call fcn.14007a728
mov esi, eax
test eax, eax
jns 0x1400e22d9
mov ecx, eax
jmp 0x1400e223c
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_wcscmp
xor r9d, r9d
test eax, eax
je 0x1400e2310
and qword [rsp + 0x20], r9
lea ecx, [r9 + 1]
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.1400542dc
mov esi, 0x80049e59
jmp 0x1400e223a
lea rax, [0x14000ad78]
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 0x1400e223a
mov rdx, qword [rsp + 0x38]
lea rax, [0x140013c78]
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 0x1400e223a
mov edx, dword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400e2bc4
mov esi, eax
test eax, eax
js 0x1400e22d2
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 0x1400e242f
mov ecx, dword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov ecx, esi
call fcn.14007ab44
lea rcx, [rsp + 0x38]
call fcn.14005ba10
test rbx, rbx
je 0x1400e2459
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.14036e5e0
add rsp, 0x1a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret