Function at 0x1400010b0
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x19a8]
mov eax, 0x1aa8
call fcn.140002db0
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x1970], rax
mov qword [rsp + 0x1ad0], rbx
xor eax, eax
mov qword [rsp + 0x1aa0], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x1a98], rdi
mov rbx, rcx
mov qword [rsp + 0x1a88], r13
lea rcx, [rbp]
mov r13, rdx
mov qword [rsp + 0x1a80], r15
xor edx, edx
mov dword [rbp - 0x74], eax
mov r8d, 0x1528
mov qword [rbp - 0x48], rax
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x20], xmm0
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
mov qword [rbp - 0x70], 0xffffffffffffffff
lea rax, vtable.CImage.0
mov qword [rbp - 0x58], r14
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp + 0x1538]
movdqa xmmword [rbp - 0x10], xmm1
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x153c]
lea rcx, [rbp + 0x1570]
xor edx, edx
mov dword [rbp - 0x78], eax
mov r8d, 0x400
mov dword [rbp + 0x1530], r14d
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
mov dword [rsp + 0x48], r14d
lea rcx, str.___Path___s_n
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x44], 1
call fcn.140001010
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, rax
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x80]
call fcn.140001990
mov rdx, rax
lea rcx, str.___pImageBase__0x_p_n
mov rbx, rax
call fcn.140001010
test rbx, rbx
jne 0x14000125b
lea rcx, [rbp + 0x1020]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x400
jg 0x140001247
lea rdx, [rbp + 0x1020]
lea rcx, [rbp + 0x1570]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rbp + 0x1570]
lea rcx, [0x140003370]
call fcn.140001010
jmp 0x140001825
mov rdx, r14
lea rcx, [0x140003370]
call fcn.140001010
jmp 0x140001825
mov rax, qword [rbp - 0x50]
mov ecx, 0x5045
cmp word [rax + 0x12], cx
jne 0x14000127b
lea rcx, [0x140003388]
call fcn.140001010
jmp 0x140001825
mov rax, qword [rbp - 0x20]
lea rcx, [0x1400033a0]
mov qword [rsp + 0x1a90], r12
mov r8d, dword [rax + 4]
mov edx, dword [rax]
call fcn.140001010
mov rax, qword [rbp - 0x20]
lea rcx, str.___dwOldIIDCnt___d__Size__0x_X_n
mov r12d, dword [rax + 4]
movabs rax, 0xcccccccccccccccd
mul r12
mov r8d, r12d
mov qword [rsp + 0x58], r12
mov rax, rdx
shr rax, 4
mov edx, eax
mov qword [rsp + 0x50], rax
lea ebx, [rax + 1]
lea edi, [rbx + rbx*4]
shl edi, 2
mov dword [rsp + 0x4c], edi
call fcn.140001010
mov r8d, edi
lea rcx, str.___dwNewIIDCnt___d__Size__0x_X_n
mov edx, ebx
call fcn.140001010
mov rax, qword [rbp - 0x20]
movzx edx, r14w
movzx r9d, word [rbp - 0x60]
mov rsi, qword [rbp - 0x28]
mov dword [rsp + 0x40], edi
mov r8d, dword [rax]
cmp r14w, r9w
jae 0x14000132d
nop dword [rax]
mov ecx, dword [rsi + 0xc]
cmp ecx, r8d
ja 0x140001320
add ecx, dword [rsi + 8]
cmp r8d, ecx
jb 0x140001330
add rsi, 0x28
inc dx
cmp dx, r9w
jb 0x140001310
mov rsi, r14
mov r9d, dword [rsi + 0x10]
lea rcx, [0x140003420]
mov r8d, dword [rsi + 0x14]
mov rdx, rsi
call fcn.140001010
mov ecx, dword [rsi + 8]
mov ebx, dword [rsi + 0x10]
sub ebx, ecx
cmp ecx, dword [rsi + 0x10]
lea rcx, [0x140003458]
cmovae ebx, r14d
mov edx, ebx
call fcn.140001010
mov r15, 0xffffffffffffffff
nop dword [rax + rax]
inc r15
cmp byte [r15 + r13], r14b
jne 0x140001370
add r15d, 0x2b
and r15d, 0xfffffffc
cmp r15d, r12d
jbe 0x14000139c
mov dword [rsp + 0x44], r14d
add edi, 7
and edi, 0xfffffff8
mov dword [rsp + 0x48], edi
add edi, r15d
mov dword [rsp + 0x40], edi
mov edx, edi
lea rcx, [0x140003478]
call fcn.140001010
cmp ebx, edi
jb 0x1400013cc
lea rcx, [0x1400034a8]
call fcn.140001010
mov r12d, dword [rsi + 8]
add r12d, 3
and r12d, 0xfffffffc
add r12d, dword [rsi + 0xc]
jmp 0x14000140a
lea rcx, str.___
call fcn.140001010
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.140001d70
lea rcx, [0x140003510]
mov rbx, rax
mov r9d, dword [rax + 0x10]
mov r8d, dword [rax + 0x14]
mov edx, dword [rax + 0xc]
call fcn.140001010
mov r12d, dword [rbx + 0xc]
mov dword [rsp + 0x68], 1
mov ebx, dword [rsp + 0x40]
mov rdi, qword [rbp - 8]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rsp + 0x58]
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [0x140003550]
call fcn.140001010
mov eax, dword [rsp + 0x50]
lea rax, [rax + rax*4]
lea rax, [rax - 5]
lea rax, [rbx + rax*4]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x44], r14d
je 0x140001475
mov rax, qword [rbp - 0x20]
mov ebx, dword [rax]
mov edi, ebx
add rdi, qword [rbp - 0x58]
jmp 0x140001481
mov eax, dword [rsp + 0x48]
lea rdi, [rbx + rax]
lea ebx, [rax + r12]
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea r8, [rdi + 0x20]
mov rcx, r13
mov rdx, r8
sub rdx, r13
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400014a0
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rax + r13], r14b
jne 0x1400014b5
mov byte [rax + r8], r14b
lea r13, [r8 + 1]
add r13, rax
lea rcx, str.NULL
lea r15, [rax + r8]
sub rax, rcx
mov word [r13], r14w
lea rdx, [rax + r8]
movzx eax, byte [rcx]
mov byte [rcx + rdx + 3], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400014e0
lea rcx, [0x140003570]
call fcn.140001010
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [r15 + rcx + 3], r14b
jne 0x140001502
mov r15d, r13d
sub r15d, edi
add r15d, ecx
lea rcx, [0x140003590]
lea edx, [r15 + 3]
call fcn.140001010
lea eax, [rbx + 0x20]
mov ecx, ebx
sub rcx, rdi
add rcx, r13
mov qword [rdi], rcx
mov qword [rdi + 0x10], rcx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc], eax
lea eax, [rbx + 0x10]
mov dword [rcx + 0x10], eax
mov dword [rcx], ebx
lea rcx, [0x1400035b8]
call fcn.140001010
mov rax, qword [rbp - 0x20]
mov r13d, dword [rsp + 0x4c]
mov dword [rax + 4], r13d
mov rax, qword [rbp - 0x20]
mov dword [rax], r12d
mov r12, qword [rsp + 0x1a90]
cmp dword [rsp + 0x68], r14d
jne 0x14000157d
mov eax, dword [rsp + 0x40]
add dword [rsi + 8], eax
or dword [rsi + 0x24], 0x80000000
mov ecx, 0x5045
mov rax, qword [rbp - 0x38]
mov dword [rax + 0xc8], r14d
mov rax, qword [rbp - 0x38]
mov dword [rax + 0xcc], r14d
mov rax, qword [rbp - 0x50]
mov word [rax + 0x12], cx
lea rcx, [0x1400035d0]
call fcn.140001010
lea rcx, [0x1400035e8]
call fcn.140001010
mov rsi, qword [rsp + 0x60]
xor r9d, r9d
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rbp - 0x38]
lea r9, [rbp + 0x1530]
mov rdx, qword [rbp - 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], r14
mov r8d, dword [rax + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001693
mov r8d, dword [rbp + 0x1530]
lea rcx, str.___PE
xor edx, edx
call fcn.140001010
mov rax, qword [rbp - 0x38]
mov r10d, r14d
cmp ebx, dword [rax + 0x3c]
jb 0x140001662
movzx r11d, word [rbp - 0x60]
movzx r8d, r14w
mov rdx, qword [rbp - 0x28]
cmp r14w, r11w
jae 0x14000165f
mov r9d, dword [rdx + 0xc]
cmp r9d, ebx
ja 0x140001645
mov ecx, dword [rdx + 8]
add ecx, r9d
cmp ebx, ecx
jb 0x140001655
add rdx, 0x28
inc r8w
cmp r8w, r11w
jb 0x140001632
jmp 0x14000165f
mov r10d, dword [rdx + 0x14]
sub r10d, r9d
add r10d, ebx
mov ebx, r10d
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp + 0x1530]
mov qword [rsp + 0x20], r14
lea r8d, [r15 + 3]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400016fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x68]
mov r8d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rax, qword [rsp + 0x68]
lea r8, str.____
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, [0x140003738]
lea rcx, [rbp + 0x1020]
call fcn.1400018b0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001825
mov r8d, dword [rbp + 0x1530]
lea rcx, [0x140003648]
mov edx, ebx
call fcn.140001010
mov rax, qword [rbp - 0x20]
mov r10d, r14d
mov ebx, dword [rax]
mov rax, qword [rbp - 0x38]
cmp ebx, dword [rax + 0x3c]
jb 0x140001766
movzx r11d, word [rbp - 0x60]
movzx r8d, r14w
mov rdx, qword [rbp - 0x28]
cmp r14w, r11w
jae 0x140001763
mov r9d, dword [rdx + 0xc]
cmp r9d, ebx
ja 0x140001749
mov ecx, dword [rdx + 8]
add ecx, r9d
cmp ebx, ecx
jb 0x140001759
add rdx, 0x28
inc r8w
cmp r8w, r11w
jb 0x140001736
jmp 0x140001763
mov r10d, dword [rdx + 0x14]
sub r10d, r9d
add r10d, ebx
mov ebx, r10d
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsp + 0x70]
lea r9, [rbp + 0x1530]
mov r8d, r13d
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400017fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov ebx, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rax, qword [rsp + 0x70]
lea r8, str.____
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, [0x140003738]
lea rcx, [rbp + 0x1020]
call fcn.1400018b0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001825
mov r8d, dword [rbp + 0x1530]
lea rcx, [0x140003680]
mov edx, ebx
call fcn.140001010
lea rcx, str.__
call fcn.140001010
mov r14d, 1
mov rcx, qword [rbp - 0x70]
lea rax, vtable.CImage.0
mov r15, qword [rsp + 0x1a80]
mov r13, qword [rsp + 0x1a88]
mov rdi, qword [rsp + 0x1a98]
mov rsi, qword [rsp + 0x1aa0]
mov rbx, qword [rsp + 0x1ad0]
mov qword [rbp - 0x80], rax
cmp rcx, 0xffffffffffffffff
je 0x140001870
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x70], 0xffffffffffffffff
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140001887
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, r14d
mov rcx, qword [rbp + 0x1970]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x1aa8
pop r14
pop rbp
ret