joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011ea8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor esi, esi
mov r9d, 0xa0
mov dword [rsp + 0x30], r9d
mov rdi, rdx
mov qword [rdx], rsi
test cl, 1
je 0x140011eeb
mov ebx, 0xc0000002
jmp 0x140011f42
lea rax, [rsp + 0x30]
mov edx, 3
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov ebx, eax
test eax, eax
js 0x140011f32
cmp dword [rsp + 0x40], 0x4c
jb 0x140011f2e
mov r9, rdi
mov word [rsp + 0x7e], si
mov r8d, 0x2001f
lea rdx, [rsp + 0x44]
xor ecx, ecx
call fcn.140015f64
mov ebx, eax
test ebx, ebx
jns 0x140011f42
mov rcx, qword [rdi]
test rcx, rcx
je 0x140011f42
call fcn.140015c28
mov qword [rdi], rsi
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14001fbe0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140014110
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov r14, qword [rbp + 0x50]
lea rcx, [rbp - 0x10]
mov rsi, qword [rbp + 0x58]
xor edi, edi
and qword [rbp + 0x40], rdi
mov rbx, r8
and qword [r14], rdi
and dword [rsi], edi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x140014162
lea r9, [rbp + 0x40]
mov rdx, rbx
call fcn.140013f00
mov ebx, eax
test eax, eax
js 0x140014241
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea rdx, [rbp - 0x10]
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14001419f
test eax, eax
js 0x140014241
mov ebx, 0xc0000001
jmp 0x140014241
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp + 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1400141c7
mov ebx, 0xc000009a
jmp 0x140014241
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x10]
mov eax, dword [rbp + 0x48]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x140014241
cmp dword [rdi + 4], 1
je 0x140014201
mov ebx, 0xc0000024
jmp 0x140014241
mov eax, dword [rbp + 0x48]
xor edx, edx
add eax, 0xfffffff4
mov dword [rbp + 0x48], eax
mov rcx, qword gs:[0x60]
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [r14], rax
test rax, rax
je 0x1400141c0
mov r8d, dword [rbp + 0x48]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x48]
xor ebx, ebx
mov dword [rsi], eax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140014250
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x14001426d
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140014280
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
xor r14d, r14d
mov rdx, rcx
mov qword [rbp + 0x38], r14
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], r14
lea edx, [r14 + 1]
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
js 0x14001440e
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x14001434f
cmp qword [rbp - 0x48], r14
je 0x140014320
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140014423
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140014301
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x1400143ee
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
shr rcx, 1
xorps xmm0, xmm0
mov edx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jns 0x14001434f
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400143ea
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x14001440c
test rax, rax
je 0x14001440c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x1400143d3
Function at 0x140015ea4
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
mov rbx, rcx
lea rdx, [rsp + 0x48]
and rbx, 0xfffffffffffffffd
mov rcx, rbx
call fcn.140016218
test eax, eax
js 0x140015f1a
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140015f1a
mov rdi, qword [rsp + 0x48]
mov esi, eax
mov rdx, qword [rdi]
lea r9, [rsp + 0x50]
mov r8d, 0xf003f
mov rcx, rbx
call fcn.140015f64
test eax, eax
js 0x140015f10
mov rcx, qword [rsp + 0x50]
call fcn.140015ea4
test eax, eax
jns 0x140015f10
mov rcx, qword [rsp + 0x50]
call fcn.140015c28
add rdi, 8
sub rsi, 1
jne 0x140015ede
cmp qword [rsp + 0x48], 0
je 0x140015f3c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwDeleteKey]
mov edi, eax
test eax, eax
js 0x140015f54
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400165d4
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rdx
mov r15, rcx
xor edi, edi
mov r14d, edi
and r15, 0xfffffffffffffffd
mov qword [rsp + 0x70], r15
mov rsi, rdi
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x14001664d
test eax, eax
js 0x1400166ed
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x1400166ed
mov r8d, dword [rsp + 0x88]
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x140016679
mov ebx, 0xc000009a
jmp 0x140016641
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, rsi
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
js 0x1400166ed
mov r8d, dword [rsi + 0xc]
add r8, 2
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
je 0x140016672
mov r8d, dword [rsi + 0xc]
lea rdx, [rsi + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rsi + 0xc]
shr rax, 1
mov word [r12 + rax*2], di
mov qword [r13], r12
test rsi, rsi
je 0x14001670a
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x14001673a
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140016754
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and rsi, 0xfffffffffffffffd
lea rdx, str.Description
mov rcx, rsi
mov r8d, 0x2001f
call fcn.140015f64
mov edi, eax
test eax, eax
js 0x1400167ad
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwDeleteValueKey]
mov edi, eax
cmp qword [rsp + 0x50], rsi
je 0x1400167c7
cmp qword [rsp + 0x50], 0
je 0x1400167c7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400167dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12d, r9d
mov r15, r8
mov r13, rdx
mov rsi, rcx
xor r14d, r14d
xor edi, edi
and qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xc0]
and qword [rax], rdi
mov rax, qword [rsp + 0xc8]
and dword [rax], edi
mov rdx, r13
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and rsi, 0xfffffffffffffffd
mov qword [rsp + 0xa0], rsi
test r15, r15
je 0x140016869
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r15
mov rcx, rsi
call fcn.140015f64
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14001686e
jmp 0x14001696a
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0xc0000023
jne 0x14001696a
mov r8d, dword [rsp + 0x34]
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1400168d0
mov ebx, 0xc000009a
jmp 0x140016966
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14001696a
cmp dword [rdi + 4], r12d
je 0x140016912
mov ebx, 0xc0000024
jmp 0x140016966
mov eax, dword [rsp + 0x34]
add eax, 0xfffffff4
mov dword [rsp + 0x34], eax
mov r8d, eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test rax, rax
je 0x1400168c6
mov r8d, dword [rsp + 0x34]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x14001697f
test rcx, rcx
je 0x14001697f
call qword [sym.imp.ntdll.dll_ZwClose]
test rdi, rdi
je 0x14001699c
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x1400169df
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400169f8
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x58
mov r12d, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor esi, esi
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and rbx, 0xfffffffffffffffd
mov qword [rsp + 0x90], rbx
and qword [rsp + 0x38], 0
test r14, r14
je 0x140016a69
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r14
mov rcx, rbx
call fcn.140015f64
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140016a6e
jmp 0x140016aa2
mov qword [rsp + 0x38], rbx
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov edi, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x140016ab6
test rcx, rcx
je 0x140016ab6
call fcn.140015c28
cmp edi, 0xc000017d
jne 0x140016af6
int3
mov eax, edi
add rsp, 0x58
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001718c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, rdx
mov esi, r13d
mov qword [rax + 0x18], r13
mov edi, r13d
mov r15, rcx
call fcn.140017378
cmp eax, 1
je 0x1400171e4
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400171da
lea r14, [0x14002a7f2]
jmp 0x1400171eb
mov ebx, 0xc00000bb
jmp 0x140017351
lea r14, [0x1400304fa]
lea rcx, [rsp + 0x60]
call fcn.140016f54
mov ebx, eax
test eax, eax
js 0x1400172f2
test r15, r15
je 0x14001726f
mov rcx, qword [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14001720d
mov rcx, qword gs:[0x60]
add eax, 2
xor edx, edx
mov ebp, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax*2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14001724b
mov ebx, 0xc000009a
jmp 0x1400172f2
mov r8, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea r8, str.lsvcd
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbp, rax
test rax, rax
jne 0x14001728c
mov ebx, 0xc000000d
jmp 0x1400172f2
test r12, r12
je 0x1400172e1
mov rcx, qword gs:[0x60]
sub rbp, r14
sar rbp, 1
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea eax, [rbp + 1]
lea r8, [rax*2]
mov r13d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rdi, rdi
jne 0x1400172cc
mov ebx, 0xc000009a
xor r13d, r13d
jmp 0x1400172f2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
xor r13d, r13d
test r15, r15
je 0x1400172e9
mov qword [r15], rdi
test r12, r12
je 0x1400172f2
mov qword [r12], rsi
cmp qword [rsp + 0x60], r13
je 0x140017313
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x140017351
test rdi, rdi
je 0x140017334
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x140017351
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140017378
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov al, byte [0x140036729]
test al, al
je 0x14001739f
mov eax, dword [0x140036104]
jmp 0x1400173d8
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x1f]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x1400173c9
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov dword [0x140036104], ebx
mov eax, ebx
mov byte [0x140036729], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001fbe0
add rsp, 0x50
pop rbx
ret
Function at 0x140019bac
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
xor r14d, r14d
mov rdx, rcx
mov qword [rbp + 0x38], r14
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], r14
lea edx, [r14 + 1]
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
js 0x140019d3a
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x140019c7b
cmp qword [rbp - 0x48], r14
je 0x140019c4c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140019d4f
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140019c2d
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x140019d1a
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
shr rcx, 1
xorps xmm0, xmm0
mov edx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
jns 0x140019c7b
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140019d16
call qword [sym.imp.ntdll.dll_ZwClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x140019d38
test rax, rax
je 0x140019d38
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x140019cff
Function at 0x14001ab30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [0x14003672c], 0
jne 0x14001ab96
lea rdx, [rsp + 0x20]
lea rcx, str.ZwFilterBootOption
call fcn.14001a330
test eax, eax
js 0x14001ab8b
xor r9d, r9d
lea rdx, [rsp + 0x28]
lea r8d, [r9 + 0x18]
lea ecx, [r8 + 0x77]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x14001ab8b
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x140036730], rcx
mov eax, 1
xchg dword [0x14003672c], eax
cmp qword [0x140036730], 0
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001fbe0
add rsp, 0x58
ret
Function at 0x14001d6d8
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 r12
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 2]
xor edi, edi
movzx r9d, byte [rcx + 3]
mov r12, rdx
shl r9, 8
mov r15, r8
or r9, rax
mov rbx, rcx
add r9, rcx
mov esi, edi
mov dl, byte [r9]
mov al, dl
and al, 0x7f
cmp al, 0x7f
je 0x14001d813
cmp dl, 4
jne 0x14001d748
cmp byte [r9 + 1], dl
jne 0x14001d748
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x14001d799
add esi, 0xfffffffc
add esi, ecx
movzx eax, byte [r9 + 2]
movzx ecx, byte [r9 + 3]
shl rcx, 8
or rcx, rax
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, 0x7f
cmp al, 0x7f
jne 0x14001d724
test esi, esi
je 0x14001d813
mov rcx, qword gs:[0x60]
add esi, 2
mov r8d, esi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x14001d7a0
mov eax, 0xc000009a
jmp 0x14001d818
mov eax, 0xc0000095
jmp 0x14001d818
movzx edi, byte [rbx + 3]
mov r14, rbp
movzx eax, byte [rbx + 2]
shl rdi, 8
or rdi, rax
add rdi, rbx
jmp 0x14001d7fa
cmp cl, 4
jne 0x14001d7e8
cmp byte [rdi + 1], cl
jne 0x14001d7e8
movzx ecx, byte [rdi + 3]
lea rdx, [rdi + 4]
movzx eax, byte [rdi + 2]
shl rcx, 8
or rcx, rax
sub rcx, 4
mov ebx, ecx
mov r8d, ecx
mov rcx, r14
call sub.msvcrt.dll_memcpy
add r14, rbx
movzx ecx, byte [rdi + 3]
movzx eax, byte [rdi + 2]
shl rcx, 8
or rcx, rax
add rdi, rcx
mov cl, byte [rdi]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x14001d7b7
xor eax, eax
mov qword [r12], rbp
mov word [r14], ax
mov dword [r15], esi
jmp 0x14001d818
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001e934
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14001e9f4
test rdx, rdx
je 0x14001e9f4
xor r9d, r9d
lea rdx, [0x140030780]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x14001e97b
xor ebx, ebx
jmp 0x14001e98a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x140030780]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x14001e9a9
xor ecx, ecx
jmp 0x14001e9b8
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x14001e9e9
test rcx, rcx
je 0x14001e9e9
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x14001e9e3
cmp dword [rcx], eax
jne 0x14001e9e3
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x14001e9e3
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x14001e9e5
xor edi, edi
mov eax, edi
jmp 0x14001e9f6
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret