Function at 0x140003c40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov r14, rdx
mov r8d, dword [rcx]
xor edx, edx
mov ecx, 0x428
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140003c92
mov r9d, 0x30
lea r8, [rbp - 1]
mov rdx, qword [r14]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x140003ca2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x30], 0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x79], rbx
lea ecx, [rbx + 0x20]
call fcn.140008e80
mov rsi, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x71], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], 7
mov qword [rbp - 0x51], 8
mov dword [rsp + 0x30], 0x3f800000
mov ecx, 0x80
call fcn.140008e80
mov rbx, rax
mov rdx, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x71]
sub rdx, rcx
sar rdx, 3
test rdx, rdx
je 0x140003d4d
lea rdx, [rdx*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003e93
call fcn.140008ee8
mov qword [rbp - 0x71], rbx
lea rax, [rbx + 0x80]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
cmp rbx, rax
je 0x140003d7c
nop word [rax + rax]
mov qword [rbx], rsi
add rbx, 8
cmp rbx, rax
jne 0x140003d70
mov rcx, qword [rbp - 1]
mov qword [rbp + 0x7f], rcx
mov r9, qword [r14 + 0x10]
mov r10, qword [r14]
lea rax, [r9 + r10]
cmp rcx, rax
jae 0x140003dff
mov edx, dword [rbp - 0x3d]
nop word [rax + rax]
mov r8d, edx
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140003e86
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x11]
lea rcx, [rsp + 0x30]
call fcn.140005b10
mov rcx, qword [rax]
mov eax, dword [rbp + 0x67]
mov dword [rcx + 0x18], eax
mov edx, dword [rbp - 0x3d]
mov rcx, qword [rbp + 0x7f]
add rcx, rdx
mov qword [rbp + 0x7f], rcx
mov r9, qword [r14 + 0x10]
mov r10, qword [r14]
lea rax, [r9 + r10]
cmp rcx, rax
jb 0x140003da0
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r8, qword [r14 + 8]
mov rdx, r10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003e86
mov rax, qword [r14 + 0x10]
cmp qword [rbp - 0x49], rax
jne 0x140003e86
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x140003e60
mov r8d, dword [rbp - 0x3d]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140003e86
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rsi
jne 0x140003e33
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.140003eb0
movzx eax, bl
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x140003e6b
call fcn.14000fca4
int3