Function at 0x14006af2c
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
mov eax, dword [0x1401327a0]
mov rbx, r8
mov esi, 0x200
test eax, eax
jne 0x14006af98
lea r8d, [rax + 0x30]
lea rcx, [r11 - 0x78]
xor edx, edx
call fcn.1400f8760
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x94]
cmp eax, esi
jb 0x14006af92
dec eax
mov dword [0x1401327a0], eax
jmp 0x14006af98
mov eax, dword [0x1401327a0]
mov r12, qword [rsp + 0x168]
test eax, eax
mov r9d, 0xffff
cmovne r9d, eax
test r12, r12
sets r10b
mov byte [rsp + 0x168], r10b
test r10b, r10b
je 0x14006afc3
neg r12
mov eax, dword [rsp + 0x150]
mov ecx, dword [rsp + 0x158]
mov rdi, qword [rsp + 0x140]
test eax, eax
mov r11, rbx
cmovne esi, eax
mov rax, qword [rsp + 0x148]
test ecx, ecx
je 0x14006b00b
test rax, rax
je 0x14006aff6
lea r11, [rdi + rax]
cmp esi, 1
jle 0x14006b04b
mov rax, rdi
movsxd r8, esi
cqo
idiv r8
sub rdi, rdx
jmp 0x14006b02d
test rax, rax
je 0x14006b014
lea r11, [rdi + rax]
cmp esi, 1
jle 0x14006b04b
mov rax, rdi
movsxd r8, esi
cqo
idiv r8
movsxd rax, edx
mov rcx, rdx
sub rdi, rax
movsxd rax, ecx
add rdi, rax
mov rax, rdi
cqo
idiv r8
movsxd rax, edx
mov r8, rdx
mov qword [rsp + 0x30], rdx
sub rdi, rax
jmp 0x14006b053
xor r8d, r8d
mov qword [rsp + 0x30], r8
movsxd rbp, dword [rsp + 0x130]
cmp r11, rbx
mov eax, r9d
cmovg r11, rbx
not eax
movsxd rdx, r9d
movsxd rcx, eax
add rdx, r11
movsxd rax, r8d
and rdx, rcx
lea r15, [rax + rdi]
mov r14, rcx
and r14, rdi
cmp rdx, rbx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x160]
cmovg rdx, rbx
mov r13, r11
sub r13, rbp
xor ebx, ebx
mov qword [rsp + 0x58], r11
sub r13, r15
mov r9, rbp
mov qword [rsp + 0x120], rbp
test rax, rax
jne 0x14006b0ec
mov rcx, qword [rsp + 0x118]
lea r8d, [rbx + 2]
sub rdx, r14
mov r9, r14
call fcn.1400dbc0c
mov r8, qword [rsp + 0x30]
mov r10b, byte [rsp + 0x168]
mov r11, qword [rsp + 0x58]
mov rbx, rax
mov r9, rbp
test rax, rax
je 0x14006b1c2
mov rbp, r15
xor edi, edi
sub rbp, r14
add rbp, rax
cmp esi, 1
mov rax, r13
jle 0x14006b10b
movsxd rcx, esi
cqo
idiv rcx
imul rax, rcx
test r10b, r10b
je 0x14006b120
add rbp, rax
neg esi
mov rdi, rax
movsxd rsi, esi
mov r14, rsi
jmp 0x14006b127
movsxd rsi, esi
lea r14, [rsi + rax]
cmp rdi, r13
jg 0x14006b4a0
or r13, 0xffffffffffffffff
test rdi, rdi
js 0x14006b4a4
cmp rdi, r14
je 0x14006b4a4
mov rdx, qword [rsp + 0x128]
mov r8, r9
mov rcx, rbp
call fcn.140058f2c
test eax, eax
jne 0x14006b18c
mov rax, qword [rsp + 0x110]
test rax, rax
je 0x14006b1a9
lea rdx, [rdi + r15]
mov rcx, rax
call fcn.14006ac14
xor r13d, r13d
test r12, r12
jle 0x14006b184
sub r12, 1
je 0x14006b194
mov r9, qword [rsp + 0x120]
add rdi, rsi
add rbp, rsi
jmp 0x14006b13d
test rbx, rbx
je 0x14006b1a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
jmp 0x14006b4b5
add rdi, r15
test rbx, rbx
je 0x14006b1ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, rdi
jmp 0x14006b4b5
mov rcx, qword [rsp + 0x118]
lea eax, [rbp + r8]
mov rdx, rdi
movsxd r13, eax
mov rax, r11
xor r8d, r8d
sub rax, r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], rax
call fcn.14005a4b0
cmp rdi, rax
je 0x14006b209
test rbx, rbx
je 0x14006b200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or rax, 0xffffffffffffffff
jmp 0x14006b4b5
mov rax, qword [rsp + 0x58]
mov rbp, r13
lea r15, [r13 + 0x1ff]
sub rax, rdi
shl rbp, 2
cmp rbp, rax
mov qword [rsp + 0x88], rax
cmovg rbp, rax
mov rax, 0xfffffffffffffe00
and r15, rax
lea r14, [rbp + 0x1ff]
and r14, rax
mov eax, 0x400000
cmp r14, rax
cmovl r14, rax
and qword [rsp + 0x140], 0
jmp 0x14006b25e
mov r13, qword [rsp + 0x68]
lea rdx, [r14 + r13*4 + 0x100800]
lea rcx, [rsp + 0x140]
call fcn.140061424
mov r13, rax
test rax, rax
je 0x14006b28b
add r13, 0x20000
and r13, 0xfffffffffffe0000
jne 0x14006b2b2
cmp r14, rbp
jl 0x14006b493
mov rax, r14
cqo
sub rax, rdx
sar rax, 1
lea r14, [rax + 0x1ff]
and r14, 0xfffffffffffffe00
test r13, r13
je 0x14006b259
cmp r14, r15
mov qword [rsp + 0x40], r13
jl 0x14006b493
xor ecx, ecx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dl, byte [rsp + 0x168]
mov eax, esi
mov ecx, esi
mov qword [rsp + 0x160], 0x3e8
neg ecx
test dl, dl
cmovne eax, ecx
cdqe
mov qword [rsp + 0x78], rax
test dl, dl
jne 0x14006b4c9
cmp rdi, qword [rsp + 0x60]
jg 0x14006b493
mov rax, qword [rsp + 0x58]
mov r15, r14
sub rax, rdi
sub r15, rbp
add rax, 0x1ff
and rax, 0xfffffffffffffe00
cmp rax, r15
cmovg rax, r15
test rax, rax
jle 0x14006b493
mov rcx, qword [rsp + 0x118]
and qword [rsp + 0x168], 0
and qword [rsp + 0x20], 0
lea rdx, [r13 + rbp]
lea r9, [rsp + 0x168]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006b36a
mov rax, qword [rsp + 0x168]
test rax, rax
jg 0x14006b388
mov rax, qword [rsp + 0x160]
dec rax
mov qword [rsp + 0x160], rax
test rax, rax
jle 0x14006b493
xor eax, eax
cmp rax, r15
cmovg rax, r15
add rax, rbp
cmp rax, qword [rsp + 0x68]
mov qword [rsp + 0x168], rax
mov rbp, rax
jl 0x14006b2f7
movsxd rdx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x120]
movsxd rcx, esi
lea r9, [rdx + r13]
mov rax, rcx
mov r15, rcx
sub rax, r8
sub rax, rdx
add rax, rbp
cqo
idiv rcx
imul r15, rax
dec rax
mov qword [rsp + 0x40], rax
jmp 0x14006b433
mov rdx, qword [rsp + 0x128]
mov rcx, r9
call fcn.140058f2c
test eax, eax
jne 0x14006b41c
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x14006b479
mov rdx, qword [rsp + 0x48]
add rdx, rdi
call fcn.14006ac14
test r12, r12
jle 0x14006b417
sub r12, 1
je 0x14006b467
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x120]
movsxd rax, esi
add rdi, rax
add r9, rax
sub qword [rsp + 0x40], 1
mov qword [rsp + 0x38], r9
jns 0x14006b3de
movsxd rax, dword [rsp + 0x30]
and dword [rsp + 0x30], 0
add r15, rax
sub rbp, r15
test rbp, rbp
jle 0x14006b2f7
lea rdx, [r15 + r13]
mov r8, rbp
mov rcx, r13
call fcn.14001d004
jmp 0x14006b2f7
lea rcx, [rsp + 0x140]
call fcn.140058efc
jmp 0x14006b194
mov rax, qword [rsp + 0x48]
add rdi, rax
lea rcx, [rsp + 0x140]
call fcn.140058efc
jmp 0x14006b1ac
lea rcx, [rsp + 0x140]
call fcn.140058efc
or r13, 0xffffffffffffffff
test rbx, rbx
je 0x14006b4b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, r13
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x68]
xor r8d, r8d
lea rax, [r14 + rax + 0x400]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x70], rax
cmp rdi, qword [rsp + 0x60]
jg 0x14006b493
mov r15, qword [rsp + 0x88]
mov rcx, r8
mov rax, r14
neg rcx
sub rax, rbp
add r15, rcx
cmp r15, rax
cmovg r15, rax
test r15, r15
jle 0x14006b493
mov rdx, qword [rsp + 0x58]
mov r9, rdx
sub r9, r15
sub r9, r8
mov r8, 0xfffffffffffffe00
add r9, 0x1ff
and r9, r8
sub rcx, r9
mov qword [rsp + 0x38], r9
lea rcx, [rcx + rdx + 0x1ff]
mov rdx, r9
and rcx, r8
cmp rcx, rax
cmovg rcx, rax
and qword [rsp + 0x168], 0
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x118]
call fcn.14005a4b0
cmp qword [rsp + 0x38], rax
jne 0x14006b71a
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x118]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x168]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006b5a7
mov rax, qword [rsp + 0x168]
test rax, rax
jg 0x14006b5c5
mov rax, qword [rsp + 0x160]
dec rax
mov qword [rsp + 0x160], rax
test rax, rax
jle 0x14006b493
xor eax, eax
cmp rax, r15
cmovg rax, r15
mov r15, qword [rsp + 0x40]
mov qword [rsp + 0x168], rax
test rbp, rbp
jle 0x14006b5fd
mov rdx, qword [rsp + 0x70]
lea rcx, [rax + r15]
mov r8, rbp
add rdx, r15
mov r13, r15
call fcn.14001d004
mov rax, qword [rsp + 0x168]
mov r8, qword [rsp + 0x30]
add r8, rax
add rax, rbp
cmp rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x168], rax
mov rbp, rax
jl 0x14006b4e3
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x120]
movsxd r8, esi
mov rax, r8
mov r9, r10
sub rax, r11
sub r9, r8
sub rax, r10
add rax, rbp
cqo
idiv r8
mov rdx, r8
imul rdx, rax
add r9, rdx
mov r13, rdx
mov qword [rsp + 0x80], rdx
sub r13, r8
mov r8, qword [rsp + 0x38]
add r9, r15
add r13, r8
dec rax
mov qword [rsp + 0x50], rax
js 0x14006b6e6
sub r9, r13
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x128]
lea rcx, [r9 + r13]
mov r8, r11
call fcn.140058f2c
test eax, eax
jne 0x14006b6d1
mov rax, qword [rsp + 0x110]
test rax, rax
je 0x14006b711
lea rdx, [r10 + r13]
mov rcx, rax
call fcn.14006ac14
test r12, r12
jle 0x14006b6bf
sub r12, 1
je 0x14006b467
mov r11, qword [rsp + 0x120]
mov r10, qword [rsp + 0x48]
mov r9, qword [rsp + 0x38]
add r13, qword [rsp + 0x78]
sub qword [rsp + 0x50], 1
jns 0x14006b67f
mov rdx, qword [rsp + 0x80]
sub rbp, rdx
add rdi, rdx
mov r13, r15
test rbp, rbp
jle 0x14006b707
mov rcx, qword [rsp + 0x70]
mov r8, rbp
mov rdx, r15
add rcx, r15
call fcn.14001d004
mov r8, qword [rsp + 0x30]
jmp 0x14006b4e3
lea rdi, [r10 + r13]
jmp 0x14006b481
lea rcx, [rsp + 0x140]
call fcn.140058efc
jmp 0x14006b1f2