joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ab24
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]
nop dword [rax + rax]
test rbx, rbx
je 0x14001ab7d
lea r9, [rbp + 0x40]
mov rdx, rbx
call fcn.14001a884
mov ebx, eax
test eax, eax
jns 0x14001ab81
jmp 0x14001ac7b
and qword [rbp + 0x40], rdi
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]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14001abc4
test eax, eax
js 0x14001ac7b
mov ebx, 0xc0000001
jmp 0x14001ac7b
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]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001abf5
mov ebx, 0xc000009a
jmp 0x14001ac7b
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001ac7b
cmp dword [rdi + 4], 1
je 0x14001ac35
mov ebx, 0xc0000024
jmp 0x14001ac7b
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]
nop dword [rax + rax]
mov qword [r14], rax
test rax, rax
je 0x14001abeb
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 0x14001ac90
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rdi, rdi
je 0x14001acb3
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001acc8
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
js 0x14001ae96
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x14001adb5
cmp qword [rbp - 0x48], r14
je 0x14001ad80
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x14001aeab
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14001ad5b
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x14001ae70
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]
nop dword [rax + rax]
test eax, eax
jns 0x14001adb5
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001ae6c
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x14001ae94
test rax, rax
je 0x14001ae94
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]
nop dword [rax + rax]
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 0x14001ae4f
Function at 0x14001ca54
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.14001ce14
test eax, eax
js 0x14001caca
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001caca
mov rdi, qword [rsp + 0x48]
mov esi, eax
mov rdx, qword [rdi]
lea r9, [rsp + 0x50]
mov r8d, 0xf003f
mov rcx, rbx
call fcn.14001cb28
test eax, eax
js 0x14001cac0
mov rcx, qword [rsp + 0x50]
call fcn.14001ca54
test eax, eax
jns 0x14001cac0
mov rcx, qword [rsp + 0x50]
call fcn.14001c79c
add rdi, 8
sub rsi, 1
jne 0x14001ca8e
cmp qword [rsp + 0x48], 0
je 0x14001caf2
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]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwDeleteKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x14001cb16
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001d1c8
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]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x14001d247
test eax, eax
js 0x14001d2f9
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x14001d2f9
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]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14001d279
mov ebx, 0xc000009a
jmp 0x14001d23b
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]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
js 0x14001d2f9
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]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x14001d272
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 0x14001d31c
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp ebx, 0xc000017d
jne 0x14001d34c
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001d364
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]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and rsi, 0xfffffffffffffffd
lea rdx, str.Description
mov rcx, rsi
mov r8d, 0x2001f
call fcn.14001cb28
mov edi, eax
test eax, eax
js 0x14001d3c9
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwDeleteValueKey]
nop dword [rax + rax]
mov edi, eax
cmp qword [rsp + 0x50], rsi
je 0x14001d3e9
cmp qword [rsp + 0x50], 0
je 0x14001d3e9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001d3fc
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]
nop dword [rax + rax]
and rsi, 0xfffffffffffffffd
mov qword [rsp + 0xa0], rsi
test r15, r15
je 0x14001d48f
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r15
mov rcx, rsi
call fcn.14001cb28
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14001d494
jmp 0x14001d5ac
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]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0xc0000023
jne 0x14001d5ac
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]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001d502
mov ebx, 0xc000009a
jmp 0x14001d5a8
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]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14001d5ac
cmp dword [rdi + 4], r12d
je 0x14001d54a
mov ebx, 0xc0000024
jmp 0x14001d5a8
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test rax, rax
je 0x14001d4f8
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 0x14001d5c7
test rcx, rcx
je 0x14001d5c7
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
test rdi, rdi
je 0x14001d5ea
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp ebx, 0xc000017d
jne 0x14001d62d
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001d648
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]
nop dword [rax + rax]
and rbx, 0xfffffffffffffffd
mov qword [rsp + 0x90], rbx
and qword [rsp + 0x38], 0
test r14, r14
je 0x14001d6bf
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r14
mov rcx, rbx
call fcn.14001cb28
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14001d6c4
jmp 0x14001d6fe
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]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x14001d712
test rcx, rcx
je 0x14001d712
call fcn.14001c79c
cmp edi, 0xc000017d
jne 0x14001d752
int3
mov eax, edi
add rsp, 0x58
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001de88
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.14001e0a8
cmp eax, 1
je 0x14001dee0
add eax, 0xfffffffe
cmp eax, 1
ja 0x14001ded6
lea r14, [0x14002f052]
jmp 0x14001dee7
mov ebx, 0xc00000bb
jmp 0x14001e083
lea r14, [0x140038dca]
lea rcx, [rsp + 0x60]
call fcn.14001dc24
mov ebx, eax
test eax, eax
js 0x14001e012
test r15, r15
je 0x14001df7d
mov rcx, qword [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14001df09
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]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001df4d
mov ebx, 0xc000009a
jmp 0x14001e012
mov r8, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea r8, str.lsv
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14001dfa0
mov ebx, 0xc000000d
jmp 0x14001e012
test r12, r12
je 0x14001e001
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]
nop dword [rax + rax]
mov rsi, rax
test rdi, rdi
jne 0x14001dfe6
mov ebx, 0xc000009a
xor r13d, r13d
jmp 0x14001e012
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
xor r13d, r13d
test r15, r15
je 0x14001e009
mov qword [r15], rdi
test r12, r12
je 0x14001e012
mov qword [r12], rsi
cmp qword [rsp + 0x60], r13
je 0x14001e039
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]
nop dword [rax + rax]
test ebx, ebx
jns 0x14001e083
test rdi, rdi
je 0x14001e060
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rsi, rsi
je 0x14001e083
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
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 0x14001e0a8
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov al, byte [0x14003f829]
test al, al
je 0x14001e0cf
mov eax, dword [0x14003f148]
jmp 0x14001e10e
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]
nop dword [rax + rax]
test eax, eax
js 0x14001e0ff
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov dword [0x14003f148], ebx
mov eax, ebx
mov byte [0x14003f829], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026f10
add rsp, 0x50
pop rbx
ret
Function at 0x140021178
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
js 0x140021346
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x140021265
cmp qword [rbp - 0x48], r14
je 0x140021230
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x14002135b
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14002120b
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x140021320
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]
nop dword [rax + rax]
test eax, eax
jns 0x140021265
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14002131c
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x140021344
test rax, rax
je 0x140021344
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]
nop dword [rax + rax]
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 0x1400212ff
Function at 0x140021368
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x6a]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400213c7
mov eax, 0xc0000017
jmp 0x1400214c0
and qword [rsp + 0x20], 0
lea r8, str.DeviceHarddisk_luPartition_lu
mov r9d, ebx
mov edx, 0x35
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rbp
call fcn.140020d80
mov ebx, eax
test eax, eax
jns 0x140021442
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.140021664
mov ebx, eax
test eax, eax
js 0x140021479
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.140020d80
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x48]
mov ebx, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test ebx, ebx
js 0x140021479
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x14002145c
mov dword [rdi + 4], 1
mov eax, dword [rax + 8]
mov dword [rdi + 8], eax
jmp 0x140021475
cmp dword [rax], 1
jne 0x140021470
and dword [rdi + 4], 0
movups xmm0, xmmword [rax + 8]
movdqu xmmword [rdi + 8], xmm0
jmp 0x140021475
mov ebx, 0xc000000d
test ebx, ebx
jns 0x1400214a0
mov r8, qword [rsi]
test r8, r8
je 0x1400214a0
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rsi], 0
mov rcx, qword gs:[0x60]
mov r8, rbp
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140021b0c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [0x14003f82c], 0
jne 0x140021b78
lea rdx, [rsp + 0x20]
lea rcx, [0x140038278]
call fcn.14001e4d4
test eax, eax
js 0x140021b6d
xor r9d, r9d
lea rdx, [rsp + 0x28]
lea r8d, [r9 + 0x18]
lea ecx, [r8 + 0x77]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140021b6d
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x14003f830], rcx
mov eax, 1
xchg dword [0x14003f82c], eax
cmp qword [0x14003f830], 0
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026f10
add rsp, 0x58
ret
Function at 0x1400248dc
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 0x140024a2e
cmp dl, 4
jne 0x140024964
cmp byte [r9 + 1], dl
jne 0x140024964
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x14002494c
lea edx, [rcx - 4]
jmp 0x14002494f
or edx, 0xffffffff
cmp ecx, 4
sbb eax, eax
and eax, 0xc0000095
cmp ecx, 4
jb 0x140024a33
add esi, edx
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 0x140024928
test esi, esi
je 0x140024a2e
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]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400249bb
mov eax, 0xc000009a
jmp 0x140024a33
movzx edi, byte [rbx + 3]
mov r14, rbp
movzx eax, byte [rbx + 2]
shl rdi, 8
or rdi, rax
add rdi, rbx
jmp 0x140024a15
cmp cl, 4
jne 0x140024a03
cmp byte [rdi + 1], cl
jne 0x140024a03
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 0x1400249d2
xor eax, eax
mov qword [r12], rbp
mov word [r14], ax
mov dword [r15], esi
jmp 0x140024a33
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 0x140025c68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x140039050]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x140025c96
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadResource]