Function at 0x1400eca18
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 [0x140448b38]
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 0x1400ecaba
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ecaa0
mov esi, 0x80004005
jmp 0x1400ecaae
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
jmp 0x1400ecc96
cmp dword [rsp + 0x34], edi
je 0x1400ecac9
mov ecx, 0x8007000d
mov esi, ecx
jmp 0x1400ecab0
mov eax, dword [rbp + 0x88]
test eax, eax
je 0x1400ecac0
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
je 0x1400ecaf6
test rbx, rbx
jne 0x1400ecafd
mov esi, 0x8007000e
jmp 0x1400ecaae
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 0x1400eca8f
mov eax, dword [rsp + 0x34]
cmp dword [rbp + 0x88], eax
jne 0x1400ecac0
mov edi, 0x3c
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rbp - 0x70]
call fcn.1400826b4
mov esi, eax
test eax, eax
jns 0x1400ecb52
mov ecx, eax
jmp 0x1400ecab0
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_wcscmp
xor r9d, r9d
test eax, eax
je 0x1400ecb89
and qword [rsp + 0x20], r9
lea ecx, [r9 + 1]
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.140058358
mov esi, 0x80049e59
jmp 0x1400ecaae
lea rax, [0x14001755c]
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 0x1400ecaae
mov rdx, qword [rsp + 0x38]
lea rax, [0x140020e1c]
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 0x1400ecaae
mov edx, dword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400ed854
mov esi, eax
test eax, eax
js 0x1400ecb4b
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 0x1400ecca8
mov ecx, dword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov ecx, esi
call fcn.140082b34
lea rcx, [rsp + 0x38]
call fcn.140061a14
test rbx, rbx
je 0x1400eccd2
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.140389660
add rsp, 0x1a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret