Function at 0x140001480
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword gs:[0x60]
mov r9, qword [rax + 0x18]
add r9, 0x10
mov r8, qword [r9]
xor esi, esi
cmp r8, r9
je 0x140001520
lea r10, str.ntdll.dll
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r8 + 0x60]
mov rax, rsi
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
jne 0x140001518
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x140001518
add rax, 2
cmp rax, 0xa
jne 0x1400014f0
mov r15, qword [r8 + 0x30]
jmp 0x140001523
mov r8, qword [r8]
cmp r8, r9
jne 0x1400014e0
mov r15, rsi
movsxd rax, dword [r15 + 0x3c]
mov r13d, dword [rax + r15 + 0x88]
add r13, r15
mov edi, dword [r13 + 0x1c]
add rdi, r15
mov qword [rbp - 0x39], rdi
mov eax, dword [r13 + 0x20]
add rax, r15
mov qword [rbp - 0x29], rax
mov ecx, dword [r13 + 0x24]
add rcx, r15
mov qword [rbp - 0x31], rcx
mov r14d, esi
cmp dword [r13 + 0x18], esi
jbe 0x1400017f0
mov r12d, r14d
mov ebx, dword [rax + r12*4]
add rbx, r15
mov r8d, 2
lea rdx, [0x14000543c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400017c9
lea rdx, [rbx + 2]
mov qword [rbp - 0x59], rsi
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400015a6
lea rcx, [rbp - 0x59]
call fcn.1400025a0
nop
mov r8, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
sub rax, r8
cmp rax, 2
jb 0x140001665
lea rax, [r8 + 2]
mov qword [rbp - 0x49], rax
lea rbx, [rbp - 0x59]
cmp rcx, 0x10
cmovae rbx, qword [rbp - 0x59]
lea rax, [0x140005442]
cmp rax, rbx
jbe 0x140001615
lea rax, [rbx + r8]
lea rcx, [0x140005440]
cmp rcx, rax
ja 0x140001615
cmp rbx, rcx
ja 0x14000160d
mov rdi, rsi
jmp 0x14000161a
mov rdi, rbx
sub rdi, rcx
jmp 0x14000161a
mov edi, 2
lea rcx, [rbx + 2]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
lea rdx, [0x140005440]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, 2
sub r8, rdi
lea rdx, [0x140005440]
add rdx, 2
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x59]
mov rdi, qword [rbp - 0x39]
jmp 0x14000167c
mov qword [rsp + 0x28], 2
mov edx, 2
lea rcx, [rbp - 0x59]
call fcn.1400030f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x1400016d5
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017db
call fcn.14000355c
mov qword [rbp - 0x19], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rax, qword [rbp - 0x31]
movzx eax, word [rax + r12*2]
mov ecx, dword [rdi + rax*4]
add rcx, r15
mov qword [rbp - 0x21], rcx
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp - 0x19]
call fcn.1400025a0
mov rbx, qword [0x1400086f8]
cmp rbx, qword [0x140008700]
je 0x14000174d
mov rax, qword [rbp - 0x21]
mov qword [rbx], rax
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x19]
call fcn.140002480
mov rax, qword [rbp + 7]
mov qword [rbx + 0x28], rax
add qword [0x1400086f8], 0x30
jmp 0x14000175a
lea r8, [rbp - 0x21]
mov rdx, rbx
call fcn.140002ad0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140001792
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000178c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017e2
call fcn.14000355c
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1400017c9
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017e9
call fcn.14000355c
inc r14d
cmp r14d, dword [r13 + 0x18]
jae 0x1400017f0
mov rax, qword [rbp - 0x29]
jmp 0x140001560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [0x1400086f8]
sub rcx, qword [0x1400086f0]
movabs r13, 0x2aaaaaaaaaaaaaab
mov rax, r13
imul rcx
sar rdx, 3
mov r8, rdx
shr r8, 0x3f
add r8, rdx
dec r8d
xor edx, edx
call fcn.1400012d0
mov r12, qword [0x1400086f8]
mov rcx, r12
mov r14, qword [0x1400086f0]
sub rcx, r14
mov rax, r13
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140001955
mov rdi, rsi
nop word [rax + rax]
lea r15, [rdi + r14]
lea rcx, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x140001873
mov rcx, qword [r15 + 8]
cmp qword [r15 + 0x18], 0x16
jne 0x140001929
mov r8d, 0x16
lea rdx, str.NtProtectVirtualMemory
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001929
lea rdx, str.Name:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400028c0
lea rdx, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x1400018ba
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x18]
mov rcx, rax
call fcn.140002ea0
lea rdx, str._nSyscall_ID:
mov rcx, rax
call fcn.1400028c0
mov rcx, rax
lea rdx, [0x140001240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, str._nAddress:
call fcn.1400028c0
mov rcx, rax
mov rdx, qword [r15]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140002a90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r12, qword [0x1400086f8]
mov r14, qword [0x1400086f0]
inc esi
add rdi, 0x30
mov rcx, r12
sub rcx, r14
mov rax, r13
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, esi
cmp rax, rdx
jb 0x140001860
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400032b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret