Function at 0x140001acc
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x350
mov rdi, rcx
mov esi, 0x170
lea rcx, [rbp + 0xe0]
xor edx, edx
mov r8d, esi
xor ebx, ebx
call fcn.1400050a0
mov rcx, rdi
mov dword [rbp + 0xe0], esi
call fcn.1400012f4
lea r14d, [rbx + 0x40]
lea rcx, [rsp + 0x50]
mov r8d, r14d
xor edx, edx
mov rsi, rax
call fcn.1400050a0
lea r8, [rsp + 0x50]
mov r9d, r14d
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400022af
mov eax, dword [rsp + 0x50]
movsxd r14, dword [rbp - 0x74]
mov qword [rbp + 0xe8], rsi
mov dword [rbp + 0x104], eax
mov eax, dword [rsp + 0x54]
mov dword [rbp + 0x140], r14d
mov dword [rbp + 0x108], eax
mov eax, dword [rsp + 0x58]
mov dword [rbp + 0x10c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbp + 0x110], eax
mov eax, dword [rsp + 0x60]
mov dword [rbp + 0x114], eax
mov eax, dword [rsp + 0x64]
mov dword [rbp + 0x118], eax
mov eax, dword [rsp + 0x68]
mov dword [rbp + 0x11c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rbp + 0x120], eax
mov eax, dword [rsp + 0x70]
mov dword [rbp + 0x124], eax
mov eax, dword [rsp + 0x74]
mov dword [rbp + 0x128], eax
mov eax, dword [rsp + 0x78]
mov dword [rbp + 0x12c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbp + 0x130], eax
mov eax, dword [rbp - 0x80]
mov dword [rbp + 0x134], eax
mov eax, dword [rbp - 0x7c]
mov dword [rbp + 0x138], eax
mov eax, dword [rbp - 0x78]
mov dword [rbp + 0x13c], eax
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x1400022af
mov r15d, 0x108
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, r15d
call fcn.1400050a0
lea rdx, [rsi + r14]
lea r8, [rbp - 0x30]
mov r9d, r15d
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400022af
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x144]
lea r9, [rbp + 0x144]
mov rax, rdx
lea r10, [rbp - 0x30]
or rax, rcx
and eax, 0xf
jne 0x140001cb7
lea eax, [rbx + 2]
lea r8d, [rax + 0x7e]
movaps xmm0, xmmword [rdx]
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm1, xmmword [rdx + 0x70]
add rdx, r8
movaps xmmword [rcx + 0x60], xmm0
add rcx, r8
movaps xmmword [rcx - 0x10], xmm1
dec rax
jne 0x140001c66
mov rax, qword [rdx]
mov qword [rcx], rax
jmp 0x140001cc5
mov r8, r15
mov rdx, r10
mov rcx, r9
call fcn.140006010
cmp dword [rbp - 0x30], 0x4550
movsxd rcx, dword [rbp - 0x74]
lea rax, [rsi + rcx]
mov qword [rbp + 0xf0], rax
jne 0x1400022af
cmp dword [rbp + 0x60], ebx
je 0x1400022af
movzx eax, word [rbp - 0x1c]
lea edx, [rcx + 0x18]
mov qword [rbp + 0xb0], rbx
add edx, eax
mov r14d, ebx
mov r15d, ebx
cmp bx, word [rbp - 0x2a]
jae 0x140001d8b
mov r12d, edx
mov r13d, 0x28
lea rcx, [rbp - 0x60]
mov r8, r13
xor edx, edx
call fcn.1400050a0
mov eax, r15d
lea r8, [rbp - 0x60]
lea rcx, [rax + rax*4]
mov r9, r13
mov qword [rsp + 0x20], rbx
lea rdx, [r12 + rcx*8]
mov rcx, rdi
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400022af
mov edx, dword [rbp - 0x50]
cmp dword [rbp + 0xb8], ebx
jne 0x140001d73
mov ecx, dword [rbp - 0x54]
cmp dword [rbp + 0x60], ecx
jb 0x140001d73
lea eax, [rdx + rcx]
cmp dword [rbp + 0x60], eax
jae 0x140001d73
mov dword [rbp + 0xb8], ecx
mov dword [rbp + 0xbc], edx
mov ecx, dword [rbp - 0x4c]
movzx eax, word [rbp - 0x2a]
add ecx, edx
cmp r14d, ecx
cmovb r14d, ecx
inc r15d
cmp r15d, eax
jb 0x140001d13
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.1400010a8
mov edx, dword [rbp + 0x2a0]
mov r13d, dword [rbp + 0x64]
add r13d, 7
mov word [rbp + 0x2a8], ax
lea r12d, [rdx + rdx*4]
shl r12d, 2
mov eax, edx
add r13d, r12d
shl eax, 5
and r13d, 0xfffffff8
add eax, r13d
mov dword [rsp + 0x38], eax
mov r9d, eax
mov dword [rsp + 0x34], eax
test edx, edx
je 0x140001e03
mov rcx, qword [rbp + 0x298]
mov r8, qword [rcx]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], bl
jne 0x140001de3
add eax, 4
add rcx, 8
and eax, 0xfffffffc
add r9d, eax
dec rdx
jne 0x140001ddc
mov dword [rsp + 0x34], r9d
mov ecx, r9d
mov r14d, r9d
call fcn.140004054
mov r15, rax
test rax, rax
je 0x1400022af
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400050a0
mov ecx, dword [rbp - 0x10]
mov edx, dword [rbp - 0xc]
mov r8d, dword [rbp - 4]
add rdx, rcx
mov ecx, dword [rbp - 0x14]
add rcx, rsi
add rcx, rdx
mov rdx, rsi
add r8, rcx
mov rcx, rdi
cmp rsi, r8
cmovb rdx, r8
mov r8d, dword [rsp + 0x34]
call fcn.1400011f4
mov r14, rax
mov qword [rbp - 0x68], rax
test rax, rax
je 0x1400022a7
mov edx, dword [rbp + 0x60]
mov r8d, dword [rbp + 0x64]
lea rax, [rsp + 0x30]
add rdx, rsi
mov r9d, 0x40
mov rcx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rbp + 0x100], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400022a7
mov edx, dword [rbp + 0x60]
mov eax, dword [rsp + 0x30]
mov r9d, dword [rbp + 0x64]
mov r8d, r12d
add rdx, rsi
mov rcx, rdi
add r8, r15
mov dword [rbp + 0x100], eax
sub r14d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400022a7
mov r12d, dword [rbp + 0x2a0]
mov dword [rsp + 0x3c], ebx
test r12d, r12d
je 0x14000203e
mov r9d, dword [rsp + 0x38]
mov r8, qword [rbp + 0x298]
lea eax, [r14 + r13]
mov r13d, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
mov eax, 0x10
sub eax, r14d
lea r10, [r15 + 4]
mov dword [rsp + 0x44], eax
mov eax, r14d
mov qword [rbp - 0x70], r10
neg eax
mov dword [rsp + 0x48], eax
mov r11, qword [r8]
mov eax, r13d
mov ecx, r9d
sub eax, r9d
add rcx, r15
mov r8d, ebx
mov edx, eax
dec rax
mov dword [rsp + 0x38], 0x80070057
cmp rax, 0x7ffffffe
cmova r8d, dword [rsp + 0x38]
test r8d, r8d
js 0x140001f97
mov r8d, ebx
test rdx, rdx
je 0x140001f88
mov r10d, 0x7ffffffe
mov r13d, 1
sub r10, rdx
sub r11, rcx
lea rax, [rdx + r10]
test rax, rax
je 0x140001f7e
mov al, byte [rcx + r11]
test al, al
je 0x140001f7e
mov byte [rcx], al
add rcx, r13
sub rdx, r13
jne 0x140001f63
mov r13d, dword [rsp + 0x34]
test rdx, rdx
jne 0x140001f91
dec rcx
mov r8d, 0x8007007a
mov r10, qword [rbp - 0x70]
jmp 0x140001f9c
test rdx, rdx
je 0x140001f9e
mov byte [rcx], bl
test r8d, r8d
js 0x1400022a7
mov eax, dword [rsp + 0x48]
mov edx, dword [rsp + 0x40]
movabs r8, 0x8000000000000001
add eax, edx
mov dword [r10 - 4], edx
mov qword [rax + r15], r8
mov qword [rax + r15 + 8], rbx
lea eax, [rdx + 0x10]
mov dword [r10 + 0xc], eax
mov eax, dword [rsp + 0x44]
add eax, edx
mov qword [rax + r15], r8
mov r8, qword [rbp + 0x298]
mov qword [rax + r15 + 8], rbx
lea eax, [r14 + r9]
mov qword [r10], rbx
mov dword [r10 + 8], eax
mov rcx, qword [r8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140001ff7
add eax, 4
add edx, 0x20
add r10, 0x14
and eax, 0xfffffffc
add r8, 8
mov r11d, 1
add r9d, eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], edx
add eax, r11d
mov qword [rbp - 0x70], r10
mov qword [rbp + 0x298], r8
mov dword [rsp + 0x3c], eax
cmp eax, r12d
jb 0x140001f19
jmp 0x14000204e
mov r9d, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x34]
mov r11d, 1
mov ecx, dword [rbp + 0x64]
movabs rax, 0xcccccccccccccccd
mov r8d, ebx
mul rcx
shr rdx, 4
add rdx, r12
je 0x140002089
mov rax, rbx
lea rcx, [rax + rax*4]
cmp dword [r15 + rcx*4], ebx
jne 0x14000207e
cmp dword [r15 + rcx*4 + 0x10], ebx
je 0x140002089
add r8d, r11d
mov eax, r8d
cmp rax, rdx
jb 0x14000206d
mov rdx, qword [rbp - 0x68]
mov r8, r15
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400022a7
mov dword [rbp + 0x60], r14d
mov dword [rbp + 0x64], r13d
cmp dword [rbp + 0xc8], ebx
je 0x14000217c
cmp dword [rbp + 0xcc], ebx
je 0x14000217c
mov r14d, dword [rbp + 0xc8]
mov r12d, 0x14
lea r8, [rbp - 0x60]
add r14, rsi
mov r9d, r12d
mov rcx, rdi
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400022a7
lea rax, [r14 + 0x10]
lea r9d, [r12 - 0x10]
mov r8d, r12d
mov qword [rbp + 0xf8], rax
mov eax, dword [rbp - 0x50]
mov rdx, r14
mov dword [rbp + 0x24c], eax
and eax, 0xfffffffe
mov rcx, rdi
mov dword [rbp - 0x50], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400022a7
lea r8, [rbp - 0x60]
mov r9d, r12d
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400022a7
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8d, r12d
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400022a7
mov r8d, dword [rbp + 0x24]
lea rax, [rsp + 0x30]
mov r12d, 0x40
mov r9d, r12d
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400022a7
lea r8, [rsp + 0x50]
mov r9d, r12d
mov rdx, rsi
mov rcx, rdi
mov word [rsp + 0x6c], bx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400022a7
movsxd rdx, dword [rbp - 0x74]
lea r8, [rbp - 0x30]
mov r9d, 0x108
mov rcx, rdi
add rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400022a7
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.1400010a8
movzx r14d, word [rbp + 0x2a8]
lea r8, [rsp + 0x50]
cmp ax, r14w
movzx ecx, r14w
mov r9d, r12d
adc cx, bx
mov rdx, rsi
mov qword [rsp + 0x20], rbx
sub ax, cx
movzx ecx, word [rsp + 0x6c]
cmp cx, ax
adc ax, bx
sub cx, ax
mov word [rsp + 0x6c], cx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400022a7
mov r8d, dword [rbp + 0x24]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400022a7
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.1400010a8
cmp r14w, ax
jne 0x1400022a7
lea r8, [rbp + 0xe0]
lea rdx, [0x140063988]
mov r9d, 0x170
mov rcx, rdi
call fcn.140001654
test eax, eax
lea eax, [r12 - 0x3f]
cmovne ebx, eax
mov rcx, r15
call fcn.14000404c
mov eax, ebx
mov rbx, qword [rsp + 0x390]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret