Function at 0x140002500
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, qword [rbp + 0x110]
mov eax, 0x5a4d
mov qword [rbp - 0x80], rcx
movzx r14d, r9b
mov qword [rbp - 0x58], rdx
cmp word [rdx], ax
jne 0x140002ec0
movsxd rsi, dword [rdx + 0x3c]
mov eax, 0x8664
add rsi, rdx
cmp word [rsi + 4], ax
jne 0x140002ec0
lea rax, [rbp + 0x70]
mov dword [rbp + 0x70], 4
mov qword [rsp + 0x28], rax
lea r9, [rsi + 0x50]
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x3000
xor r12d, r12d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x60]
mov qword [rbp + 0x60], r12
lea rdx, [rbp - 0x80]
mov ecx, 0x55917055
call fcn.140027640
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140002ec0
lea rax, [rbp + 0x44]
mov dword [rbp + 0x44], r12d
mov qword [rbp + 0x60], rax
lea r9, [rsi + 0x50]
lea rax, [rbp + 0x60]
mov dword [rbp + 0x50], 0x40
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x78]
lea rax, [rbp + 0x50]
mov ecx, 0x55917055
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.140027730
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r9, [rbp - 0x58]
movzx r15d, byte [rbp + 0x100]
lea r8, [rbp - 0x78]
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0xf75412ce
mov qword [rbp - 0x38], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0x108]
mov dword [rbp - 0x18], eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x14], r12d
mov dword [rbp - 4], r12d
mov qword [rbp - 0x10], rdi
mov dword [rbp - 8], r15d
mov qword [rbp + 0x60], r12
mov dword [rbp + 0x50], 0x1000
call fcn.140027820
test eax, eax
jne 0x14000269b
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x8000
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x78]
mov dword [rbp + 0x70], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
jmp 0x140002ec0
movzx ebx, word [rsi + 0x14]
mov edi, r12d
add rbx, 0x28
cmp word [rsi + 6], di
je 0x140002709
add rbx, rsi
nop
cmp dword [rbx], r12d
je 0x1400026fb
mov eax, dword [rbx + 4]
lea r9, [rbp + 0x50]
add rax, qword [rbp - 0x58]
lea r8, [rbp + 0x70]
mov qword [rbp + 0x50], rax
lea rdx, [rbp - 0x80]
mov eax, dword [rbx - 4]
mov ecx, 0xf75412ce
add rax, qword [rbp - 0x78]
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov qword [rbp + 0x60], r12
call fcn.140027820
test eax, eax
je 0x14000266c
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x1400026b0
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x60]
lea rax, [rbp + 0x70]
mov dword [rbp + 0x70], 0x3000
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov qword [rbp + 0x60], 0x40
mov ecx, 0x55917055
mov qword [rsp + 0x48], r12
call fcn.1400279d0
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x80]
test rax, rax
jne 0x140002785
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x8000
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x78]
mov dword [rbp + 0x70], r12d
mov ecx, 0xc13b06e7
call fcn.140027910
jmp 0x140002ec0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], r12
mov qword [rbp + 0x50], rax
lea r9, [rbp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rbp + 0x60], 0x40
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x70]
lea rax, [rbp + 0x60]
mov ecx, 0xf75412ce
mov qword [rsp + 0x20], rax
call fcn.140027ac0
test eax, eax
jne 0x14000281c
lea rdx, [rbp - 0x80]
lea rax, [rbp + 0x50]
mov dword [rbp + 0x70], r12d
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x70]
mov dword [rbp + 0x50], 0x8000
mov ecx, 0xc13b06e7
call fcn.140027910
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x8000
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov dword [rbp + 0x70], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
jmp 0x140002ec0
mov rcx, qword [rbp - 0x80]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x80]
test rax, rax
je 0x1400027c7
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x28], rax
lea r9, [0x140002ef0]
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x1000
lea r8, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov ecx, 0xf75412ce
call fcn.140027bb0
mov dword [rbp + 0x70], r12d
lea r9, [rbp + 0x70]
lea rdx, [rbp - 0x80]
test eax, eax
jne 0x1400028f1
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x8000
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov ecx, 0xc13b06e7
call fcn.140027910
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x8000
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov dword [rbp + 0x70], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x8000
lea r9, [rbp + 0x70]
mov dword [rbp + 0x70], r12d
jmp 0x140002ea9
mov rax, qword [rbp - 0x68]
lea r8, [rsp + 0x40]
mov qword [rbp + 0x60], rax
mov ecx, 0x398d39c9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x50], r12d
mov qword [rsp + 0x40], r12
call fcn.140027c90
mov qword [rbp - 0x50], rax
test rax, rax
jne 0x140002955
mov dword [rbp + 0x70], r12d
lea r9, [rbp + 0x70]
lea rdx, [rbp - 0x80]
jmp 0x140002891
lea rdx, [rbp - 0x50]
mov ecx, 0xd3c6033f
call fcn.140027dd0
mov dword [rbp + 0x40], r12d
mov edi, r12d
nop word [rax + rax]
lea rax, [rbp + 0x40]
mov ecx, 0xdf3f3468
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x80]
call fcn.140027e50
cmp dword [rbp + 0x40], 0x103
jne 0x140002ec0
xorps xmm0, xmm0
mov qword [rsp + 0x40], r12
lea rax, [rbp]
mov qword [rsp + 0x48], 0x40
mov qword [rbp + 0x60], rax
lea r9, [rbp + 0x60]
lea rax, [rsp + 0x40]
mov ecx, 0xd3c6033f
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x70]
lea rax, [rsp + 0x48]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call fcn.140027ac0
mov rbx, qword [rbp + 0x20]
cmp rbx, 0x404040
je 0x140002e42
cmp rbx, 0x505050
je 0x140002e42
cmp edi, 0x3e8
jge 0x140002e42
mov ecx, 0xa
inc edi
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x140002970
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140002ec0
xor edx, edx
mov r8d, 0x1400000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
test r14b, r14b
je 0x140002a8e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], 0x1000
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov ecx, 0xf75412ce
call fcn.140027820
cmp byte [rbp + 0xf0], r12b
je 0x140002cc6
movzx ebx, word [rsi + 0x14]
mov edi, r12d
add rbx, 0x18
add rbx, rsi
cmp word [rsi + 6], di
je 0x140002cc6
mov qword [rsp + 0x1e0], r13
movabs rax, 0x43fb301b1fca6713
movabs r13, 0x43fb516f7eae173d
movabs r14, 0xd94887a1e3c938e
movabs r10, 0x43fb510c0cdd6513
movabs r11, 0x43fb320012cb6513
nop dword [rax]
cmp dword [rbx + 8], r12d
lea r9, [rbx + 8]
je 0x140002ca2
test r15b, r15b
jne 0x140002b7b
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x50]
mov rax, qword [rsp + 0x40]
sub r8, rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x60], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x68], rax
mov rax, rbx
movdqa xmm0, xmmword [rbp + 0x60]
xorps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002b73
inc rax
test ecx, ecx
jne 0x140002b60
test edx, edx
je 0x140002c57
mov qword [rsp + 0x40], r10
lea r8, [rsp + 0x60]
mov rax, qword [rsp + 0x40]
sub r8, rbx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x50], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x58], rax
mov rax, rbx
movdqa xmm0, xmmword [rbp + 0x50]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002be3
inc rax
test ecx, ecx
jne 0x140002bd0
test edx, edx
je 0x140002c57
mov qword [rsp + 0x40], r11
lea r8, [rsp + 0x70]
mov rax, qword [rsp + 0x40]
sub r8, rbx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x70], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x78], rax
mov rax, rbx
movdqa xmm0, xmmword [rbp + 0x70]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002c53
inc rax
test ecx, ecx
jne 0x140002c40
test edx, edx
jne 0x140002ca2
mov eax, dword [rbx + 0xc]
lea r8, [rsp + 0x48]
add rax, qword [rbp - 0x78]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x48], rax
mov ecx, 0xf75412ce
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
lea r9, [rbp - 0x60]
call fcn.140027820
movabs r10, 0x43fb510c0cdd6513
movabs r11, 0x43fb320012cb6513
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
movabs rax, 0x43fb301b1fca6713
jne 0x140002af0
mov r13, qword [rsp + 0x1e0]
cmp byte [rbp + 0xf8], r12b
je 0x140002db2
movzx ebx, word [rsi + 0x14]
mov edi, r12d
add rbx, 0x20
cmp word [rsi + 6], di
je 0x140002d6d
add rbx, rsi
nop dword [rax + rax]
cmp dword [rbx], r12d
je 0x140002d5f
mov eax, dword [rbx + 0x1c]
mov dword [rbp + 0x50], r12d
mov dword [rbp + 0x70], 2
test eax, 0x80000000
jbe 0x140002d13
mov dword [rbp + 0x70], 4
jmp 0x140002d21
test eax, 0x20000000
jbe 0x140002d21
mov dword [rbp + 0x70], 0x20
lea rax, [rbp + 0x50]
mov r9, rbx
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x48]
mov eax, dword [rbx + 4]
lea rdx, [rbp - 0x80]
add rax, qword [rbp - 0x78]
mov ecx, 0x87e811b5
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.140027ef0
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140002cf0
movzx r9d, word [rsi + 0x14]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
lea r8, [rbp - 0x78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x60], r12d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x80]
add r9, 0x24
mov dword [rbp + 0x50], 2
lea rax, [rbp + 0x50]
add r9, rsi
mov ecx, 0x87e811b5
mov qword [rsp + 0x20], rax
call fcn.140027ef0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 0x1000
lea r8, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov ecx, 0xf75412ce
call fcn.140027820
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 0x8000
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x68]
mov dword [rbp + 0x50], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 0x8000
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov dword [rbp + 0x50], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
mov al, 1
jmp 0x140002ec2
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 0x8000
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x78]
mov dword [rbp + 0x50], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 0x8000
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov dword [rbp + 0x50], r12d
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
lea r9, [rbp + 0x50]
mov dword [rbp + 0x50], r12d
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 0x8000
lea r8, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov ecx, 0xc13b06e7
call fcn.140027910
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140054330
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret