Function at 0x140054540
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x82
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x318]
lea rcx, [0x1400d2014]
call fcn.1400574b0
mov dword [rbp + 4], 0
cmp qword [rbp + 0x2f0], 0
je 0x1400545a6
mov rax, qword [rbp + 0x2f0]
mov qword [rax], 0
cmp qword [rbp + 0x2f8], 0
je 0x1400545be
mov rax, qword [rbp + 0x2f8]
mov qword [rax], 0
cmp qword [rbp + 0x300], 0
je 0x1400545d6
mov rax, qword [rbp + 0x300]
mov qword [rax], 0
cmp qword [rbp + 0x2e8], 0
jne 0x1400545ea
mov eax, 0x57
jmp 0x140054b84
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1400a3d38], eax
je 0x140054602
mov eax, 0x10dd
jmp 0x140054b84
cmp dword [0x1400a3d3c], 0
je 0x140054616
mov eax, dword [0x1400a3d3c]
jmp 0x140054b84
cmp qword [rbp + 0x2e0], 0
jne 0x14005462a
mov eax, 6
jmp 0x140054b84
mov rax, qword [rbp + 0x2e0]
cmp qword [rax], 0
jne 0x14005465d
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x1400a3d3c], eax
mov rax, qword [rbp + 0x2e0]
mov qword [0x1400a3d40], rax
mov eax, dword [rbp + 4]
jmp 0x140054b84
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.140054bb0
mov qword [rbp + 0x28], rax
xor edx, edx
mov rcx, qword [rbp + 0x2e8]
call fcn.140054bb0
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x2e8], rax
jne 0x1400546bf
cmp dword [0x1400a3d30], 0
je 0x1400546bb
jmp 0x140054729
jmp 0x140054720
cmp qword [rbp + 0x2f8], 0
je 0x1400546d7
mov rax, qword [rbp + 0x2f8]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
cmp qword [rbp + 0x300], 0
je 0x1400546f2
mov rax, qword [rbp + 0x300]
mov rcx, qword [rbp + 0x2e8]
mov qword [rax], rcx
mov ecx, 0x30
call fcn.140056c98
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14005479a
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x1400a3d3c], eax
cmp qword [rbp + 0x48], 0
je 0x140054759
mov rcx, qword [rbp + 0x48]
call fcn.140053570
mov qword [rbp + 0x48], 0
cmp qword [rbp + 0x2f0], 0
je 0x140054759
mov rax, qword [rbp + 0x2f0]
mov qword [rax], 0
cmp qword [rbp + 0x68], 0
je 0x140054784
mov rax, qword [rbp + 0x68]
mov qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin], rax
mov edx, 0x30
mov rcx, qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.140056c90
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x2e0]
mov qword [0x1400a3d40], rax
mov eax, dword [rbp + 4]
jmp 0x140054b84
mov rcx, qword [rbp + 0x28]
call fcn.140052e10
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400547ba
mov dword [rbp + 4], 8
jmp 0x140054720
cmp qword [rbp + 0x2f0], 0
je 0x1400547d2
mov rax, qword [rbp + 0x2f0]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp + 0x48]
add rax, 0x40
mov r8d, 8
xor edx, edx
mov rcx, rax
call fcn.140059020
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, 0x1e
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x104], 5
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jae 0x140054969
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x164], 0
lea rax, [rbp + 0x164]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x88]
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call fcn.140056ba0
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 0x164]
add rcx, qword [rbp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x124]
movzx ecx, byte [rbp + 0xe4]
and cl, 7
mov rdx, qword [rbp + 0x48]
movzx eax, byte [rdx + rax + 0x40]
and al, 0xf8
or al, cl
mov ecx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x48]
mov byte [rdx + rcx + 0x40], al
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x124]
and al, 0x1f
shl al, 3
mov rdx, qword [rbp + 0x48]
movzx ecx, byte [rdx + rcx + 0x40]
and cl, 7
or cl, al
movzx eax, cl
mov ecx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x48]
mov byte [rdx + rcx + 0x40], al
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x124]
cmp rax, 8
jb 0x140054952
jmp 0x140054969
mov rcx, qword [rbp + 0x148]
call fcn.1400531d0
test eax, eax
je 0x140054964
jmp 0x140054969
jmp 0x140054830
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jae 0x1400549c8
mov rcx, qword [rbp + 0x88]
call fcn.140053830
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0
jne 0x140054994
jmp 0x1400549c8
movsxd rax, dword [rbp + 0x184]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0xe4], eax
jmp 0x140054969
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jb 0x1400549e2
mov eax, dword [rbp + 0x124]
cmp rax, 8
jbe 0x1400549fe
mov dword [rbp + 4], 9
cmp dword [0x1400a3d30], 0
je 0x1400549f9
jmp 0x140054729
jmp 0x140054720
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xa8], rax
jbe 0x140054a0f
int3
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x48]
mov byte [rcx + 0x1e], al
mov rax, qword [rbp + 0x48]
movzx ecx, byte [rbp + 0xe4]
mov byte [rax + 0x3e], cl
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x48]
add rcx, 0x20
mov r8d, eax
mov rdx, qword [rbp + 0x28]
call fcn.140058970
mov eax, dword [rbp + 0xe4]
mov ecx, dword [rbp + 0x104]
mov edx, 0x1e
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jbe 0x140054a77
mov dword [rbp + 4], 6
jmp 0x140054720
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x2e8]
mov qword [rax + 0x50], rcx
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax + 0x1e]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x48]
add rax, 0x48
mov rdx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.140053780
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call fcn.140053680
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0x1a4], 0
mov eax, dword [rbp + 0xe4]
lea r9, [rbp + 0x1a4]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140054b2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140054720
mov rax, qword [rbp + 0x68]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x2e0]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x28]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x1a4]
mov dword [rax + 0x28], ecx
mov rax, qword [rbp + 0x68]
mov rcx, qword [0x1400a3d50]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
mov qword [0x1400a3d50], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140070bc8]
call fcn.14005743c
mov rax, rdi
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret