joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005b7b4
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rcx + 0x138], rdx
mov rbx, rdx
cmp qword [rdx], 0
mov rsi, rcx
jne 0x18005b8fa
lea r13, [rsi + 0x150]
mov rbp, qword [r13 + 8]
jmp 0x18005b87f
mov r15, rax
mov eax, dword [rax + 8]
cmp rdx, rax
jae 0x18005b8c3
mov r14, rdx
cmp qword [rbx], 0
je 0x18005b834
cmp edx, r8d
mov qword [rsp + 0x28], rdx
lea eax, [r8 - 1]
mov r9, rbp
cmovb eax, edx
mov r8b, 1
mov rdx, rbx
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.18005c30c
movzx eax, word [rbp - 8]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov r8b, 1
mov rdx, r15
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.18005c190
cmp dword [0x18015d450], 1
jge 0x1800b8094
cmp dword [rsi + 0x7c], 0
je 0x18005b87b
mov al, byte [rbp - 6]
xor al, byte [rbp - 7]
xor al, byte [rbp - 8]
mov byte [rbp - 5], al
mov eax, dword [rsi + 0x88]
xor dword [rbp - 8], eax
mov rbp, qword [rbp + 8]
cmp r13, rbp
je 0x18005b8db
cmp dword [rsi + 0x7c], 0
je 0x18005b8af
mov edx, dword [rsi + 0x88]
xor edx, dword [rbp - 8]
mov ecx, edx
mov dword [rbp - 8], edx
shr ecx, 0x10
mov eax, edx
shr eax, 8
xor cl, al
xor cl, dl
shr edx, 0x18
cmp dl, cl
jne 0x1800b8082
movzx edx, word [rbp - 8]
mov r15, rbx
mov r8d, dword [rbx + 8]
cmp rdx, r8
jb 0x18005b807
mov rax, qword [r15]
test rax, rax
jne 0x18005b7f8
mov r14d, dword [r15 + 8]
dec r14d
jmp 0x18005b80a
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
mov eax, dword [rdx + 8]
sub eax, dword [rdx + 0x18]
dec eax
cmp dword [rdx + 0xc], 0
jne 0x18005b93d
mov ecx, eax
mov rax, qword [rdx + 0x30]
and qword [rax + rcx*8], 0
mov eax, dword [rdx + 8]
sub eax, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x28]
dec eax
mov ecx, eax
mov r8d, eax
and ecx, 0x1f
mov eax, 1
shr r8, 5
shl eax, cl
not eax
and dword [rdx + r8*4], eax
jmp 0x18005b7e8
add eax, eax
jmp 0x18005b908
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.1800fbec0
nop
jmp 0x18005b8af
sub r14d, dword [r15 + 0x18]
mov rax, qword [r15 + 0x28]
mov edx, r14d
and r14d, 0x1f
shr rdx, 5
mov eax, dword [rax + rdx*4]
bt eax, r14d
jb 0x18005b860
mov rax, qword gs:[0x60]
cmp qword [rax + 0x18], 0
je 0x1800b80e7
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x1800b80f3
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
lea rcx, str.RtlpGetBitState_LookupTable___ULONG__LookupIndex___LookupTable__BaseIndex__
call sym.ntdll.dll_DbgPrint
mov ecx, 1
call fcn.1800fc294
nop
jmp 0x18005b860
Function at 0x18005c890
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1801724e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
test r8d, 0xe0000000
jne 0x18005c8c3
mov ecx, 0x11000000
mov eax, r8d
and eax, ecx
cmp eax, ecx
jne 0x18005c8e0
mov eax, 0xc00000f1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18008b0e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
test edx, 0xff000000
jne 0x1800b89d8
bt r8d, 0x1a
jb 0x18005c981
and dword [rbx + 0xc], 0
or rdi, 0xffffffffffffffff
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov dword [rbx + 8], edi
mov rax, qword gs:[0x60]
lea r9d, [rdi + 2]
cmp dword [rax + 0xb8], r9d
jbe 0x1800b89e2
bt r8d, 0x19
jb 0x18005c931
test edx, edx
jne 0x18005c988
mov ecx, 0x20007d0
mov qword [rbx + 0x20], rcx
mov eax, r8d
and eax, 0x9000000
or rax, rcx
mov qword [rbx + 0x20], rax
bt r8d, 0x1c
jb 0x18005c95c
cmp byte [0x18015ac08], 0
jne 0x18005c95c
xor r9b, r9b
mov qword [rbx], rdi
test r9b, r9b
jne 0x18005c992
call sym.ntdll.dll_RtlGetCurrentServiceSessionId
mov edi, 0x7ffe0382
test eax, eax
jne 0x1800b89f9
mov ecx, edi
cmp byte [rcx], 0
jne 0x1800b8a15
xor eax, eax
jmp 0x18005c8c8
mov ecx, edx
and ecx, 0xffffff
jmp 0x18005c936
mov rcx, rbx
call fcn.180024408
cmp qword [rbx], rdi
jne 0x18005c964
jmp 0x1800b89ee
mov eax, 0xc00000f0
jmp 0x18005c8c8
and qword [rbx + 0x20], 0
xor ecx, ecx
jmp 0x18005c93a
bts qword [rbx + 0x20], 0x18
jmp 0x18005c964
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x90]
add rcx, 0x228
jmp 0x18005c978
mov rax, qword gs:[0x60]
test byte [rax + 0x378], 2
je 0x18005c981
mov eax, 0x1723
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x26], ax
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x40], rax
call sym.ntdll.dll_RtlGetCurrentServiceSessionId
test eax, eax
je 0x1800b8a63
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x90]
add rdi, 0x228
movzx ecx, byte [rdi]
lea r9, [rsp + 0x20]
mov edx, 0x10402
mov r8d, 0x10
call sym.ntdll.dll_NtTraceEvent
nop
jmp 0x18005c981
Function at 0x18005d72c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov rdi, rdx
xor edx, edx
mov r8d, 0x4f0
mov ebx, r9d
mov rsi, rcx
call sym.ntdll.dll_memset
mov rax, qword [rsp + 0x60]
xor ecx, ecx
mov qword [rsi], rdi
mov byte [rsi + 0x40], bl
movups xmm0, xmmword [rax]
lea r14d, [rcx + 1]
movups xmm1, xmmword [rax + 0x10]
lea r9d, [rcx + 4]
movups xmmword [rsi + 8], xmm0
movsd xmm0, qword [rax + 0x20]
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x48], rax
mov rax, qword [rsp + 0x70]
movups xmmword [rsi + 0x18], xmm1
movsd qword [rsi + 0x28], xmm0
movsd xmm0, qword [rax]
movsd qword [rsi + 0x50], xmm0
mov eax, dword [rax + 8]
mov dword [rsi + 0x58], eax
mov rax, qword [0x18015a440]
xor rax, rsi
xor qword [rsi + rcx*8 + 8], rax
add rcx, r14
cmp rcx, r9
jl 0x18005d7a2
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x18005d7d0
xor rax, qword [0x18015a440]
xor rax, rsi
mov qword [rsi + 0x28], rax
lea r8, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call sym.ntdll.dll_RtlQueryResourcePolicy
test eax, eax
js 0x18005d7eb
cmp dword [rsp + 0x50], 0xa
cmovle ebp, r14d
lea rdi, [rsi + 0x70]
mov ebx, 7
mov rcx, rdi
call fcn.180073a34
add rdi, 0x10
sub rbx, r14
jne 0x18005d7f4
lea edx, [rbx + 0x40]
mov byte [rsi + 0x30], bpl
cmp bpl, dl
ja 0x18005d871
cmp bpl, r14b
jbe 0x18005d83a
movzx eax, bpl
mov ecx, 0x3e
sub edx, eax
sub ecx, edx
lea eax, [rdx + 0x3d]
imul eax, ecx
lea rcx, [0x180114ee0]
shr rax, 1
add rax, rcx
mov qword [rsi + 0x38], rax
and qword [rsp + 0x60], 0
lea rdi, [rsi + 0xe0]
mov word [rsp + 0x60], r14w
mov ecx, 0x81
mov rax, qword [rsp + 0x60]
rep stosq qword [rdi], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp fcn.18005c734
mov byte [rsi + 0x30], dl
mov bpl, dl
jmp 0x18005d811

Function at 0x18005dd10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov rdi, r8
xor edx, edx
mov esi, r9d
mov r14, rcx
lea r8d, [rdx + 0x78]
call sym.ntdll.dll_memset
movups xmm0, xmmword [rdi]
xor edx, edx
mov rax, r14
movups xmm1, xmmword [rdi + 0x10]
xor rax, rbx
mov dword [r14 + 0x74], edx
movups xmmword [r14 + 0x48], xmm0
mov qword [r14 + 0x40], rax
mov rax, qword [rsp + 0x58]
movsd xmm0, qword [rdi + 0x20]
movups xmmword [r14 + 0x58], xmm1
mov dword [r14 + 8], esi
movsd qword [r14 + 0x68], xmm0
mov ecx, dword [rax]
mov dword [r14 + 0x70], ecx
mov ecx, edx
mov rax, qword [r14 + rcx*8 + 0x48]
xor rax, qword [0x18015a440]
xor rax, r14
mov qword [r14 + rcx*8 + 0x48], rax
inc rcx
cmp rcx, 4
jl 0x18005dd79
mov rax, qword [r14 + 0x68]
test rax, rax
jne 0x1800b90cc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov qword [r14], rdx
mov qword [r14 + 0x10], rdx
mov qword [r14 + 0x18], rdx
mov qword [r14 + 0x28], rdx
mov qword [r14 + 0x20], rdx
add rsp, 0x20
pop r14
ret
xor rax, qword [0x18015a440]
xor rax, r14
mov qword [r14 + 0x68], rax
jmp 0x18005dda3
Function at 0x180060204
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
push r14
push r15
sub rsp, 0x40
mov edi, r8d
mov r15, rdx
mov r14, rcx
mov rsi, qword gs:[0x60]
and dword [rax - 0x34], 0
test r8b, 1
jne 0x180060245
lea rcx, [0x18015aac0]
call sym.ntdll.dll_RtlEnterCriticalSection
nop
xor ebx, ebx
mov dword [rsp + 0x20], ebx
cmp ebx, dword [rsi + 0xe8]
jae 0x180060282
mov rax, qword [rsi + 0xf0]
mov rcx, qword [rax + rbx*8]
lea rax, [fcn.180060360]
mov rdx, r15
cmp r14, rax
jne 0x1800602d8
call fcn.180060360
mov dword [rsp + 0x24], eax
test eax, eax
js 0x18006032b
inc ebx
jmp 0x180060247
test dil, 2
je 0x18006032b
xor ebx, ebx
mov dword [rsp + 0x20], ebx
movzx eax, word [0x18015d010]
cmp ebx, eax
jb 0x180060301
movups xmm0, xmmword [0x18015a790]
movdqu xmmword [rsp + 0x28], xmm0
xor eax, eax
mov dword [rsp + 0x20], eax
cmp eax, 3
jae 0x18006032b
add rax, rax
lea rcx, [0x1801608c0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x78], rax
mov rcx, rax
test rax, rax
jne 0x1800602e7
mov eax, dword [rsp + 0x20]
inc eax
jmp 0x1800602ac
mov rax, r14
mov r8, qword [section..00cfg]
call r8
jmp 0x180060272
mov rdx, r15
mov rax, r14
mov r8, qword [section..00cfg]
call r8
mov dword [rsp + 0x24], eax
test eax, eax
jns 0x1800602d0
jmp 0x18006032b
mov rdx, r15
mov rcx, qword [0x180156a38]
mov rcx, qword [rcx + rbx*8]
mov rax, r14
mov r8, qword [section..00cfg]
call r8
mov dword [rsp + 0x24], eax
test eax, eax
js 0x18006032b
inc ebx
jmp 0x18006028e
test dil, 1
jne 0x18006033d
lea rcx, [0x18015aac0]
call sym.ntdll.dll_RtlLeaveCriticalSection
mov eax, dword [rsp + 0x24]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180060d38
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename
Resolve function by parsing pe exports

Disassembly:
mov r9, qword [rcx + 0x18]
mov r10, rdx
mov r8, rcx
shl r9, 0xc
mov rcx, qword [rcx + 0x20]
mov rax, qword [r8 + 0x118]
add rax, qword [r8 + 0xa0]
mov qword [r10 + 0x88], rax
add rax, rax
mov qword [rdx + 0x78], r9
mov rdx, rcx
sub rcx, rax
shl rdx, 0xc
mov qword [r10 + 0x80], rdx
shl rcx, 0xc
add rcx, 0xfffffffffffff000
mov qword [r10 + 0x90], rcx
mov rax, qword [r8 + 0x60]
shl rax, 0xc
mov qword [r10 + 0x98], rax
mov rax, qword [r8 + 0x68]
shl rax, 0xc
mov qword [r10 + 0xa0], rax
mov qword [r10 + 0x50], rcx
mov qword [r10 + 0x20], r8
mov dword [r10 + 0x14], 2
movzx eax, word [r8 + 0x3c]
mov dword [r10 + 0x18], eax
mov rax, qword gs:[0x60]
mov ecx, dword [rax + 0xe8]
dec ecx
mov qword [r10 + 0x28], r9
mov dword [r10 + 0x1c], ecx
mov qword [r10 + 0x30], rdx
mov eax, dword [r10 + 0x98]
and dword [r10 + 0x64], 0
mov dword [r10 + 0x68], eax
ret

Function at 0x180063b90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
not ecx
test r8d, r8d
je 0x180063bd2
mov r10d, r8d
lea r11, [0x1801198e0]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
mov edx, ecx
xor rdx, rax
mov eax, ecx
shr eax, 8
movzx r8d, dl
mov ecx, dword [r11 + r8*4]
xor ecx, eax
sub r10, 1
jne 0x180063bb0
not ecx
mov eax, ecx
ret

Function at 0x180067530
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1801724e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
and dword [rcx + 0xc], 0
or rdi, 0xffffffffffffffff
and qword [rcx + 0x10], 0
and edx, 0xffffff
and qword [rcx + 0x18], 0
mov rbx, rcx
mov dword [rcx + 8], edi
mov rax, qword gs:[0x60]
cmp dword [rax + 0xb8], 1
jbe 0x1800bb844
mov eax, edx
test edx, edx
jne 0x180067588
mov eax, 0x20007d0
mov qword [rcx + 0x20], rax
cmp byte [0x18015ac08], 0
mov qword [rcx + 0x20], rax
setne al
mov qword [rcx], rdi
test al, al
jne 0x1800bb850
mov rax, qword gs:[0x60]
mov edi, 0x7ffe0382
mov rcx, qword [rax + 0x90]
test rcx, rcx
jne 0x1800bb869
mov rcx, rdi
cmp byte [rcx], 0
jne 0x1800bb88e
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18008b0e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
and qword [rcx + 0x20], 0
xor eax, eax
jmp 0x18006758c
call fcn.180024408
cmp qword [rbx], rdi
jne 0x1800675a5
bts qword [rbx + 0x20], 0x18
jmp 0x1800675a5
cmp dword [rcx], 0
je 0x1800675c3
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x90]
add rcx, 0x228
jmp 0x1800675c6
mov rax, qword gs:[0x60]
test byte [rax + 0x378], 2
je 0x1800675cf
mov eax, 0x1723
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x26], ax
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x40], rax
call sym.ntdll.dll_RtlGetCurrentServiceSessionId
test eax, eax
je 0x1800bb8dc
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x90]
add rdi, 0x228
movzx ecx, byte [rdi]
lea r9, [rsp + 0x20]
mov edx, 0x10402
mov r8d, 0x10
call sym.ntdll.dll_NtTraceEvent
nop
jmp 0x1800675cf
Function at 0x1800675f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
xor ebx, ebx
mov r8, rcx
mov edi, ebx
test rcx, rcx
je 0x1800bb97d
cmp dword [rcx + 0x48], ebx
jne 0x1800bb97d
mov rdi, qword [rcx + 0xb8]
test rdi, rdi
je 0x1800bb8fa
mov rdi, qword [rdi + 0x90]
test rdi, rdi
je 0x1800bb906
cmp qword [0x18015d398], rdi
je 0x1800bb90d
lock dec dword [rdi + 0x1a0]
lock inc dword [rdi + 0x1a4]
prefetchw byte [rdi + 8]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x50], rax
lea ecx, [rax + 1]
xor ecx, eax
movzx edx, cx
xor edx, eax
mov dword [rsp + 0x50], edx
mov rcx, qword [rsp + 0x50]
lock cmpxchg qword [rdi + 8], rcx
mov qword [rsp + 0x50], rax
jne 0x18006765e
or dword [r8 + 0x90], 0x10
mov rsi, qword [r8 + 0x88]
mov dword [r8 + 0x48], 2
test rsi, rsi
je 0x1800676a7
mov eax, dword [rsi + 0x120]
and eax, 3
cmp al, 3
je 0x1800676e1
mov eax, ebx
mov ecx, eax
test eax, eax
js 0x1800bb914
mov r9d, 4
mov dword [rsp + 0x48], 2
mov rcx, qword [rdi + 0x38]
lea r8, [rsp + 0x48]
lea edx, [r9 + 5]
call sym.ntdll.dll_NtSetInformationWorkerFactory
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov r15d, 0x7ffe03c0
jmp 0x1800bb923
mov rdi, qword [rcx + 0x80]
jmp 0x18006762d
mov eax, 0xc000000d
jmp 0x1800bb912
mov eax, 0xc00000bb
mov ecx, eax
cmp eax, 0xc00000bb
cmovne ebx, ecx
mov eax, ebx
jmp 0x1800676d3
mov r9d, dword [r15]
mov rcx, qword [rsi + 0xd8]
mov eax, dword [rsi + 0x11c]
mov edx, dword [rcx + 0x1a4]
add edx, r9d
lea r8d, [rdx + r9]
cmp eax, edx
jl 0x1800bb950
lea ecx, [r8 + r9]
cmp eax, ecx
jle 0x1800676a7
lock cmpxchg dword [rsi + 0x11c], r8d
jne 0x1800bb923
mov rcx, qword [rsi + 0x110]
mov r9d, 4
mov dword [rsp + 0x40], r8d
lea r8, [rsp + 0x40]
lea edx, [r9 + 4]
call sym.ntdll.dll_NtAlpcSetInformation
jmp 0x1800bb923
call fcn.180108578
Function at 0x180067700
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1801724e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
and dword [rcx + 0xc], 0
or rdi, 0xffffffffffffffff
and qword [rcx + 0x10], 0
mov rbx, rcx
and qword [rcx + 0x18], 0
mov dword [rcx + 8], edi
mov rax, qword gs:[0x60]
cmp dword [rax + 0xb8], 1
jbe 0x1800bb98c
mov eax, 0x20007d0
mov qword [rcx + 0x20], rax
cmp byte [0x18015ac08], 0
mov qword [rcx + 0x20], rax
setne al
mov qword [rcx], rdi
test al, al
jne 0x1800bb998
mov rax, qword gs:[0x60]
mov edi, 0x7ffe0382
mov rcx, qword [rax + 0x90]
test rcx, rcx
jne 0x1800bb9b1
mov rcx, rdi
cmp byte [rcx], 0
jne 0x1800bb9d6
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18008b0e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
and qword [rcx + 0x20], 0
xor eax, eax
jmp 0x180067750
call fcn.180024408
cmp qword [rbx], rdi
jne 0x180067769
bts qword [rbx + 0x20], 0x18
jmp 0x180067769
cmp dword [rcx], 0
je 0x180067787
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x90]
add rcx, 0x228
jmp 0x18006778a
mov rax, qword gs:[0x60]
test byte [rax + 0x378], 2
je 0x180067793
mov eax, 0x1723
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x26], ax
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x40], rax
call sym.ntdll.dll_RtlGetCurrentServiceSessionId
test eax, eax
je 0x1800bba24
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x90]
add rdi, 0x228
movzx ecx, byte [rdi]
lea r9, [rsp + 0x20]
mov edx, 0x10402
mov r8d, 0x10
call sym.ntdll.dll_NtTraceEvent
nop
jmp 0x180067793
Function at 0x18006b780
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r9
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1800bd7c2
mov rax, qword [rcx + 0x88]
test rax, rax
je 0x1800bd7c2
cmp qword [rax + 0x110], rdx
jne 0x1800bd7c2
test byte [rcx + 0xe4], 1
jne 0x1800bd7c2
mov rcx, qword gs:[0x60]
mov edx, dword [0x18015d050]
movzx r14d, word [r9 + 2]
add edx, 0x80000
mov r8d, r14d
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov qword [rbx + 0xd0], rax
test rax, rax
je 0x18006b85b
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call sym.ntdll.dll_RtlCopyMemory
mov qword [rbx + 0xd8], rdi
mov rax, qword [rbx + 0x88]
lock inc dword [rax + 0x118]
or dword [rbx + 0xe4], 1
bts esi, 0x12
mov dword [rbx + 0xe0], esi
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 0xc0000017
jmp 0x18006b840
call fcn.180108578
Function at 0x180071914
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x10]
mov rdi, rcx
test r8, r8
jne 0x180071945
mov rcx, qword [0x18015c288]
mov r8, rdi
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp sym.ntdll.dll_RtlFreeHeap
mov rcx, qword [0x18015c288]
xor edx, edx
mov rbx, qword [r8]
call sym.ntdll.dll_RtlFreeHeap
mov r8, rbx
test rbx, rbx
je 0x18007192a
jmp 0x180071945

Function at 0x180072114
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword gs:[0x30]
lea rcx, [0x18015d118]
mov rax, qword gs:[0x60]
mov rbp, qword [rax + 0x30]
call sym.ntdll.dll_RtlAcquireSRWLockShared
lea rdi, [rbx + 0x58]
mov rbx, qword [rdi]
test rbx, rbx
je 0x180072161
lock dec dword [0x18015c1c0]
and qword [rdi], 0
lea rcx, [0x18015d118]
call sym.ntdll.dll_RtlReleaseSRWLockShared
test rbx, rbx
je 0x1800721af
cmp rbx, rdi
je 0x1800721af
lea rdi, [rbx - 0x10]
cmp dword [rdi], 0
jbe 0x1800721a2
mov esi, dword [rdi]
mov r8, qword [rbx]
test r8, r8
je 0x180072198
mov r8, qword [r8 - 8]
xor edx, edx
mov rcx, rbp
call sym.ntdll.dll_RtlFreeHeap
add rbx, 8
sub rsi, 1
jne 0x180072182
mov r8, rdi
xor edx, edx
mov rcx, rbp
call sym.ntdll.dll_RtlFreeHeap
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x1800721c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x30]
xor edi, edi
xor esi, esi
mov r14, qword [rax + 0x48]
mov rax, qword gs:[0x60]
mov rbx, r14
shr rbx, 2
and ebx, 0xf
shl rbx, 4
mov r15, qword [rax + 0x30]
lea rax, [0x18015d120]
add rbx, rax
lea rcx, [rbx + 8]
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
mov rax, qword [rbx]
test rax, rax
je 0x18007223b
mov rcx, qword [rax + 8]
cmp qword [rax], r14
je 0x180072262
mov rsi, rax
mov rax, rcx
test rcx, rcx
jne 0x180072227
lea rcx, [rbx + 8]
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
test rdi, rdi
jne 0x180072277
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
test rsi, rsi
je 0x180072292
mov qword [rsi + 8], rcx
mov qword [rax + 8], rdi
mov rdi, rax
mov rax, rsi
jmp 0x180072230
mov rbx, qword [rdi + 8]
mov r8, rdi
xor edx, edx
mov rcx, r15
call sym.ntdll.dll_RtlFreeHeap
mov rdi, rbx
test rbx, rbx
je 0x180072249
jmp 0x180072277
mov qword [rbx], rcx
jmp 0x18007226b
Function at 0x1800721c8
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword gs:[0x30]
lea rcx, [0x18015d118]
mov rax, qword gs:[0x60]
mov rbp, qword [rax + 0x30]
call sym.ntdll.dll_RtlAcquireSRWLockShared
lea rdi, [rbx + 0x58]
mov rbx, qword [rdi]
test rbx, rbx
je 0x180072161
lock dec dword [0x18015c1c0]
and qword [rdi], 0
lea rcx, [0x18015d118]
call sym.ntdll.dll_RtlReleaseSRWLockShared
test rbx, rbx
je 0x1800721af
cmp rbx, rdi
je 0x1800721af
lea rdi, [rbx - 0x10]
cmp dword [rdi], 0
jbe 0x1800721a2
mov esi, dword [rdi]
mov r8, qword [rbx]
test r8, r8
je 0x180072198
mov r8, qword [r8 - 8]
xor edx, edx
mov rcx, rbp
call sym.ntdll.dll_RtlFreeHeap
add rbx, 8
sub rsi, 1
jne 0x180072182
mov r8, rdi
xor edx, edx
mov rcx, rbp
call sym.ntdll.dll_RtlFreeHeap
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x1800721c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x30]
xor edi, edi
xor esi, esi
mov r14, qword [rax + 0x48]
mov rax, qword gs:[0x60]
mov rbx, r14
shr rbx, 2
and ebx, 0xf
shl rbx, 4
mov r15, qword [rax + 0x30]
lea rax, [0x18015d120]
add rbx, rax
lea rcx, [rbx + 8]
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
mov rax, qword [rbx]
test rax, rax
je 0x18007223b
mov rcx, qword [rax + 8]
cmp qword [rax], r14
je 0x180072262
mov rsi, rax
mov rax, rcx
test rcx, rcx
jne 0x180072227
lea rcx, [rbx + 8]
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
test rdi, rdi
jne 0x180072277
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
test rsi, rsi
je 0x180072292
mov qword [rsi + 8], rcx
mov qword [rax + 8], rdi
mov rdi, rax
mov rax, rsi
jmp 0x180072230
mov rbx, qword [rdi + 8]
mov r8, rdi
xor edx, edx
mov rcx, r15
call sym.ntdll.dll_RtlFreeHeap
mov rdi, rbx
test rbx, rbx
je 0x180072249
jmp 0x180072277
mov qword [rbx], rcx
jmp 0x18007226b
Function at 0x180072588
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800bed17
test bl, 0xf
jne 0x1800bed17
mov al, byte [rdx + 0xf]
test al, 0x3f
je 0x1800bed17
test al, al
jns 0x1800725f8
cmp byte [rcx + 0x182], 2
jne 0x1800becca
mov rcx, qword [rcx + 0x178]
test rcx, rcx
je 0x1800bed17
cmp al, 4
je 0x1800bed17
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rcx + 0x7c], 0
je 0x180072622
mov eax, dword [rdx + 8]
mov edx, dword [rcx + 0x88]
xor edx, eax
mov ecx, edx
mov eax, edx
shr ecx, 0x10
shr eax, 8
xor cl, al
xor cl, dl
shr edx, 0x18
cmp dl, cl
jne 0x1800bed17
cmp byte [rbx + 0xf], 4
je 0x1800becd1
mov al, byte [rbx + 0xe]
test al, al
jne 0x1800bece4
mov rcx, rdi
test rcx, rcx
je 0x1800bed17
cmp qword [rcx + 0x28], rdi
jne 0x1800bed17
cmp rbx, qword [rcx + 0x40]
jb 0x1800bed17
cmp rbx, qword [rcx + 0x48]
jae 0x1800bed17
cmp dword [rdi + 0x7c], 0
je 0x1800726b2
mov eax, dword [rbx + 8]
test dword [rdi + 0x7c], eax
je 0x180072675
xor eax, dword [rdi + 0x88]
shr eax, 0x10
test al, 4
jne 0x1800bed04
cmp byte [rbx + 0xf], 4
je 0x1800725e6
lea rcx, [rdi + 0x120]
mov rax, qword [rcx]
cmp rax, rcx
je 0x1800bed17
cmp rbx, qword [rax + 0x28]
jb 0x1800726ad
cmp rbx, qword [rax + 0x30]
jb 0x1800725e6
mov rax, qword [rax]
jmp 0x180072694
mov al, byte [rbx + 0xa]
jmp 0x180072678
xor ecx, ecx
jmp 0x1800725d5
mov rax, rbx
and eax, 0xfff
cmp rax, 0x30
jne 0x1800bed17
jmp 0x180072661
movzx eax, al
mov rcx, rbx
shl rax, 0x10
and rcx, 0xffffffffffff0000
sub rcx, rax
add rcx, 0x10000
jmp 0x18007263a
mov rdx, rbx
mov rcx, rdi
call fcn.1800eee04
test al, al
jne 0x180072680
mov rax, qword gs:[0x60]
cmp qword [rax + 0x18], 0
je 0x1800bed4a
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x1800bed56
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
lea r9, [rbx + 0x10]
mov r8, rdi
mov rdx, rsi
lea rcx, str.Invalid_address_specified_to__s___p___p___n
call sym.ntdll.dll_DbgPrint
call fcn.18010109c
xor al, al
jmp 0x1800725e8