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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x10
mov rax, qword [r9]
cmp rax, r9
je 0x14017d77e
test rbx, rbx
je 0x14017d7a8
nop
cmp qword [rax + 0x30], rbx
je 0x14017d7a8
mov rax, qword [rax]
cmp rax, r9
jne 0x14017d770
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
test rax, rax
je 0x14017d77e
movzx ecx, word [rax + 0x48]
xor ebp, ebp
test cx, cx
jne 0x14017d7c2
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x14017d80a
mov rdx, qword [0x1402ca978]
mov rdi, rcx
add rcx, 0x12
mov qword [rsp + 0x40], rsi
mov rsi, qword [rax + 0x50]
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], bp
test rsi, rsi
je 0x14017d805
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020a640
mov rsi, qword [rsp + 0x40]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
je 0x14017d798
mov rcx, rbx
call sym.SystemInformer.exe_PhGetFileName
mov rdi, rax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14017d852
call fcn.140141ca0
test r14, r14
je 0x14017d874
mov edx, 0x5c
xor r8d, r8d
mov rcx, rdi
call sym.SystemInformer.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
lea ecx, [rax + 1]
cmove ecx, ebp
mov dword [r14], ecx
mov rbx, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14017d8a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push r15
sub rsp, 0x38
mov rax, qword gs:[0x30]
mov qword [rsp + 0x28], r13
mov r13, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x1402bff40], 0x3e
jb 0x14017d96e
nop dword [rax + rax]
test r13, r13
je 0x14017d96e
mov rax, qword [r13]
xor ebx, ebx
mov r8d, ebx
test rax, rax
je 0x14017d934
mov r9, qword [r13 + 8]
shr rax, 1
lea r10, [r9 + rax*2]
cmp r9, r10
je 0x14017d934
nop word [rax + rax]
movzx edx, word [r9]
lea eax, [rdx - 0x61]
cmp ax, 0x19
lea ecx, [rdx - 0x20]
cmova ecx, edx
imul r8d, r8d, 0x1003f
add r9, 2
add r8d, ecx
cmp r9, r10
jne 0x14017d910
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
mov r15, qword [rax]
cmp r15, rax
je 0x14017d966
cmp dword [r15 + 0x108], r8d
je 0x14017da84
mov r15, qword [r15]
cmp r15, rax
jne 0x14017d951
mov r15, rbx
jmp 0x14017da84
mov rax, qword gs:[0x30]
xor ebx, ebx
mov qword [rsp + 0x30], r12
mov r15d, ebx
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
mov qword [rsp + 0x50], rax
mov r12, qword [rax]
cmp r12, rax
je 0x14017da7f
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], r14
movzx eax, word ds:[r12 + 0x58]
mov rbx, qword [r12 + 0x60]
test r13, r13
je 0x14017da66
mov rsi, qword [r13]
cmp rax, rsi
jb 0x14017dac9
mov r14, qword [r13 + 8]
mov rcx, rsi
shr rcx, 4
test rcx, rcx
je 0x14017da1a
nop word [rax + rax]
movdqu xmm1, xmmword [r14]
movdqu xmm0, xmmword [rbx]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x14017dab7
add rbx, 0x10
add r14, 0x10
sub rcx, 1
jne 0x14017d9f0
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x14017da66
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx ebp, word [r14 + rbx]
cmp cx, bp
je 0x14017da57
nop dword [rax]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, bp
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x14017dac9
add rbx, 2
sub rsi, 1
jne 0x14017da30
mov r15, r12
mov rbp, qword [rsp + 0x58]
xor ebx, ebx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x30]
mov r13, qword [rsp + 0x28]
test r15, r15
je 0x14017da92
mov rbx, qword [r15 + 0x30]
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rax, rbx
add rsp, 0x38
pop r15
pop rbx
ret
and esi, 0xf
shl rcx, 4
add rsi, rcx
shr rsi, 1
jmp 0x14017da20
mov r12, qword [r12]
cmp r12, qword [rsp + 0x50]
jne 0x14017d9b2
jmp 0x14017da69
Function at 0x14017dae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
mov eax, 0x5a4d
movzx r10d, r8w
mov r11, rdx
cmp word [rcx], ax
jne 0x14017db41
mov r9d, dword ds:[rcx + 0x3c]
lea eax, [r9 - 1]
cmp eax, 0x7ffffffd
ja 0x14017db41
cmp dword [r9 + rcx], 0x4550
jne 0x14017db41
lea rdx, ds:[rcx + 0x88]
add rdx, r9
mov eax, dword [rdx]
test eax, eax
je 0x14017db41
cmp dword [rdx + 4], 0
je 0x14017db41
lea r8, [rcx + rax]
mov word [rsp + 0x20], r10w
mov r9, r11
call fcn.14017dc40
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x14017db60
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x10000
jae 0x14017cdb4
movzx r8d, dx
xor edx, edx
jmp 0x14017db60
xor r8d, r8d
jmp 0x14017db60
mov qword ss:[rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, rcx
mov r9, rcx
and rax, 0xfffffffffffffff1
movzx ebx, r8w
mov rdi, rdx
xorps xmm1, xmm1
and ecx, 0xf
je 0x14017dba2
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
je 0x14017db9e
mov eax, ecx
shr rax, 1
jmp 0x14017dbe3
add rax, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
jne 0x14017dbd5
nop dword [rax]
nop word [rax + rax]
add rax, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
je 0x14017dbc0
sub rax, r9
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
add rax, rax
mov qword [rsp + 0x28], r9
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14017d8a0
test rax, rax
jne 0x14017dc0a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14017dae0
Function at 0x14017e620
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 0x14017e659
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 0x14017e811
cmp dword [rcx + rbp], 0x4550
mov eax, ecx
jne 0x14017e811
mov ecx, dword [rcx + rbp + 0x90]
test ecx, ecx
je 0x14017e7fd
cmp dword [rax + rbp + 0x94], 0
je 0x14017e7fd
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 0x14017e7e1
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov eax, dword [rsi - 0xc]
test eax, eax
je 0x14017e7d4
mov ecx, dword [rsi]
lea rdi, [rax + rbp]
mov ebx, dword [rsi + 4]
add rcx, rbp
mov rdx, r13
add rbx, rbp
call fcn.1401f1ba4
test eax, eax
jne 0x14017e7c7
mov rax, qword ds:[rdi]
test rax, rax
je 0x14017e7c7
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 0x14017e757
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 0x14017e753
inc rax
test ecx, ecx
jne 0x14017e740
test edx, edx
je 0x14017e76a
mov rax, qword [rdi + rbx + 8]
add rbx, 8
mov rcx, rax
test rax, rax
jne 0x14017e723
jmp 0x14017e7c7
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 0x14017e7c7
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 0x14017e6d0
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 0x140180720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1402bf040]
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 0x1401807a0
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 0x1401807a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov rbx, rax
cmp edi, 0xffffffff
je 0x1401807b2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
jmp 0x1401807b5
mov rax, rbx
mov rdx, rax
mov rcx, rbp
call fcn.140180460
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140180e20
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov r8, qword [0x1402cabd0]
mov rsi, rcx
test r8, r8
je 0x140180e49
mov rbx, qword [0x1402cabc8]
nop
test rbx, rbx
jne 0x140180f27
call fcn.140180c60
mov rdi, rax
test rax, rax
je 0x140180fc3
mov qword [rsp + 0x50], rbp
mov ebp, 0x5a4d
cmp word [rax], bp
jne 0x140180eb4
mov ecx, dword [rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140180eb4
cmp dword [rcx + rdi], 0x4550
jne 0x140180eb4
lea rdx, [rdi + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140180eb4
cmp dword [rdx + 4], 0
je 0x140180eb4
xor ebx, ebx
lea r8, [rdi + rax]
lea r9, str.PowerGetActiveScheme
mov word [rsp + 0x20], bx
mov rcx, rdi
call fcn.14017dc40
mov r8, rax
jmp 0x140180eb9
xor ebx, ebx
mov r8d, ebx
cmp word [rdi], bp
mov rcx, rdi
mov rbp, qword [rsp + 0x50]
mov eax, 0x3c
mov qword [0x1402cabd0], r8
jne 0x140180f20
mov ecx, dword [rcx + rax]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140180f20
cmp dword [rcx + rdi], 0x4550
jne 0x140180f20
lea rdx, [rdi + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140180f20
cmp dword [rdx + 4], 0
je 0x140180f20
lea r8, [rdi + rax]
mov word [rsp + 0x20], bx
lea r9, str.PowerReadSecurityDescriptor
mov rcx, rdi
call fcn.14017dc40
mov r8, qword [0x1402cabd0]
mov rbx, rax
mov qword [0x1402cabc8], rbx
test r8, r8
je 0x140180fb6
test rbx, rbx
je 0x140180fb6
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov rax, r8
call qword [case.0x14013d64a.0]
test eax, eax
je 0x140180f5b
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 [0x1402cabc8]
mov ecx, 0xe
call qword [case.0x14013d64a.0]
mov ebx, eax
test eax, eax
jne 0x140180f9d
nop dword [rax]
test rsi, rsi
je 0x140180f92
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 0x140180fe0
Capabilities:
Parse pe header

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov r8, qword [0x1402cabd0]
xor edi, edi
mov rsi, rcx
test r8, r8
je 0x140181015
mov rax, qword [0x1402cabe0]
test rax, rax
jne 0x1401810fc
call fcn.140180c60
mov rbx, rax
test rax, rax
je 0x140181191
mov qword [rsp + 0x40], rbp
mov ebp, 0x5a4d
cmp word [rax], bp
jne 0x14018108a
mov ecx, dword ds:[rax + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14018108a
cmp dword [rcx + rbx], 0x4550
jne 0x14018108a
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14018108a
cmp dword [rdx + 4], edi
je 0x14018108a
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerGetActiveScheme
mov rcx, rbx
call fcn.14017dc40
mov r8, rax
jmp 0x14018108d
mov r8, rdi
cmp word [rbx], bp
mov rcx, rbx
mov rbp, qword [rsp + 0x40]
mov eax, 0x3c
mov qword [0x1402cabd0], r8
jne 0x1401810f2
mov ecx, dword [rbx + rax]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401810f2
cmp dword [rcx + rbx], 0x4550
jne 0x1401810f2
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401810f2
cmp dword [rdx + 4], edi
je 0x1401810f2
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.PowerWriteSecurityDescriptor
mov rcx, rbx
call fcn.14017dc40
mov r8, qword [0x1402cabd0]
jmp 0x1401810f5
mov rax, rdi
mov qword [0x1402cabe0], rax
nop dword [rax]
test r8, r8
je 0x14018117c
test rax, rax
je 0x14018117c
lea rdx, [rsp + 0x48]
xor ecx, ecx
mov rax, r8
call qword [case.0x14013d64a.0]
test eax, eax
je 0x140181134
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 0x14018113d
mov rdi, qword [rsi + 8]
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rax, qword [0x1402cabe0]
mov ecx, 0xe
call qword [case.0x14013d64a.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 0x1401838e0
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 0x14018393e
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 0x1401871c0
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 [0x1402ca918]
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 0x140187349
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 [0x1402ca918]
mov rcx, rbp
call sym.SystemInformer.exe_PhCreateObject
cmp dword [0x1402bff40], 0xffffffff
mov rdi, rax
mov ecx, dword [0x1402cdaf8]
jae 0x14018725d
cmp ecx, 0x40
jae 0x14018725d
lfence
mov rax, qword gs:[0x30]
mov rbx, qword [rax + rcx*8 + 0x1480]
jmp 0x140187269
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
je 0x140187321
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x140187285
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x140187321
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x1401872bd
mov rcx, qword [0x1402caad0]
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 0x140187311
add eax, eax
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
test rcx, rcx
jne 0x1401872f7
mov rcx, qword [0x1402caad0]
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140187307
mov r8, rcx
mov rcx, qword [0x1402caad0]
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.14020a280
add rsi, 8
sub r14, 1
jne 0x140187220
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 0x140189760
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 0x1401897a6
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.1401892c0
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 0x140189927
mov ecx, dword [rdx]
sub ecx, 7
cmp ecx, 1
jbe 0x140189922
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x140189872
mov rsi, qword [rdx + 8]
mov edx, 4
movzx ecx, byte [rsi + 1]
lea rdi, [rcx*4 + 8]
mov rcx, qword [0x1402caad0]
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14020a640
mov rdx, qword [rsp + 0x80]
mov qword [r12], rbx
test r14, r14
je 0x140189901
movsxd rax, dword ds:[rdx + 0x10]
test eax, eax
js 0x1401898f1
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 0x1401898ad
nop
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [r14], rax
jmp 0x1401898f9
mov rdx, qword [0x1402ca978]
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 0x1401898ec
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020a640
mov qword [r14], rbx
jmp 0x1401898f9
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 0x140189927
mov eax, dword [rdx]
mov dword [r15], eax
jmp 0x140189927
mov ebp, 0xc0000073
mov rcx, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rcx, rcx
je 0x140189944
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140189952
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 0x140189dc0
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 [0x1402c6668], 1
mov rsi, rcx
mov dword [rsp + 0x60], ebx
jne 0x140189f05
lock bts qword [0x1402c6668], 0x1f
setb al
test al, al
je 0x140189e19
test byte [0x1402c6668], 1
jne 0x140189f05
xor edx, edx
lea rcx, [0x1402c6668]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x140189f05
lea r8, str.sechost.dll
xorps xmm1, xmm1
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
and ecx, 0xf
je 0x140189e4f
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x140189e4b
mov edx, ecx
shr rdx, 1
jmp 0x140189e83
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x140189e75
nop
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x140189e60
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.14017d8a0
mov rcx, rax
test rax, rax
je 0x140189ef2
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140189ef2
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140189ef2
cmp dword [rdx + rcx], 0x4550
jne 0x140189ef2
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140189ef2
cmp dword [rdx + 4], ebx
je 0x140189ef2
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.LsaLookupUserAccountType
call fcn.14017dc40
mov rbx, rax
lea rcx, [0x1402c6668]
mov qword [0x1402cea88], rbx
call sym.SystemInformer.exe_PhfSetEvent
mov rax, qword [0x1402cea88]
test rax, rax
jne 0x140189f26
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.0x14013d64a.0]
test eax, eax
js 0x140189f3e
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