joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140169800
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x140169836
movzx eax, word [rdx]
mov word [rsp + 0x30], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
jbe 0x14016983e
mov eax, 0xc0000106
add rsp, 0x48
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
add rsp, 0x48
ret

Function at 0x140169870
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x1401698a6
movzx eax, word [rdx]
mov word [rsp + 0x20], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x22], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
jbe 0x1401698ae
mov eax, 0xc0000106
add rsp, 0x38
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
add rsp, 0x38
ret

Function at 0x1401698c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov dword [rsp + 0x30], 0x100
mov r14d, edx
mov rbp, rcx
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov r8d, 0x100
mov r15, r9
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x1401699ff
nop
cmp ebx, 0x80000005
je 0x140169950
cmp ebx, 0xc0000023
jne 0x1401699a8
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r14d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
test ebx, ebx
js 0x140169a01
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013d84a.0]
test al, al
je 0x140169a01
lfence
lea rax, [rsp + 0x30]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x30]
mov r8d, r14d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x140169940
xor ebx, ebx
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140169a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov dword [rsp + 0x30], 0x100
mov r14d, edx
mov rbp, rcx
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov r8d, 0x100
mov r15, r9
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140169b7f
nop
cmp ebx, 0x80000005
je 0x140169ad0
cmp ebx, 0xc0000023
jne 0x140169b28
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r14d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
test ebx, ebx
js 0x140169b81
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013d84a.0]
test al, al
je 0x140169b81
lfence
lea rax, [rsp + 0x30]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x30]
mov r8d, r14d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x140169ac0
xor ebx, ebx
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14016d4e0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rcx
mov rbx, rdx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 0x18
mov r8d, 8
lea rdx, [rsp + 0x38]
mov ecx, 0xe6
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
js 0x14016d557
mov edx, dword [rsp + 0x30]
xor eax, eax
shr edx, 2
test edx, edx
je 0x14016d552
lea rcx, [rsp + 0x40]
test dword [rcx], 0x80000
jne 0x14016d56b
inc eax
add rcx, 4
cmp eax, edx
jb 0x14016d540
mov eax, 0xc0000225
mov rcx, qword ds:[rsp + 0x58]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x60
pop rbx
ret
movzx eax, word ds:[rsp + rax*4 + 0x40]
mov word [rbx], ax
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x60
pop rbx
ret

Function at 0x14016dac0
Capabilities:
Get uefi variable

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [0x14023a418]
mov dword [rsp + 0x38], 0x40002
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x30]
xor eax, eax
lea rdx, [rsp + 0x48]
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000100
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x68
ret
Function at 0x14016db40
Capabilities:
Get uefi variable

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov dword [rsp + 0x30], eax
mov rsi, r9
mov dword [rsp + 0x34], eax
mov r14, r8
movzx eax, word [rcx]
mov word [rsp + 0x38], ax
add ax, 2
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
movzx eax, word [rdx]
mov word [rsp + 0x48], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x4a], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x50], rax
jbe 0x14016dbba
mov eax, 0x80000005
lfence
jmp 0x14016dccb
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
jns 0x14016dbd6
lfence
jmp 0x14016dccb
lea rax, [rsp + 0x34]
xor r8d, r8d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000023
je 0x14016dc09
mov eax, 0xc0000001
jmp 0x14016dccb
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402caaf0]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rbp
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword ds:[rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.14020ab40
lea rax, [rsp + 0x34]
mov r8, rbx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
mov ebp, eax
test eax, eax
js 0x14016dca4
test r14, r14
je 0x14016dc77
mov qword [r14], rbx
jmp 0x14016dc8c
lfence
mov rcx, qword [0x1402caaf0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x14016dc97
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
test rdi, rdi
je 0x14016dcb9
mov eax, dword [rsp + 0x34]
mov dword [rdi], eax
jmp 0x14016dcb9
lfence
mov rcx, qword [0x1402caaf0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x90]
mov eax, ebp
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret

Function at 0x14016dde0
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov dword [rsp + 0x40], 0x1000
mov esi, ecx
mov r8d, 0x1000
mov rcx, qword [0x1402caaf0]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r8, [rsp + 0x40]
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtEnumerateSystemEnvironmentValuesEx]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14016de3d
cmp eax, 0xc0000004
jne 0x14016de56
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x40]
jmp 0x14016de08
test ebx, ebx
js 0x14016de5f
mov qword [r14], rdi
jmp 0x14016de73
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14016e400
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 8], ecx
push rsi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov r15, rdx
test ecx, ecx
je 0x14016e469
sub ecx, 3
je 0x14016e45a
nop dword [rax]
sub ecx, 1
je 0x14016e44b
cmp ecx, 0xfffb
je 0x14016e43c
mov eax, 0xc0000003
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov eax, dword [0x1402c5de4]
lea rsi, [0x1402c5de4]
jmp 0x14016e476
mov eax, dword [0x1402c5de0]
lea rsi, [0x1402c5de0]
jmp 0x14016e476
mov eax, dword [0x1402c5ddc]
lea rsi, [0x1402c5ddc]
jmp 0x14016e476
mov eax, dword [0x1402c5dd8]
lea rsi, [0x1402c5dd8]
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov qword [rsp + 0x68], rbx
mov r8d, eax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x78], r8d
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [rsp + 0x78]
lea rdx, [rsp + 0x60]
mov rbp, rax
mov r8d, 4
lea rax, [rsp + 0x78]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor ebx, ebx
mov edi, eax
cmp eax, 0xc0000004
jne 0x14016e53f
cmp ebx, 8
jae 0x14016e544
mov rcx, qword [0x1402caaf0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x78]
mov edx, 4
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rbp, rax
mov ecx, 0x6b
lea rax, [rsp + 0x78]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc ebx
mov edi, eax
cmp eax, 0xc0000004
je 0x14016e4d8
nop
test edi, edi
jns 0x14016e55b
lfence
mov rcx, qword [0x1402caaf0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14016e571
lfence
mov eax, dword [rsp + 0x78]
cmp eax, 0x100000
ja 0x14016e56b
mov dword [rsi], eax
mov qword [r15], rbp
mov dword [r14], eax
mov rbp, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x14016e5a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r13
sub rsp, 0x48
mov eax, dword [0x1402c5de4]
mov edx, 4
mov rcx, qword [0x1402caaf0]
mov r8d, eax
mov dword [rsp + 0x78], 0xffff
mov dword [rsp + 0x70], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword ds:[rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rbx, rax
mov r8d, 4
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor r13d, r13d
mov esi, eax
mov edi, r13d
cmp eax, 0xc0000004
jne 0x14016e67f
cmp edi, 8
jae 0x14016e684
mov rcx, qword [0x1402caaf0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x70]
mov edx, 4
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rbx, rax
mov ecx, 0x6b
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc edi
mov esi, eax
cmp eax, 0xc0000004
je 0x14016e615
nop
test esi, esi
jns 0x14016e6a5
lfence
mov rcx, qword [0x1402caaf0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
mov eax, dword ds:[rsp + 0x70]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
cmp eax, 0x100000
ja 0x14016e6cd
mov dword [0x1402c5de4], eax
lfence
lea r14, [rbx + rax]
mov ebp, r13d
mov r11d, r13d
mov r9d, r13d
mov edi, r13d
mov r12, rbx
cmp rbx, r14
jae 0x14016e79b
mov qword [rsp + 0x30], r15
mov r15d, dword [0x1402bf00c]
mov ecx, dword [rbx]
test ecx, ecx
je 0x14016e713
nop
sub ecx, 1
je 0x14016e70e
cmp ecx, 2
jne 0x14016e787
inc edi
jmp 0x14016e787
inc r11d
jmp 0x14016e787
movzx eax, word [rbx + 0x1e]
inc ebp
cmp r13w, ax
jae 0x14016e787
mov r10d, r15d
lea rdx, [rbx + 0x20]
and r10d, 4
mov r8d, eax
nop dword [rax]
mov rax, qword [rdx]
test r10d, r10d
je 0x14016e73f
popcnt rax, rax
jmp 0x14016e77a
mov rcx, rax
shr rcx, 1
and ecx, 0x55555555
sub rax, rcx
mov rcx, rax
and eax, 0x33333333
shr rcx, 2
and ecx, 0x33333333
add rcx, rax
mov rax, rcx
shr rax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
add r9d, eax
add rdx, 0x10
sub r8, 1
jne 0x14016e730
mov ecx, dword [rbx + 4]
add rbx, rcx
cmp rbx, r14
jb 0x14016e6f8
mov r15, qword [rsp + 0x30]
mov rcx, qword [0x1402caaf0]
mov r8, r12
xor edx, edx
mov dword [0x1402cd5a0], ebp
mov dword [0x1402cd5a4], r11d
mov dword [0x1402cd5a8], r9d
mov dword [0x1402cd5ac], edi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x38]
mov eax, esi
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x80]
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x14016e860
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov eax, dword [0x1402c5de0]
mov r14, rdx
movzx ebp, cx
mov r8d, eax
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov rdi, rax
mov ecx, 0x6b
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
mov r8d, 4
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor esi, esi
mov ebx, eax
cmp eax, 0xc0000004
jne 0x14016e947
nop word [rax + rax]
cmp esi, 8
jae 0x14016e947
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x60]
mov edx, 4
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rdi, rax
mov ecx, 0x6b
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc esi
mov ebx, eax
cmp eax, 0xc0000004
je 0x14016e8e0
test ebx, ebx
jns 0x14016e950
lfence
jmp 0x14016e987
mov eax, dword [rsp + 0x60]
cmp eax, 0x100000
ja 0x14016e961
mov dword [0x1402c5de0], eax
lfence
cmp bp, word [rdi + 0xa]
jae 0x14016e982
lea rax, [rbp*2]
add rax, rbp
add rax, rax
mov rax, qword [rdi + rax*8 + 0x48]
mov qword [r14], rax
jmp 0x14016e987
mov ebx, 0xc0000001
mov rcx, qword [0x1402caaf0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14016ef40
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor r14d, r14d
lea r8, [r11 - 0x28]
mov rbp, rdx
mov qword [r11 - 0x70], r14
mov edx, 0x1a
mov qword [r11 - 0x78], r14
mov r9d, 8
mov qword [r11 - 0x68], r14
mov qword [r11 - 0x60], r14
mov rdi, rcx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14016f13f
cmp qword [rsp + 0xa0], r14
lea rax, [0x1402c5e48]
mov qword [rsp + 0xe0], rbx
lea rbx, [0x1402c5f88]
mov qword [rsp + 0xe8], rsi
setne sil
test sil, sil
cmove rbx, rax
lfence
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, str.RtlExitUserThread
mov rdx, rbx
mov rcx, rdi
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
test eax, eax
js 0x14016f12f
lfence
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, str.RtlFlushHeaps
mov rdx, rbx
mov rcx, rdi
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
test eax, eax
js 0x14016f12f
cmp dword [0x1402bff40], 0x3e
jb 0x14016f050
lfence
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14016dea0
mov ebx, eax
test eax, eax
js 0x14016f11e
lfence
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8d, 1
mov rax, qword [rsp + 0x58]
mov rcx, rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.140142780
mov rdi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x14016f110
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, rdi
test sil, sil
je 0x14016f0b4
call qword [sym.imp.ntdll.dll_RtlQueueApcWow64Thread]
jmp 0x14016f0ba
call qword [sym.imp.ntdll.dll_NtQueueApcThread]
mov ebx, eax
test eax, eax
js 0x14016f110
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov ebx, eax
test eax, eax
js 0x14016f110
mov r8, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
js 0x14016f110
mov r9d, 0x30
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x70]
test rdi, rdi
je 0x14016f11e
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14016f12d
call fcn.14016dfa0
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0xb0
pop r14
pop rdi
pop rbp
ret
Function at 0x140170c00
Capabilities:
Parse pe header

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
test byte [0x1402c61c0], 1
jne 0x140170d7c
lock bts qword [0x1402c61c0], 0x1f
setb al
test al, al
je 0x140170c4a
test byte [0x1402c61c0], 1
jne 0x140170d7c
xor edx, edx
lea rcx, [0x1402c61c0]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x140170d7c
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x30]
lea rbx, [0x14023ec90]
mov qword [rsp + 0x30], 0x12
mov qword [rsp + 0x38], rbx
call fcn.14017e120
mov rcx, rax
test rax, rax
jne 0x140170cd5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140170cd5
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140170cd5
cmp dword [0x1402bff40], 0x3e
jae 0x140170d6b
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140170d6b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140170d6b
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140170d6b
cmp dword [rdx + rcx], 0x4550
jne 0x140170d6b
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140170d6b
cmp dword [rdx + 4], edi
je 0x140170d6b
lea r8, [rcx + rax]
mov word [rsp + 0x20], di
lea r9, str.NtQueryInformationEnlistment
call fcn.14017e4c0
mov r9, rax
test rax, rax
je 0x140170d6b
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402cdfe0], rax
xor rax, r9
mov qword [0x1402cdfc0], rax
lea rcx, [0x1402c61c0]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x50]
mov rax, qword [0x1402cdfc0]
test rax, rax
je 0x140170d9d
mov rcx, qword [0x1402cdfe0]
test rcx, rcx
je 0x140170d9d
xor rax, rcx
add rsp, 0x40
pop rdi
ret
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140170dc0
Capabilities:
Parse pe header

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
test byte [0x1402c6210], 1
jne 0x140170f3c
lock bts qword [0x1402c6210], 0x1f
setb al
test al, al
je 0x140170e0a
test byte [0x1402c6210], 1
jne 0x140170f3c
xor edx, edx
lea rcx, [0x1402c6210]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x140170f3c
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x30]
lea rbx, [0x14023ec90]
mov qword [rsp + 0x30], 0x12
mov qword [rsp + 0x38], rbx
call fcn.14017e120
mov rcx, rax
test rax, rax
jne 0x140170e95
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140170e95
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140170e95
cmp dword [0x1402bff40], 0x3e
jae 0x140170f2b
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140170f2b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140170f2b
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140170f2b
cmp dword [rdx + rcx], 0x4550
jne 0x140170f2b
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140170f2b
cmp dword [rdx + 4], edi
je 0x140170f2b
lea r8, [rcx + rax]
mov word [rsp + 0x20], di
lea r9, str.NtQueryInformationResourceManager
call fcn.14017e4c0
mov r9, rax
test rax, rax
je 0x140170f2b
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402ce070], rax
xor rax, r9
mov qword [0x1402ce0f0], rax
lea rcx, [0x1402c6210]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x50]
mov rax, qword [0x1402ce0f0]
test rax, rax
je 0x140170f5d
mov rcx, qword [0x1402ce070]
test rcx, rcx
je 0x140170f5d
xor rax, rcx
add rsp, 0x40
pop rdi
ret
mov rax, rdi
add rsp, 0x40
pop rdi
ret