Function at 0x140020790
Capabilities:
Access peb ldr_data
Map section object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x6c], r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov rcx, qword gs:[0x30]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rbx, qword [rcx + 0x40]
not rbx
cmp dword [rax + 0x2c0], r15d
mov rax, qword [rcx + 0x60]
jne 0x1400208bd
xor rbx, qword [rax + 0x30]
mov edx, 0x20d
lea rcx, [rbp]
call fcn.1400111e0
mov rdi, rax
mov rsi, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
je 0x140020833
mov ecx, r15d
jmp 0x140020845
mov rax, qword [rdi + 8]
lea rcx, [0x14025ad40]
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rcx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14008d7e0
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x14002087c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14002087c
mov rcx, qword [rbp]
call fcn.1402275a0
nop
lea rcx, [rbp - 0x60]
call fcn.140094620
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140021210
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140020980
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140020980
mov rcx, qword [rbp - 0x60]
jmp 0x14002097b
xor rbx, qword [rax + 0x30]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r14d, dword [rcx + 0x2c0]
mov edx, 0x20e
lea rcx, [rbp + 0x18]
call fcn.1400111e0
mov rdi, rax
mov rsi, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
je 0x1400208fb
mov rcx, r15
jmp 0x14002090d
mov rax, qword [rdi + 8]
lea rcx, [0x14025ad40]
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rcx
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.14008d7e0
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140020944
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140020944
mov rcx, qword [rbp + 0x18]
call fcn.1402275a0
nop
lea rcx, [rbp - 0x48]
call fcn.140094620
mov r9, rbx
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140021210
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140020980
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140020980
mov rcx, qword [rbp - 0x48]
call fcn.1402275a0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140020990
add ax, ax
mov word [rsp + 0x68], ax
add ax, 2
mov word [rsp + 0x6a], ax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x18], r15d
lea rax, [rsp + 0x68]
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x78], 0x1000
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x30]
mov edx, 0xf001f
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
js 0x140020a94
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [0x140398f48]
lea rdx, [r9 - 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
jns 0x140020a68
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1402200b0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp eax, 0xc0000035
jne 0x140020a68
lea r8, [rbp - 0x30]
mov edx, 0xf001f
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenSection]
test eax, eax
js 0x140020a68
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [r9 - 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140020a66
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx + 0x70]
mov qword [0x140398f48], rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, 0xc0000510
jmp 0x140020a68