joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017fb60
Capabilities:
Parse pe header

Disassembly:
push rbp
push r12
push r13
push r14
sub rsp, 0x48
mov eax, 0x5a4d
mov r12, r9
mov r14, r8
mov r13, rdx
mov rbp, rcx
cmp word [rcx], ax
je 0x14017fb99
mov eax, 0xc000012f
lfence
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, dword ds:[rcx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14017fd51
cmp dword [rcx + rbp], 0x4550
mov eax, ecx
jne 0x14017fd51
mov ecx, dword [rcx + rbp + 0x90]
test ecx, ecx
je 0x14017fd3d
cmp dword [rax + rbp + 0x94], 0
je 0x14017fd3d
mov qword [rsp + 0x80], rsi
lea rsi, [rbp + 0xc]
add rsi, rcx
mov qword [rsp + 0x40], r15
mov r15d, 0xc0000001
cmp dword [rsi], 0
je 0x14017fd21
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov eax, dword [rsi - 0xc]
test eax, eax
je 0x14017fd14
mov ecx, dword [rsi]
lea rdi, [rax + rbp]
mov ebx, dword [rsi + 4]
add rcx, rbp
mov rdx, r13
add rbx, rbp
call fcn.1401f33a8
test eax, eax
jne 0x14017fd07
mov rax, qword ds:[rdi]
test rax, rax
je 0x14017fd07
mov qword [rsp + 0x90], 8
sub rdi, rbx
mov dword [rsp + 0x70], 0
mov rcx, rax
mov qword [rsp + 0x30], rbx
test rax, rax
js 0x14017fc97
lea rax, [rbp + 2]
mov r8, r14
add rax, rcx
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14017fc93
inc rax
test ecx, ecx
jne 0x14017fc80
test edx, edx
je 0x14017fcaa
mov rax, qword [rdi + rbx + 8]
add rbx, 8
mov rcx, rax
test rax, rax
jne 0x14017fc63
jmp 0x14017fd07
lea rax, [rsp + 0x70]
mov r9d, 4
lea r8, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov r15d, eax
test eax, eax
js 0x14017fd07
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov qword [rbx], r12
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
add rsi, 0x14
cmp dword [rsi], 0
jne 0x14017fc10
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov eax, r15d
mov r15, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0xc0000020
lfence
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0xc000007b
lfence
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140181c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov qword [rsp + 0x40], r8
mov edi, r9d
mov qword [rsp + 0x38], 4
mov rbp, rcx
lea r9, [rsp + 0x28]
xor ebx, ebx
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbx
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140181d00
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140181d00
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov rbx, rax
cmp edi, 0xffffffff
je 0x140181d12
mov edx, edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
jmp 0x140181d15
mov rax, rbx
mov rdx, rax
mov rcx, rbp
call fcn.1401819c0
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140182380
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov r8, qword [0x1402cbb10]
mov rsi, rcx
test r8, r8
je 0x1401823a9
mov rbx, qword [0x1402cbb08]
nop
test rbx, rbx
jne 0x140182487
call fcn.1401821c0
mov rdi, rax
test rax, rax
je 0x140182523
mov qword [rsp + 0x50], rbp
mov ebp, 0x5a4d
cmp word [rax], bp
jne 0x140182414
mov ecx, dword [rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140182414
cmp dword [rcx + rdi], 0x4550
jne 0x140182414
lea rdx, [rdi + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140182414
cmp dword [rdx + 4], 0
je 0x140182414
xor ebx, ebx
lea r8, [rdi + rax]
lea r9, str.PowerGetActiveScheme
mov word [rsp + 0x20], bx
mov rcx, rdi
call fcn.14017f180
mov r8, rax
jmp 0x140182419
xor ebx, ebx
mov r8d, ebx
cmp word [rdi], bp
mov rcx, rdi
mov rbp, qword [rsp + 0x50]
mov eax, 0x3c
mov qword [0x1402cbb10], r8
jne 0x140182480
mov ecx, dword [rcx + rax]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140182480
cmp dword [rcx + rdi], 0x4550
jne 0x140182480
lea rdx, [rdi + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140182480
cmp dword [rdx + 4], 0
je 0x140182480
lea r8, [rdi + rax]
mov word [rsp + 0x20], bx
lea r9, str.PowerReadSecurityDescriptor
mov rcx, rdi
call fcn.14017f180
mov r8, qword [0x1402cbb10]
mov rbx, rax
mov qword [0x1402cbb08], rbx
test r8, r8
je 0x140182516
test rbx, rbx
je 0x140182516
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov rax, r8
call qword [case.0x14013dbaa.0]
test eax, eax
je 0x1401824bb
mov ecx, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [0x1402cbb08]
mov ecx, 0xe
call qword [case.0x14013dbaa.0]
mov ebx, eax
test eax, eax
jne 0x1401824fd
nop dword [rax]
test rsi, rsi
je 0x1401824f2
mov rcx, qword [rsp + 0x58]
call sym.SystemInformer.exe_PhCreateString
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
mov eax, 0xc000007a
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov eax, 0xc0000135
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140182540
Capabilities:
Parse pe header

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov r8, qword [0x1402cbb10]
xor edi, edi
mov rsi, rcx
test r8, r8
je 0x140182575
mov rax, qword [0x1402cbb20]
test rax, rax
jne 0x14018265c
call fcn.1401821c0
mov rbx, rax
test rax, rax
je 0x1401826f1
mov qword [rsp + 0x40], rbp
mov ebp, 0x5a4d
cmp word [rax], bp
jne 0x1401825ea
mov ecx, dword ds:[rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401825ea
cmp dword [rcx + rbx], 0x4550
jne 0x1401825ea
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401825ea
cmp dword [rdx + 4], edi
je 0x1401825ea
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerGetActiveScheme
mov rcx, rbx
call fcn.14017f180
mov r8, rax
jmp 0x1401825ed
mov r8, rdi
cmp word [rbx], bp
mov rcx, rbx
mov rbp, qword [rsp + 0x40]
mov eax, 0x3c
mov qword [0x1402cbb10], r8
jne 0x140182652
mov ecx, dword [rbx + rax]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140182652
cmp dword [rcx + rbx], 0x4550
jne 0x140182652
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140182652
cmp dword [rdx + 4], edi
je 0x140182652
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerWriteSecurityDescriptor
mov rcx, rbx
call fcn.14017f180
mov r8, qword [0x1402cbb10]
jmp 0x140182655
mov rax, rdi
mov qword [0x1402cbb20], rax
nop dword [rax]
test r8, r8
je 0x1401826dc
test rax, rax
je 0x1401826dc
lea rdx, [rsp + 0x48]
xor ecx, ecx
mov rax, r8
call qword [case.0x14013dbaa.0]
test eax, eax
je 0x140182694
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
test rsi, rsi
je 0x14018269d
mov rdi, qword [rsi + 8]
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rax, qword [0x1402cbb20]
mov ecx, 0xe
call qword [case.0x14013dbaa.0]
mov rcx, qword ds:[rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
mov eax, 0xc000007a
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov eax, 0xc0000135
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140184e00
Capabilities:
Map section object

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov dword [rsp + 0x48], 2
lea rax, [r11 + 0x20]
mov rbx, rdx
mov qword [r11 + 0x20], 1
xor edx, edx
lea r8, [r11 + 0x18]
mov dword [rsp + 0x40], edx
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x38], rdx
mov qword [r11 + 0x18], rdx
mov rdx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x140184e5e
lfence
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rsp + 0x70]
mov r8, rbx
mov rcx, 0xffffffffffffffff
call sym.SystemInformer.exe_PhGetProcessMappedFileName
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1401886c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov ebx, edx
mov r12, rcx
mov r14d, edx
mov rdx, qword [0x1402cb868]
mov edi, r8d
lea rcx, [rbx*8]
call sym.SystemInformer.exe_PhCreateObject
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r15, rax
test ebx, ebx
je 0x140188849
mov qword [rsp + 0x40], rbp
mov ebp, edi
mov qword [rsp + 0x48], rsi
mov rsi, rax
shl rbp, 3
nop dword [rax + rax]
mov rdx, qword [0x1402cb868]
mov rcx, rbp
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x1402c0f40], 0xffffffff
mov rdi, rax
mov ecx, dword [0x1402cea48]
jae 0x14018875d
cmp ecx, 0x40
jae 0x14018875d
lfence
mov rax, qword gs:[0x30]
mov rbx, qword [rax + rcx*8 + 0x1480]
jmp 0x140188769
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
je 0x140188821
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x140188785
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x140188821
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x1401887bd
mov rcx, qword [0x1402cba10]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x20c]
cmp dword [rbx + 0x208], eax
jne 0x140188811
add eax, eax
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
test rcx, rcx
jne 0x1401887f7
mov rcx, qword [0x1402cba10]
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140188807
mov r8, rcx
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov qword [rcx + rax*8], rdi
inc dword [rbx + 0x208]
mov r8, rbp
mov qword [rsi], rdi
xor edx, edx
mov rcx, rdi
call fcn.14020ba80
add rsi, 8
sub r14, 1
jne 0x140188720
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov qword [r12], r15
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14018ac60
Capabilities:
Get user security identifier

Disassembly:
push r12
push r14
push r15
sub rsp, 0x60
movzx eax, word [rcx]
mov r15, r9
mov word [rsp + 0x38], ax
mov r14, r8
add ax, 2
mov r12, rdx
cmp qword [rcx], 0xfffe
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
jbe 0x14018aca6
mov eax, 0xc0000106
add rsp, 0x60
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], r13
call fcn.14018a7c0
lea rcx, [rsp + 0x80]
xor r13d, r13d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r13
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rdx, qword ds:[rsp + 0x80]
mov ebp, eax
test eax, eax
js 0x14018ae27
mov ecx, dword [rdx]
sub ecx, 7
cmp ecx, 1
jbe 0x14018ae22
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x14018ad72
mov rsi, qword [rdx + 8]
mov edx, 4
movzx ecx, byte [rsi + 1]
lea rdi, [rcx*4 + 8]
mov rcx, qword [0x1402cba10]
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14020be40
mov rdx, qword [rsp + 0x80]
mov qword [r12], rbx
test r14, r14
je 0x14018ae01
movsxd rax, dword ds:[rdx + 0x10]
test eax, eax
js 0x14018adf1
lea rdx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
lea rax, [rcx + rdx*8]
movzx ecx, word [rcx + rdx*8]
test cx, cx
jne 0x14018adad
nop
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [r14], rax
jmp 0x14018adf9
mov rdx, qword [0x1402cb8c0]
mov rdi, rcx
mov rsi, qword [rax + 8]
add rcx, 0x12
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], r13w
test rsi, rsi
je 0x14018adec
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020be40
mov qword [r14], rbx
jmp 0x14018adf9
call sym.SystemInformer.exe_PhReferenceEmptyString
mov qword [r14], rax
mov rdx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test r15, r15
je 0x14018ae27
mov eax, dword [rdx]
mov dword [r15], eax
jmp 0x14018ae27
mov ebp, 0xc0000073
mov rcx, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rcx, rcx
je 0x14018ae44
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14018ae52
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, ebp
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r12
ret
Function at 0x14018b2c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
test byte [0x1402c75c8], 1
mov rsi, rcx
mov dword [rsp + 0x60], ebx
jne 0x14018b405
lock bts qword [0x1402c75c8], 0x1f
setb al
test al, al
je 0x14018b319
test byte [0x1402c75c8], 1
jne 0x14018b405
xor edx, edx
lea rcx, [0x1402c75c8]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x14018b405
lea r8, str.sechost.dll
xorps xmm1, xmm1
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
and ecx, 0xf
je 0x14018b34f
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x14018b34b
mov edx, ecx
shr rdx, 1
jmp 0x14018b383
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x14018b375
nop
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x14018b360
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea rax, [rdx + rdx]
mov qword [rsp + 0x38], r8
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14017ede0
mov rcx, rax
test rax, rax
je 0x14018b3f2
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14018b3f2
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018b3f2
cmp dword [rdx + rcx], 0x4550
jne 0x14018b3f2
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14018b3f2
cmp dword [rdx + 4], ebx
je 0x14018b3f2
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.LsaLookupUserAccountType
call fcn.14017f180
mov rbx, rax
lea rcx, [0x1402c75c8]
mov qword [0x1402cf9d8], rbx
call sym.SystemInformer.exe_PhfSetEvent
mov rax, qword [0x1402cf9d8]
test rax, rax
jne 0x14018b426
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [case.0x14013dbaa.0]
test eax, eax
js 0x14018b43e
mov ecx, dword [rsp + 0x60]
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14018c900
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call fcn.14018a6e0
mov edx, dword [rbx + 2]
cmp edx, dword [rax + 2]
jne 0x14018ca12
movzx edx, word [rbx + 6]
cmp dx, word [rax + 6]
jne 0x14018ca12
cmp dword ds:[rbx + 8], 1
jne 0x14018ca12
mov eax, dword [rbx + 0xc]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x34], eax
call sym.SystemInformer.exe_PhFormatGuid
mov rbx, rax
test rax, rax
je 0x14018ca12
mov rdx, qword [0x1402cb8c0]
mov qword [rsp + 0x58], rbp
mov rbp, qword [rax + 8]
mov qword [rsp + 0x60], rsi
mov rsi, qword [rax]
and rsi, 0xfffffffffffffffe
mov qword [rsp + 0x68], rdi
sub rsi, 4
lea rcx, [rsi + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rsi
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rsi], ax
add rbp, 2
je 0x14018c9d5
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.14020be40
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
cmp eax, 1
jne 0x14018c9f7
call fcn.140142200
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x40
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x40
pop rbx
ret

Function at 0x14018dd20
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
mov qword [rsp + 0x28], 0
mov rdx, rcx
mov qword [rsp + 0x20], 0x30
mov rcx, 0xffffffffffffffff
lea r9, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018ddad
mov rdx, qword [rsp + 0x38]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14018ddad
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14018ddad
mov r8, qword [rax + rdx + 0xe8]
mov rcx, r8
shr rcx, 0x20
test r8d, r8d
je 0x14018ddad
test ecx, ecx
je 0x14018ddad
mov eax, r8d
add rax, rdx
cmp rbx, rax
jb 0x14018ddad
add ecx, r8d
add rcx, rdx
cmp rbx, rcx
jae 0x14018ddad
mov al, 1
add rsp, 0x60
pop rbx
ret
xor al, al
add rsp, 0x60
pop rbx
ret

Function at 0x14018e020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x1402cf9f0]
test rbx, rbx
je 0x14018e09d
mov qword [rsp + 0x58], rdi
xor edi, edi
nop dword [rax]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], 0x10000
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFlushInstructionCache]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14018e040
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
Function at 0x14018e0c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x14018e0e2
sub rbx, rax
add rbx, 0x10000
mov qword [rsp + 0x80], rsi
cmp rbx, rdi
jae 0x14018e1e9
xor esi, esi
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14018e11b
add rbx, 0x8000000
jmp 0x14018e1da
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018e1e9
cmp dword [rsp + 0x50], 0x10000
mov rcx, qword [rsp + 0x48]
jne 0x14018e1bf
cmp rcx, 0x10000
jb 0x14018e1bf
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], 0x10000
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x14018e201
cmp eax, 0xc0000604
je 0x14018e1e9
add rbx, 0x10000
jmp 0x14018e1da
mov rbx, qword [rsp + 0x30]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14018e1da
mov eax, 0x10000
sub rax, rcx
add rbx, rax
nop word [rax + rax]
cmp rbx, rdi
jb 0x14018e100
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rsp + 0x70]
jmp 0x14018e1eb

Function at 0x14018e220
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14018e349
xor esi, esi
nop dword [rax]
nop dword [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14018e27b
sub rbx, 0x8000000
jmp 0x14018e338
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018e349
cmp dword [rsp + 0x50], 0x10000
jne 0x14018e31c
cmp qword [rsp + 0x48], 0x10000
jb 0x14018e31c
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], 0x10000
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x14018e35d
cmp eax, 0xc0000604
je 0x14018e349
sub rbx, 0x10000
jmp 0x14018e338
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
nop dword [rax + rax]
cmp rbx, rdi
ja 0x14018e260
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140195460
Capabilities:
Get file attributes

Disassembly:
push rsi
sub rsp, 0x80
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov dword [rsp + 0x30], 0x60
mov rdx, rcx
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 5
mov r9d, 0x80
mov r8d, 0x120089
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x1401954b8
lfence
jmp 0x14019555c
mov qword [rsp + 0xa8], rdi
lea r8, [rsp + 0x60]
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x20], 5
mov r9d, 0x18
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x14019550d
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x48], xmm0
cmp qword [rsp + 0x50], 0
jne 0x14019550d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
jmp 0x140195554
mov rdx, rdi
mov qword [rsp + 0xa0], rbx
call fcn.1401dc0f0
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtClose]
test rbx, rbx
je 0x140195547
cmp dword [rbx], 0
jne 0x14019553f
test rsi, rsi
je 0x14019553b
mov qword [rsi], rbx
xor eax, eax
jmp 0x14019554c
mov rcx, rbx
call fcn.1401dbaa0
mov eax, 0xc0000102
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x80
pop rsi
ret