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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
xor eax, eax
mov qword [rbp + 0xc0], 0x170
mov qword [rbp + 0xd8], rax
mov rdi, rcx
mov dword [rbp + 0xe0], eax
xor ebx, ebx
mov dword [rbp + 0x22c], eax
call fcn.180082518
lea r14d, [rbx + 0x40]
xor edx, edx
mov r8d, r14d
lea rcx, [rsp + 0x70]
mov rsi, rax
call fcn.1800a02d0
mov r9d, r14d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800946a1
movaps xmm2, xmmword [rsp + 0x70]
mov ecx, 0x5a4d
movaps xmm0, xmmword [rbp - 0x80]
movaps xmm1, xmmword [rbp - 0x70]
movd eax, xmm2
movups xmmword [rbp + 0xf4], xmm0
mov qword [rbp + 0xc8], rsi
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rbp + 0xe4], xmm2
movups xmmword [rbp + 0x104], xmm1
movups xmmword [rbp + 0x114], xmm0
cmp ax, cx
jne 0x1800946a1
mov r14d, 0x108
lea rcx, [rbp - 0x50]
mov r8d, r14d
xor edx, edx
call fcn.1800a02d0
movsxd rdx, dword [rbp - 0x54]
lea r8, [rbp - 0x50]
add rdx, rsi
mov qword [rsp + 0x20], rbx
mov r9d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800946a1
lea edx, [rbx + 2]
lea r8d, [rdx + 0x7e]
lea rcx, [rbp + 0x124]
lea rax, [rbp - 0x50]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1800941ed
cmp dword [rbp - 0x50], 0x4550
mov rax, qword [rax]
mov qword [rcx], rax
movsxd rcx, dword [rbp - 0x54]
lea rax, [rsi + rcx]
mov qword [rbp + 0xd0], rax
jne 0x1800946a1
cmp dword [rbp + 0x40], ebx
je 0x1800946a1
movzx eax, word [rbp - 0x3c]
lea edx, [rcx + 0x18]
add edx, eax
mov qword [rbp + 0x90], rbx
mov r14d, ebx
mov r12d, 1
cmp bx, word [rbp - 0x4a]
jae 0x1800942fc
mov r15d, edx
xor eax, eax
mov qword [rsp + 0x20], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
movsxd rax, r14d
lea r8, [rsp + 0x40]
mov r9d, 0x28
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rax + rax*4]
lea rdx, [r15 + rcx*8]
mov rcx, rdi
add rdx, rsi
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800946a1
cmp dword [rbp + 0x98], ebx
jne 0x1800942f0
mov ecx, dword [rsp + 0x4c]
cmp dword [rbp + 0x40], ecx
jb 0x1800942f0
mov edx, dword [rsp + 0x50]
lea eax, [rdx + rcx]
cmp dword [rbp + 0x40], eax
jae 0x1800942f0
mov dword [rbp + 0x98], ecx
mov dword [rbp + 0x9c], edx
movzx eax, word [rbp - 0x4a]
add r14d, r12d
cmp r14d, eax
jl 0x180094284
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, rdi
call fcn.180081344
mov r13d, dword [rbp + 0x44]
mov word [rbp + 0x280], ax
add r13d, 0x14
lea r14d, [r13 + 0x20]
lea eax, [r14 + 0x400]
mov ecx, eax
mov dword [rsp + 0x30], eax
mov r12d, eax
call fcn.18009d8b4
mov r15, rax
test rax, rax
je 0x1800946a1
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.1800a02d0
mov ecx, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
mov r8d, dword [rbp - 0x24]
add rdx, rcx
mov ecx, dword [rbp - 0x34]
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 + 0x30]
call fcn.180082424
mov qword [rsp + 0x38], rax
mov r12, rax
test rax, rax
je 0x180094699
mov edx, dword [rbp + 0x40]
lea rax, [rbp + 0x288]
mov r8d, dword [rbp + 0x44]
add rdx, rsi
mov r9d, 0x40
mov dword [rbp + 0x288], ebx
mov rcx, rdi
mov dword [rbp + 0xe0], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180094699
mov edx, dword [rbp + 0x40]
lea r8, [r15 + 0x14]
mov eax, dword [rbp + 0x288]
add rdx, rsi
mov r9d, dword [rbp + 0x44]
mov rcx, rdi
mov dword [rbp + 0xe0], eax
sub r12d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180094699
mov r8, qword [rbp + 0x278]
lea eax, [r12 + r13]
mov dword [r15], eax
movabs rdx, 0x8000000000000001
mov qword [r13 + r15], rdx
add eax, 0x10
mov qword [r13 + r15 + 8], rbx
mov rcx, r8
mov dword [r15 + 0x10], eax
lea eax, [r12 + r14]
mov qword [r13 + r15 + 0x10], rdx
mov qword [r13 + r15 + 0x18], rbx
mov r13d, 1
mov edx, r14d
sub rdx, r8
mov qword [r15 + 4], rbx
add rdx, r15
mov dword [r15 + 0xc], eax
mov al, byte [rcx]
mov byte [rdx + rcx], al
add rcx, r13
test al, al
jne 0x18009444a
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], bl
jne 0x18009445a
mov rdx, qword [rsp + 0x38]
lea r9d, [rax + 4]
and r9d, 0xfffffffc
mov qword [rsp + 0x20], rbx
add r9d, r14d
mov r8, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180094699
mov eax, dword [rsp + 0x30]
mov dword [rbp + 0x44], eax
mov dword [rbp + 0x40], r12d
cmp dword [rbp + 0xa8], ebx
je 0x18009456f
cmp dword [rbp + 0xac], ebx
je 0x18009456f
mov r14d, dword [rbp + 0xa8]
lea r8, [rsp + 0x40]
add r14, rsi
mov qword [rsp + 0x20], rbx
mov r12d, socket
mov rdx, r14
mov r9d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180094699
lea rax, [r14 + 0x10]
mov r8d, r12d
mov qword [rbp + 0xd8], rax
lea r9d, [r12 - 0x10]
mov eax, dword [rsp + 0x50]
mov rdx, r14
mov dword [rbp + 0x22c], eax
mov rcx, rdi
and eax, 0xfffffffe
mov dword [rsp + 0x50], eax
lea rax, [rbp + 0x288]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180094699
mov r9d, r12d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180094699
mov r9d, dword [rbp + 0x288]
lea rax, [rbp + 0x288]
mov r8d, r12d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180094699
mov r8d, dword [rbp + 4]
lea rax, [rbp + 0x288]
mov r12d, 0x40
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180094699
mov r9d, r12d
mov word [rbp - 0x74], bx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180094699
movsxd rdx, dword [rbp - 0x54]
lea r8, [rbp - 0x50]
add rdx, rsi
mov qword [rsp + 0x20], rbx
mov r9d, 0x108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180094699
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, rdi
call fcn.180081344
movzx r14d, word [rbp + 0x280]
lea r8, [rsp + 0x70]
cmp ax, r14w
mov qword [rsp + 0x20], rbx
movzx ecx, r14w
mov r9d, r12d
adc cx, bx
mov rdx, rsi
sub ax, cx
movzx ecx, word [rbp - 0x74]
cmp cx, ax
adc ax, bx
sub cx, ax
mov word [rbp - 0x74], cx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180094699
mov r8d, dword [rbp + 4]
lea rax, [rbp + 0x288]
mov r9d, dword [rbp + 0x288]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180094699
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, rdi
call fcn.180081344
cmp r14w, ax
jne 0x180094699
mov r9d, 0x170
lea r8, [rbp + 0xc0]
lea rdx, [0x1800da0c0]
mov rcx, rdi
call fcn.1800991e4
test eax, eax
cmovne ebx, r13d
mov rcx, r15
call fcn.18009d1f4
mov eax, ebx
mov rbx, qword [rsp + 0x370]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret