Function at 0x140053840
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, [0x1400dd014]
call fcn.1400567b0
mov dword [rbp + 4], 0
cmp qword [rbp + 0x2f0], 0
je 0x1400538a6
mov rax, qword [rbp + 0x2f0]
mov qword [rax], 0
cmp qword [rbp + 0x2f8], 0
je 0x1400538be
mov rax, qword [rbp + 0x2f8]
mov qword [rax], 0
cmp qword [rbp + 0x300], 0
je 0x1400538d6
mov rax, qword [rbp + 0x300]
mov qword [rax], 0
cmp qword [rbp + 0x2e8], 0
jne 0x1400538ea
mov eax, 0x57
jmp 0x140053e84
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14009f198], eax
je 0x140053902
mov eax, 0x10dd
jmp 0x140053e84
cmp dword [0x14009f19c], 0
je 0x140053916
mov eax, dword [0x14009f19c]
jmp 0x140053e84
cmp qword [rbp + 0x2e0], 0
jne 0x14005392a
mov eax, 6
jmp 0x140053e84
mov rax, qword [rbp + 0x2e0]
cmp qword [rax], 0
jne 0x14005395d
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x14009f19c], eax
mov rax, qword [rbp + 0x2e0]
mov qword [0x14009f1a0], rax
mov eax, dword [rbp + 4]
jmp 0x140053e84
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.140053eb0
mov qword [rbp + 0x28], rax
xor edx, edx
mov rcx, qword [rbp + 0x2e8]
call fcn.140053eb0
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x2e8], rax
jne 0x1400539bf
cmp dword [0x14009f190], 0
je 0x1400539bb
jmp 0x140053a29
jmp 0x140053a20
cmp qword [rbp + 0x2f8], 0
je 0x1400539d7
mov rax, qword [rbp + 0x2f8]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
cmp qword [rbp + 0x300], 0
je 0x1400539f2
mov rax, qword [rbp + 0x300]
mov rcx, qword [rbp + 0x2e8]
mov qword [rax], rcx
mov ecx, 0x30
call fcn.140055f98
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140053a9a
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x14009f19c], eax
cmp qword [rbp + 0x48], 0
je 0x140053a59
mov rcx, qword [rbp + 0x48]
call fcn.140052870
mov qword [rbp + 0x48], 0
cmp qword [rbp + 0x2f0], 0
je 0x140053a59
mov rax, qword [rbp + 0x2f0]
mov qword [rax], 0
cmp qword [rbp + 0x68], 0
je 0x140053a84
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.140055f90
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x2e0]
mov qword [0x14009f1a0], rax
mov eax, dword [rbp + 4]
jmp 0x140053e84
mov rcx, qword [rbp + 0x28]
call fcn.140052110
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140053aba
mov dword [rbp + 4], 8
jmp 0x140053a20
cmp qword [rbp + 0x2f0], 0
je 0x140053ad2
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.140058320
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 0x140053c69
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.140055ea0
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 0x140053c52
jmp 0x140053c69
mov rcx, qword [rbp + 0x148]
call fcn.1400524d0
test eax, eax
je 0x140053c64
jmp 0x140053c69
jmp 0x140053b30
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jae 0x140053cc8
mov rcx, qword [rbp + 0x88]
call fcn.140052b30
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0
jne 0x140053c94
jmp 0x140053cc8
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 0x140053c69
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jb 0x140053ce2
mov eax, dword [rbp + 0x124]
cmp rax, 8
jbe 0x140053cfe
mov dword [rbp + 4], 9
cmp dword [0x14009f190], 0
je 0x140053cf9
jmp 0x140053a29
jmp 0x140053a20
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xa8], rax
jbe 0x140053d0f
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.140057c70
mov eax, dword [rbp + 0xe4]
mov ecx, dword [rbp + 0x104]
mov edx, 0x1e
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jbe 0x140053d77
mov dword [rbp + 4], 6
jmp 0x140053a20
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.140052a80
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call fcn.140052980
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 0x140053e2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140053a20
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 [0x14009f1b0]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
mov qword [0x14009f1b0], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006fbc8]
call fcn.14005673c
mov rax, rdi
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret