Function at 0x140040c60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
xor r13d, r13d
mov qword [rbp - 0x40], r13
mov r12, qword [0x14018a5b8]
test r12, r12
jne 0x140040cb6
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400b37d4
mov r12, rax
mov qword [rbp + 0x40], rax
mov dword [rax + 8], r13d
mov qword [0x14018a5b8], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
xor r15d, r15d
xor edi, edi
xor sil, sil
mov byte [rbp + 0x40], sil
mov rbx, qword [rbp - 0x48]
test sil, sil
jne 0x140040df4
mov r9d, Ordinal_50
lea r8, [rbp - 0x38]
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [rbp - 0x18], 0x10000
je 0x140040ddd
mov rcx, qword [rbp - 0x20]
call fcn.1400b3bd8
mov r14, rax
mov qword [rsp + 0x20], 0
mov r9, qword [rbp - 0x20]
mov r8, rax
mov rdx, qword [rbp - 0x38]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor esi, esi
mov r11, qword [rbp - 0x20]
test r11, r11
je 0x140040dd1
xor r10d, r10d
nop
lea r8, [0x140104108]
mov dl, 0x78
lea r9, str.xxxxxxxx
mov rax, r9
mov rcx, r10
sub rcx, r9
lea r9, [rcx + r14]
nop dword [rax]
cmp dl, 0x78
jne 0x140040d6f
movzx ecx, byte [r8]
cmp byte [r9 + rax], cl
jne 0x140040dc3
inc r8
inc rax
movzx edx, byte [rax]
test dl, dl
jne 0x140040d60
mov rcx, qword [rbp - 0x38]
add rcx, r10
mov qword [rbp + 0x48], rcx
cmp rbx, r13
je 0x140040d99
mov qword [rbx], rcx
add rbx, 8
mov qword [rbp - 0x48], rbx
jmp 0x140040db1
lea r8, [rbp + 0x48]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140052f50
mov r13, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x48]
inc edi
cmp edi, 0x17c
jge 0x140040f45
mov r11, qword [rbp - 0x20]
inc esi
movsxd r10, esi
cmp r10, r11
jb 0x140040d40
movzx esi, byte [rbp + 0x40]
mov rcx, r14
call fcn.1400b3b20
add r15, qword [rbp - 0x20]
movabs rax, 0x7fffffffffff
cmp r15, rax
jb 0x140040cd5
xor r12d, r12d
mov r15d, r12d
mov rsi, qword [rbp - 0x50]
sub rbx, rsi
sar rbx, 3
test rbx, rbx
je 0x140040f11
mov rdi, rsi
mov dword [rbp + 0x48], 0x464c457f
mov dword [rbp + 0x4c], 0xa0101
mov r14, qword [rdi]
mov rax, qword [0x14018a5b8]
test rax, rax
jne 0x140040e47
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400b37d4
mov qword [rbp + 0x50], rax
mov dword [rax + 8], r12d
mov qword [0x14018a5b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8d, 8
mov rdx, r14
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r14, qword [rdi]
mov rax, qword [0x14018a5b8]
test rax, rax
jne 0x140040e90
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400b37d4
mov qword [rbp + 0x50], rax
mov dword [rax + 8], r12d
mov qword [0x14018a5b8], rax
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rbp + 0x48]
mov rdx, r14
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, dword [rbp + 0x40]
mov r12, qword [rdi]
mov rax, qword [0x14018a5b8]
test rax, rax
jne 0x140040eda
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400b37d4
mov qword [rbp + 0x50], rax
mov dword [rax + 8], 0
mov qword [0x14018a5b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, r14d
mov r8d, 8
mov rdx, r12
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc r15d
add rdi, 8
movsxd rax, r15d
cmp rax, rbx
mov r12d, 0
jb 0x140040e11
test rsi, rsi
je 0x140040f5c
sub r13, rsi
and r13, 0xfffffffffffffff8
mov rax, rsi
cmp r13, 0x1000
jb 0x140040f51
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040f51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov sil, 1
mov byte [rbp + 0x40], sil
jmp 0x140040dd5
mov rdx, r13
mov rcx, rsi
call fcn.1400b3b20
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret