Function at 0x1400afcac
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x258
mov qword [rbp], 0xfffffffffffffffe
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x118], rax
mov qword [rsp + 0x58], r9
mov r13, r8
mov r12, rcx
xor r14d, r14d
mov dword [rbp + 0xe8], r14d
test r9, r9
jne 0x1400afd0a
int3
or r8d, 0xffffffff
mov dword [rsp + 0x50], r8d
movups xmm0, xmmword [rsp + 0x48]
movdqu xmmword [r9], xmm0
test r12, r12
jne 0x1400afd23
int3
cmp dword [rdx + 8], r8d
jne 0x1400afd2a
int3
cmp qword [r13], r14
jne 0x1400afd31
int3
mov rcx, qword [r13 + 8]
test rcx, rcx
jne 0x1400afd3b
int3
mov qword [rbp + 0xe0], r14
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xd8], rax
mov eax, r8d
mov dword [rsp + 0x68], eax
movaps xmm8, xmmword [rdx]
mov rsi, r14
test rcx, rcx
je 0x1400b01ba
lea rax, [rbp + 0x80]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 1
mov dword [rsp + 0x34], 0x2001
lea rax, [rsp + 0x34]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
movdqa xmmword [rbp + 0x10], xmm8
mov rax, qword [r12]
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0x10]
mov rcx, r12
mov rax, qword [rax + 0x98]
call qword [case.0x14010a1e6.0]
mov ebx, eax
test eax, eax
js 0x1400b02c3
cmp dword [rbp + 0x80], 2
je 0x1400afde9
int3
mov dl, r14b
mov byte [rsp + 0x31], dl
or dword [rbp + 0x28], 0xffffffff
movaps xmm7, xmmword [rbp + 0x20]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
mov rdi, r14
mov r15, rsi
shl r15, 4
mov rax, qword [rbp + 0x88]
cmp rdi, qword [rax + 8]
jae 0x1400b0170
mov rcx, rdi
add rcx, rcx
mov rax, qword [rax]
movups xmm6, xmmword [rax + rcx*8]
movdqu xmmword [rbp + 0x30], xmm6
mov rax, qword [r12]
lea r8, [rbp + 0xf0]
lea rdx, [rbp + 0x30]
mov rcx, r12
mov rax, qword [rax + 0x58]
call qword [case.0x14010a1e6.0]
mov ebx, eax
test eax, eax
js 0x1400b02c3
cmp dword [rbp + 0xf8], 0xffffffff
je 0x1400affe7
lea rax, [rbp + 0x98]
mov qword [rbp - 0x50], rax
mov ecx, 1
mov qword [rbp - 0x48], rcx
mov dword [rsp + 0x38], 0x2004
lea rax, [rsp + 0x38]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rcx
movdqa xmmword [rbp + 0x40], xmm6
mov rax, qword [r12]
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x40]
mov rcx, r12
mov rax, qword [rax + 0x98]
call qword [case.0x14010a1e6.0]
mov ebx, eax
test eax, eax
js 0x1400b02c3
lea rax, [rbp + 0xb0]
mov qword [rbp - 0x30], rax
mov ecx, 1
mov qword [rbp - 0x28], rcx
mov dword [rsp + 0x3c], 0x2005
lea rax, [rsp + 0x3c]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
movdqa xmmword [rbp + 0x50], xmm6
mov rax, qword [r12]
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x50]
mov rcx, r12
mov rax, qword [rax + 0x98]
call qword [case.0x14010a1e6.0]
mov ebx, eax
test eax, eax
js 0x1400b02c3
mov byte [rsp + 0x30], r14b
mov r14, qword [r13]
mov rax, qword [r15 + r14 + 8]
test rax, rax
je 0x1400aff46
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
je 0x1400aff52
lea r8, [rsp + 0x32]
mov rcx, rax
call fcn.140036844
mov ebx, eax
mov al, byte [rsp + 0x32]
jmp 0x1400aff63
mov rax, qword [rbp + 0xa0]
test rax, rax
je 0x1400aff5b
cmp qword [rax], 0
sete al
jmp 0x1400aff5d
mov al, 1
mov byte [rsp + 0x32], al
xor ebx, ebx
test ebx, ebx
js 0x1400b02ae
test al, al
je 0x1400affe4
mov rax, qword [r15 + r14]
xor r14d, r14d
test rax, rax
je 0x1400aff9c
mov rdx, qword [rbp + 0xb8]
test rdx, rdx
je 0x1400affa8
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.140036844
mov ebx, eax
mov al, byte [rsp + 0x30]
jmp 0x1400affb5
mov rax, qword [rbp + 0xb8]
test rax, rax
je 0x1400affb0
cmp qword [rax], r14
sete al
jmp 0x1400affb2
mov al, 1
mov ebx, r14d
test ebx, ebx
js 0x1400b02a2
test al, al
je 0x1400affe7
mov byte [rsp + 0x31], 1
movaps xmm7, xmm6
mov rdx, rdi
lea rcx, [rbp + 0xc8]
call fcn.1400afb64
mov ebx, eax
test eax, eax
js 0x1400b02c3
jmp 0x1400affe7
xor r14d, r14d
mov dl, byte [rsp + 0x31]
test dl, dl
jne 0x1400b0165
lea rcx, [rdi + 1]
mov rax, qword [rbp + 0x88]
cmp rcx, qword [rax + 8]
jne 0x1400b0165
cmp qword [rbp + 0xe0], r14
je 0x1400b0165
lea rax, [rbp + 0x100]
mov qword [rbp - 0x10], rax
mov edi, 1
mov qword [rbp - 8], rdi
mov dword [rsp + 0x40], 0x200b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
movdqa xmmword [rbp + 0x60], xmm8
mov rax, qword [r12]
lea r9, [rbp - 0x10]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x60]
mov rcx, r12
mov rax, qword [rax + 0x98]
call qword [case.0x14010a1e6.0]
mov ebx, eax
test eax, eax
js 0x1400b02c3
movups xmm8, xmmword [rbp + 0x108]
lea rax, [rbp + 0x80]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x44], 0x2001
lea rax, [rsp + 0x44]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdi
movdqu xmmword [rbp + 0x70], xmm8
mov rax, qword [r12]
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x70]
mov rcx, r12
mov rax, qword [rax + 0x98]
call qword [case.0x14010a1e6.0]
mov ebx, eax
test eax, eax
js 0x1400b02c3
cmp dword [rbp + 0x80], 2
je 0x1400b00da
int3
or rdi, 0xffffffffffffffff
lea rax, [rbp + 0xc8]
mov rdx, qword [rbp + 0xc8]
cmp rdx, rax
je 0x1400b015a
test rdx, rdx
je 0x1400b0123
lea rax, [rbp + 0xc8]
cmp qword [rdx + 0x10], rax
jne 0x1400b0123
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rcx], rax
mov qword [rdx + 0x10], r14
dec qword [rbp + 0xe0]
lea rax, [rbp + 0xc8]
cmp rdx, rax
je 0x1400b015a
lea r8, [rdx - 8]
test r8, r8
je 0x1400b015a
mov rdi, qword [r8]
mov qword [r8 + 0x18], r14
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
dec rsi
sub r15, 0x10
mov dl, byte [rsp + 0x31]
inc rdi
test dl, dl
je 0x1400afe0c
test dl, dl
je 0x1400b02bd
movdqa xmm0, xmm7
psrldq xmm0, 8
movd eax, xmm0
or r8d, 0xffffffff
cmp eax, r8d
jne 0x1400b018f
int3
inc rsi
cmp rsi, qword [r13 + 8]
jae 0x1400b019e
movaps xmm8, xmm7
jmp 0x1400b01ab
movaps xmm0, xmmword [rbp + 0xf0]
movdqa xmmword [rsp + 0x60], xmm0
jb 0x1400afd83
mov eax, dword [rsp + 0x68]
mov r9, qword [rsp + 0x58]
cmp eax, r8d
jne 0x1400b01c0
int3
movaps xmm0, xmmword [rsp + 0x60]
movdqu xmmword [r9], xmm0
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x1400b022d
lea rax, [rbp + 0xc8]
cmp rcx, rax
je 0x1400b022d
mov rbx, qword [rcx]
lea rax, [rcx - 8]
mov r8, r14
lea rdx, [rbp + 0xc8]
cmp rcx, rdx
cmovne r8, rax
test r8, r8
je 0x1400b021e
mov qword [r8 + 0x18], r14
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, rbx
lea rax, [rbp + 0xc8]
cmp rbx, rax
jne 0x1400b01e2
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xd8], r14
mov eax, dword [rbp + 0xe8]
mov rcx, qword [rbp + 0x118]
xor rcx, rsp
call fcn.140109af0
lea r11, [rsp + 0x258]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, ebx
shr eax, 0x1f
xor al, 1
je 0x1400b02c3
int3
mov eax, ebx
shr eax, 0x1f
xor al, 1
je 0x1400b02b8
int3
xor r14d, r14d
jmp 0x1400b02c3
mov ebx, dword [rbp + 0xe8]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x1400b0326
lea rax, [rbp + 0xc8]
cmp rcx, rax
je 0x1400b0326
mov rdi, qword [rcx]
lea rax, [rcx - 8]
mov r8, r14
lea rdx, [rbp + 0xc8]
cmp rcx, rdx
cmovne r8, rax
test r8, r8
je 0x1400b0317
mov qword [r8 + 0x18], r14
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, rdi
lea rax, [rbp + 0xc8]
cmp rdi, rax
jne 0x1400b02db
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0xc8]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xd8], r14
mov eax, ebx
jmp 0x1400b026b