Function at 0x1401548b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
movzx esi, r8b
movzx ebp, dl
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
xor ebx, ebx
mov qword [rcx + 0x20], rbx
mov qword [rcx + 0x28], rbx
mov dword [rcx + 0x30], ebx
mov qword [rcx + 0x34], 0xffffffffffffffff
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rbx
mov byte [rcx + 0x50], bl
mov qword [rcx + 0x58], rbx
mov qword [rcx + 0x60], rbx
mov qword [rcx + 0x68], rbx
mov dword [rcx + 0x70], ebx
cmp qword [0x140737750], rbx
jne 0x14015493e
mov ecx, 0x110
call fcn.1403195d4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.140082070
nop
mov qword [0x140737750], rax
mov rcx, qword [0x140737750]
movzx eax, byte [rcx + 0xc]
mov byte [rdi + 0x50], al
mov eax, dword [rcx + 0x94]
shr eax, 2
and al, 1
mov byte [rdi + 0x51], al
mov eax, dword [rcx + 0x94]
shr eax, 3
and al, 1
mov byte [rdi + 0x52], al
mov byte [rdi + 0x53], 0
test sil, sil
je 0x1401549de
mov eax, dword [0x14049fbd8]
test eax, eax
jg 0x1401549da
jns 0x1401549de
call fcn.140071ef0
mov esi, dword [rax + 0x78]
call fcn.140071ef0
mov ecx, dword [rax + 8]
cmp esi, 1
jne 0x1401549c5
call fcn.140071ef0
mov rsi, rax
call fcn.140071ef0
mov rcx, qword [rsi]
lea rdx, [method.xmrig::HwlocCpuInfo.virtual_168]
cmp qword [rcx + 0xa8], rdx
jne 0x1401549b9
mov rbx, qword [rsi + 0xe0]
cmp rbx, qword [rax + 0x58]
sete al
mov byte [rdi + 0x53], al
jmp 0x1401549de
cmp esi, 2
jne 0x1401549de
sub ecx, 3
je 0x140154992
sub ecx, 1
je 0x1401549da
mov byte [rdi + 0x53], 0
jmp 0x1401549de
mov byte [rdi + 0x53], 1
cmp byte [rdi + 0x52], 0
jne 0x1401549e8
mov byte [rdi + 0x53], 0
cmp qword [0x140737750], 0
jne 0x140154a11
mov ecx, 0x110
call fcn.1403195d4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.140082070
nop
mov qword [0x140737750], rax
mov rax, qword [0x140737750]
mov ecx, dword [rax + 0x94]
shr ecx, 0xb
and cl, 1
mov byte [rdi + 0x54], cl
mov ebx, 0x20000
mov eax, 0x40000
cmp byte [rdi + 0x53], 0
cmovne ebx, eax
mov qword [rdi + 0x60], rbx
cmp byte [0x140737778], 0
je 0x140154a66
test bpl, bpl
je 0x140154a66
mov edx, 0x200000
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x20003000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140154a86
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140154b79
mov qword [rdi + 0x58], rax
mov eax, 0xec0
lock xadd qword [0x140737770], rax
movzx ecx, ax
add rcx, qword [rdi + 0x58]
mov qword [rdi + 0x20], rcx
lea r15, [0x140765280]
mov r8, r15
lea r14, [0x140765040]
sub r8, r14
mov rdx, r14
call fcn.140337e30
mov rcx, qword [rdi + 0x20]
lea r12, [0x140765281]
lea rbp, [0x140765371]
lea rsi, [0x140765301]
sub rcx, r14
add rcx, r15
cmp byte [rdi + 0x54], 0
je 0x140154aef
mov r8, rbp
sub r8, rsi
mov rdx, rsi
jmp 0x140154af8
mov r8, rsi
sub r8, r12
mov rdx, r12
call fcn.140337e30
lea rdx, [0x140765a70]
mov rbx, rdx
lea r8, [0x140765b40]
sub rbx, r8
add rbx, 0x10000
and rbx, 0xffffffffffffffc0
sub r8, rdx
mov rcx, qword [rdi + 0x20]
add rcx, rbx
call fcn.140337e30
mov rax, rsi
sub eax, r12d
sub ebp, esi
cmp byte [rdi + 0x54], 0
cmove ebp, eax
sub ebp, r14d
add ebp, r15d
mov dword [rdi + 0x2c], ebp
mov rcx, qword [rdi + 0x20]
mov rax, rcx
sub rax, r14
add rax, r15
mov qword [rdi + 0x40], rax
lea rax, [rbx + rcx]
mov qword [rdi + 0x48], rax
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Failed_to_allocate_executable_memory
lea rcx, [rsp + 0x28]
call fcn.140003eb0
lea rdx, [0x1404967e0]
lea rcx, [rsp + 0x28]
call fcn.14033899c
int3