joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002b063
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800572b0]
jne 0x18002638a
rol rcx, 0x10
test cx, 0xffff
jne 0x180026386
repz ret
ror rcx, 0x10
jmp 0x18002afbc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18005c550]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18005c648]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002b041
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18005c550]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18002b063
mov rax, qword [rsp + 0x88]
mov qword [0x18005c648], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18005c5e8], rax
mov rax, qword [0x18005c648]
mov qword [0x18005c4c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18005c5d0], rax
mov dword [0x18005c4b0], 0xc0000409
mov dword [0x18005c4b4], 1
mov rax, qword [0x1800572b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800572b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18005c548], eax
mov ecx, 1
call fcn.180034d90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180045a18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18005c548], 0
jne 0x18002b0ea
mov ecx, 1
call fcn.180034d90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180035bb8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18002b110
xor ebx, ebx
mov rdi, rax
cmp qword [0x18005d238], rbx
jne 0x180035cbe
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180035d93
lea rdx, [0x180046c58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180035d93
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x180046c48]
mov rcx, rsi
mov qword [0x18005d238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x180046c30]
mov rcx, rsi
mov qword [0x18005d240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18005d248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18005d258], rax
test rax, rax
je 0x180035cb5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18005d250], rax
jmp 0x180035cc5
mov rax, qword [0x18005d250]
jmp 0x180035ccc
mov rax, qword [0x18005d250]
mov r11, qword [0x18005d258]
cmp rax, rdi
je 0x180035d34
cmp r11, rdi
je 0x180035d34
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18005d258]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180035d34
test rax, rax
je 0x180035d34
call rsi
test rax, rax
je 0x180035d2e
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180035d2e
test byte [rsp + 0x38], 1
jne 0x180035d34
bts ebp, 0x15
jmp 0x180035d72
mov rcx, qword [0x18005d240]
cmp rcx, rdi
je 0x180035d72
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180035d72
call rax
mov rbx, rax
test rax, rax
je 0x180035d72
mov rcx, qword [0x18005d248]
cmp rcx, rdi
je 0x180035d72
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180035d72
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18005d238]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180035d93
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180035d95
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001fc0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x14000204c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001fff
mov eax, 1
jmp 0x14000206e
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000204a
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x14000206e
jmp 0x140002069
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140002069
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000206e
mov eax, 1
add rsp, 0x48
ret

Function at 0x140002b20
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140002b2e
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x140002b60
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.140001fc0
jmp 0x140002be3
movzx eax, byte [0x14003fc70]
test eax, eax
jne 0x140002ba5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140002b9e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fc68], rax
mov byte [0x14003fc70], 1
cmp qword [0x14003fc68], 0
je 0x140002bd0
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x14003fc68]
jmp 0x140002be3
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x140002bf0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x140002bfe
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x140002eb0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140002ec3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x140002f00
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140002f18
cmp qword [rsp + 0x60], 0
je 0x140002f30
mov dword [rsp + 0x30], 1
jmp 0x140002f38
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140002f4e
mov eax, 0xd
jmp 0x140002f8e
xor eax, eax
test eax, eax
jne 0x140002f1e
mov rcx, qword [rsp + 0x60]
call fcn.140017888
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x140002fa0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140002fb3
cmp qword [rsp + 0x70], 0
je 0x140002fcb
mov dword [rsp + 0x38], 1
jmp 0x140002fd3
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140002fe9
mov eax, 0xd
jmp 0x140003068
xor eax, eax
test eax, eax
jne 0x140002fb9
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140017888
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x140003001
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x140003070
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140002a30
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call fcn.140002de0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400030f5
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call fcn.140002a70
mov eax, dword [rsp + 0x48]
jmp 0x1400031b3
mov dword [rsp + 0x44], pe_nt_image_headers64
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140003182
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140003070
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140003175
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x58]
call fcn.140002a70
mov eax, dword [rsp + 0x4c]
jmp 0x1400031b3
mov dword [rsp + 0x44], pe_nt_image_headers64
jmp 0x1400030fd
lea rcx, [rsp + 0x58]
call fcn.140002c20
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.140002b20
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.140002a70
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140010eb0
add rsp, 0x298
ret
Function at 0x140011dd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011e22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011e22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011e22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011e22
cmp dword [rcx + 0x84], 0xe
jbe 0x140011e22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011e24
xor al, al
add rsp, 0x28
ret

Function at 0x14001b9ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b79c
Function at 0x14001fba8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001fc2f
mov rsi, rbx
cmp word [rax], bp
je 0x14001fbee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001fbd8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001fbd4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001ca50
mov rdi, rax
test rax, rax
je 0x14001fc1c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140012d10
mov rbp, rdi
xor ecx, ecx
call fcn.14001ca14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x11784
Capabilities:
Attach user process memory
Find process by pid

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 r13
push r14
sub rsp, 0x100
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0xf0], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x20], 0
mov bpl, cl
lea r8, [rsp + 0x20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x20], 0x203a
jbe 0x117e7
xor al, al
jmp 0x11962
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov edi, dword [rsp + 0x24]
mov eax, dword [rsp + 0x28]
and eax, 0xf
shl edi, 4
or edi, eax
call fcn.000339dc
mov r14, rax
test rax, rax
je 0x117e0
test bpl, bpl
je 0x11856
lea rcx, [0x0003a720]
call fcn.00030630
test rax, rax
je 0x117e0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x117e0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and dword [0x0004ec54], 0
xor esi, esi
cmp dword [0x0004cf9c], esi
jle 0x11945
lea rbx, [0x0004d970]
cmp dword [rbx], 0
je 0x11896
movzx ecx, byte [rbx]
movzx eax, byte [rbx + 1]
test ecx, ecx
je 0x1188a
cmp edi, ecx
jb 0x11933
test eax, eax
je 0x11896
cmp edi, eax
ja 0x11933
mov edx, dword [rbx - 0x20]
mov r12, qword [rbx - 0x18]
mov r13, qword [rbx - 0x10]
mov r9b, 1
mov rcx, r14
mov r8b, r9b
call fcn.00033b7c
test rax, rax
je 0x118d9
mov r8, r12
mov rdx, r13
mov rcx, rax
call fcn.0002b488
test al, al
je 0x118d9
mov rax, qword [rbx - 8]
or qword [0x0004ec58], rax
inc dword [0x0004ec54]
jmp 0x11933
xor edx, edx
lea rcx, [rsp + 0x81]
mov byte [rsp + 0x80], 0
lea r8d, [rdx + 0x63]
call fcn.0003a1a0
mov r9d, dword [rbx - 0x20]
lea r8, [0x0003a740]
lea rcx, [rsp + 0x80]
mov edx, 0x64
call fcn.0001110c
call fcn.0003a0b0
lea r9, [rsp + 0x80]
mov r8d, eax
xor edx, edx
mov ecx, 0x8000100a
call fcn.00034e5c
inc dword [0x0004ec44]
inc esi
add rbx, 0x28
cmp esi, dword [0x0004cf9c]
jl 0x11872
test bpl, bpl
je 0x11960
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.00039b80
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x15a4c
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx], 1
mov rdi, rcx
mov byte [rcx + 0x403], 0
mov byte [rcx + 0x203], 0
jne 0x15ba5
mov al, byte [rcx + 0x204]
cmp al, 0x31
je 0x15a90
cmp al, 0x32
je 0x15a90
cmp al, 0x30
jne 0x15bef
lea r8, [0x0003a800]
lea rdx, [0x0003a820]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x0003a8a0]
lea rdx, [0x0003a8d0]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
mov dl, byte [rdi + 0x204]
cmp dl, 0x31
jne 0x15b53
call fcn.0001df20
mov rbx, rax
test rax, rax
je 0x15b49
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x15b49
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r10, qword [rsp + 0x38]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
lea r8, [0x0003a800]
repne scasw ax, word [rdi]
lea rdx, [0x0003a820]
mov r9d, 1
not rcx
lea eax, [rcx + rcx]
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
cmp qword [rbx + 8], 0
mov edi, eax
je 0x15b3a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, rbx
call fcn.00035504
mov eax, edi
jmp 0x15bf4
mov eax, 0xc0000001
jmp 0x15bf4
cmp dl, 0x32
jne 0x15ba1
and qword [rsp + 0x50], 0
lea rdx, [0x0003a8d0]
lea rcx, [rsp + 0x50]
mov r8d, 0xf003f
call fcn.000262a8
mov edi, eax
test eax, eax
js 0x15b42
mov rcx, qword [rsp + 0x50]
lea rdx, [0x0003a8a0]
mov r8d, 1
call fcn.0002632c
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x15b42
xor eax, eax
jmp 0x15bf4
cmp dword [rcx], 2
jne 0x15bef
xor ebx, ebx
lea rsi, str.StartOskLauncher
mov rdx, qword [rsi]
lea rcx, [rdi + 4]
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
je 0x15bd6
inc ebx
add rsi, 8
cmp ebx, 0xa
jb 0x15bb3
mov eax, 0xc0000022
jmp 0x15bf4
lea r8, [rdi + 0x204]
lea rdx, [rdi + 4]
lea rcx, [0x0003a8d0]
call fcn.0001de20
jmp 0x15bf4
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x17da4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r15d, dword [rcx]
mov rbx, qword [rcx + 4]
xor r12d, r12d
mov rdi, rcx
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x28], rbx
cmp r15d, r12d
je 0x17f5f
mov dword [rcx], r12d
lea ebp, [r12 + 5]
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov r13d, 0xc0000004
cmp eax, r13d
jne 0x17f5f
mov edx, dword [rsp + 0x20]
mov ecx, 1
call fcn.0003548c
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp rax, r12
je 0x17f5f
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, r13d
jne 0x17e64
mov rcx, rsi
call fcn.00035504
jmp 0x17e21
cmp eax, r12d
jge 0x17e71
mov rcx, rsi
jmp 0x17f5a
mov rbp, rsi
lea r14, [rdi + 0xc]
mov esi, r12d
cmp qword [rbp + 0x40], r12
je 0x17f3f
mov rdx, qword [rbp + 0x50]
mov rcx, rbx
call fcn.000329e4
cmp al, r12b
je 0x17f3f
mov rcx, qword [rbp + 0x50]
call fcn.00025f0c
mov r13, rax
cmp rax, r12
je 0x17f3f
movsxd rbx, esi
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
imul rcx, rcx, 0x210
lea r12, [rcx + rdi + 0x14]
mov rcx, r12
call fcn.0003a1a0
mov rcx, r13
mov r11d, 0x104
imul rbx, rbx, 0x210
sub rcx, rbx
sub rcx, rdi
xor edx, edx
lea rax, [r11 + 0x7ffffefa]
cmp rax, rdx
je 0x17f0f
movzx eax, word [rcx + r12 - 0x14]
cmp ax, dx
je 0x17f0f
mov word [r12], ax
add r12, 2
sub r11, 1
jne 0x17ee9
cmp r11, rdx
jne 0x17f18
sub r12, 2
mov word [r12], dx
mov rax, qword [rbp + 0x50]
mov rcx, r13
mov qword [r14], rax
inc dword [rdi]
add r14, 0x210
inc esi
call fcn.00035504
mov rbx, qword [rsp + 0x28]
xor r12d, r12d
cmp dword [rdi], r15d
jae 0x17f55
cmp dword [rbp], r12d
je 0x17f55
mov eax, dword [rbp]
add rbp, rax
jmp 0x17e7b
mov rcx, qword [rsp + 0x30]
call fcn.00035504
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.00039b80
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x17fe0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x0004c448]
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x18069
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.0003a1a0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
xor ecx, ecx
cmp eax, ecx
je 0x1803e
mov dword [0x0004c448], ecx
mov al, cl
jmp 0x18069
cmp dword [rsp + 0x24], 6
jb 0x18034
mov eax, 1
mov dword [0x0004c448], eax
jne 0x18069
cmp dword [rsp + 0x28], ecx
jne 0x18069
cmp word [rsp + 0x134], ax
cmovb eax, ecx
mov dword [0x0004c448], eax
movzx eax, al
mov dword [rbx], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.00039b80
add rsp, 0x150
pop rbx
ret
Function at 0x18090
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x180c4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessCreateTimeQuadPart]
mov rcx, qword [rsp + 0x30]
mov qword [rbx + 4], rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x18e70
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov qword [rsp + 0x30], rbx
cmp rcx, qword [0x0004ed80]
jne 0x18e8e
mov al, 1
jmp 0x18eea
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x18ea1
xor al, al
jmp 0x18eea
mov rcx, qword [rsp + 0x30]
call fcn.00039bee
mov rdi, rax
cmp rax, rbx
je 0x18edd
lea rdx, [0x0003a960]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
je 0x18edb
lea rdx, [0x0003a930]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
jne 0x18edd
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x193b4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, edx
mov rdi, rcx
lea rdx, [0x0003abf0]
lea rcx, [rsp + 0x60]
mov r8d, 0xf003f
call fcn.000262a8
test eax, eax
js 0x19421
lea rdx, [0x0003ac40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret