joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ce30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14004aaac]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14001ce8c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001ce6c
mov dword [0x14004aaac], 1
jmp 0x14001ce9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001ce86
mov dword [0x14004aaac], 2
jmp 0x14001cf09
mov eax, dword [0x14004aaac]
cmp eax, 1
jne 0x14001cf00
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001ceda
cmp word [rdi], bp
mov rax, rdi
je 0x14001ceb9
add rax, 2
cmp word [rax], bp
jne 0x14001cea7
add rax, 2
cmp word [rax], bp
jne 0x14001cea7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14001e090
test rax, rax
mov rbx, rax
jne 0x14001cee1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001cffb
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14001b0a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14001cffb
cmp eax, 2
je 0x14001cf09
test eax, eax
jne 0x14001ceda
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14001ceda
cmp byte [rax], bpl
mov rbx, rax
je 0x14001cf58
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001ceda
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14001cf20
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14001e100
test rax, rax
mov r12, rax
jne 0x14001cf7d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001cffb
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14001cfe5
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001d00e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14001cf90
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140019770
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001cff6
Function at 0x14001df47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140045040]
jne 0x140018f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140018f66
repz ret
ror rcx, 0x10
jmp 0x14001dea0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004ab60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14004ac58]
mov qword [rsp + 0x58], rax
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 0x14001df25
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, [0x14004ab60]
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 0x14001df47
mov rax, qword [rsp + 0x88]
mov qword [0x14004ac58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004abf8], rax
mov rax, qword [0x14004ac58]
mov qword [0x14004aad0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004abe0], rax
mov dword [0x14004aac0], 0xc0000409
mov dword [0x14004aac4], 1
mov rax, qword [0x140045040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140045048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004ab58], eax
mov ecx, 1
call fcn.140027ce0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140038f18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004ab58], 0
jne 0x14001dfce
mov ecx, 1
call fcn.140027ce0
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 0x14001e370
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14004b048]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14001d6c0
test rax, rax
je 0x14001e3c4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14001e459
mov ecx, 2
call fcn.140027ce0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140019990
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001e445
test ebx, ebx
jne 0x14001e445
lea ecx, [rax + 2]
call fcn.140027ce0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400268d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001d5d0
xor ebx, ebx
cmp qword [0x14004b3b0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400269fc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140026b0f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140026b0f
mov rcx, rax
call fcn.14001d500
lea rdx, [0x140039038]
mov rcx, rsi
mov qword [0x14004b3b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d500
lea rdx, [0x140039020]
mov rcx, rsi
mov qword [0x14004b3b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d500
lea rcx, [rsp + 0x98]
mov qword [0x14004b3c0], rax
call fcn.14001a760
test eax, eax
je 0x1400269af
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14001e2d0
cmp dword [rsp + 0x98], 2
jne 0x1400269fc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d500
test rax, rax
mov qword [0x14004b3d0], rax
je 0x1400269fc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d500
mov qword [0x14004b3c8], rax
mov rcx, qword [0x14004b3c8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140026aa8
cmp qword [0x14004b3d0], rbp
je 0x140026aa8
call fcn.14001d6c0
mov rcx, qword [0x14004b3d0]
mov rsi, rax
call fcn.14001d6c0
test rsi, rsi
mov r12, rax
je 0x140026aa8
test rax, rax
je 0x140026aa8
call rsi
test rax, rax
je 0x140026a73
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140026a73
test byte [rsp + 0x40], 1
jne 0x140026aa8
lea rcx, [rsp + 0x30]
call fcn.14001a7b0
test eax, eax
je 0x140026a95
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14001e2d0
cmp dword [rsp + 0x30], 4
jb 0x140026aa2
bts edi, 0x15
jmp 0x140026ae6
bts edi, 0x12
jmp 0x140026ae6
mov rcx, qword [0x14004b3b8]
cmp rcx, rbp
je 0x140026ae6
call fcn.14001d6c0
test rax, rax
je 0x140026ae6
call rax
test rax, rax
mov rbx, rax
je 0x140026ae6
mov rcx, qword [0x14004b3c0]
cmp rcx, rbp
je 0x140026ae6
call fcn.14001d6c0
test rax, rax
je 0x140026ae6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004b3b0]
call fcn.14001d6c0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140026b0f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140026b11
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ffc0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140030007
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018f50
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14002a4e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018f50
add rsp, 0x38
ret
Function at 0x140032640
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140019990
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140019990
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400326d3
cmp dword [rsp + 0x24], 5
jb 0x1400326ed
jmp 0x1400326e9
cmp dword [rsp + 0x30], esi
jne 0x1400326ed
cmp dword [rsp + 0x24], 4
ja 0x1400326e9
jne 0x1400326ed
cmp dword [rsp + 0x28], 0
jbe 0x1400326ed
mov byte [rbx + 0x18], sil
lea rax, [0x14003a4e0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140032500
movzx ecx, byte [0x14004b6e0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14004b6e0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140018f50
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x117cc
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 [0x00046100]
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 0x1182f
xor al, al
jmp 0x119aa
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.00034b08
mov r14, rax
test rax, rax
je 0x11828
test bpl, bpl
je 0x1189e
lea rcx, [0x0003b900]
call fcn.000315c0
test rax, rax
je 0x11828
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x11828
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and dword [0x0004e35c], 0
xor esi, esi
cmp dword [0x0004c98c], esi
jle 0x1198d
lea rbx, [0x0004d4c0]
cmp dword [rbx], 0
je 0x118de
movzx ecx, byte [rbx]
movzx eax, byte [rbx + 1]
test ecx, ecx
je 0x118d2
cmp edi, ecx
jb 0x1197b
test eax, eax
je 0x118de
cmp edi, eax
ja 0x1197b
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.00034ca8
test rax, rax
je 0x11921
mov r8, r12
mov rdx, r13
mov rcx, rax
call fcn.0002bf9c
test al, al
je 0x11921
mov rax, qword [rbx - 8]
or qword [0x0004e360], rax
inc dword [0x0004e35c]
jmp 0x1197b
xor edx, edx
lea rcx, [rsp + 0x81]
mov byte [rsp + 0x80], 0
lea r8d, [rdx + 0x63]
call fcn.0003b2d0
mov r9d, dword [rbx - 0x20]
lea r8, [0x0003b920]
lea rcx, [rsp + 0x80]
mov edx, 0x64
call fcn.0001110c
call fcn.0003b1e0
lea r9, [rsp + 0x80]
mov r8d, eax
xor edx, edx
mov ecx, 0x8000100a
call fcn.00035fd0
inc dword [0x0004e344]
inc esi
add rbx, 0x28
cmp esi, dword [0x0004c98c]
jl 0x118ba
test bpl, bpl
je 0x119a8
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.0003acb0
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 0x15a6c
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 0x15bc5
mov al, byte [rcx + 0x204]
cmp al, 0x31
je 0x15ab0
cmp al, 0x32
je 0x15ab0
cmp al, 0x30
jne 0x15c0f
lea r8, [0x0003b9e0]
lea rdx, [0x0003ba00]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x0003ba80]
lea rdx, [0x0003bab0]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
mov dl, byte [rdi + 0x204]
cmp dl, 0x31
jne 0x15b73
call fcn.0001e67c
mov rbx, rax
test rax, rax
je 0x15b69
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x15b69
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, [0x0003b9e0]
repne scasw ax, word [rdi]
lea rdx, [0x0003ba00]
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 0x15b5a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, rbx
call fcn.00036630
mov eax, edi
jmp 0x15c14
mov eax, 0xc0000001
jmp 0x15c14
cmp dl, 0x32
jne 0x15bc1
and qword [rsp + 0x50], 0
lea rdx, [0x0003bab0]
lea rcx, [rsp + 0x50]
mov r8d, 0xf003f
call fcn.00026d58
mov edi, eax
test eax, eax
js 0x15b62
mov rcx, qword [rsp + 0x50]
lea rdx, [0x0003ba80]
mov r8d, 1
call fcn.00026ddc
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x15b62
xor eax, eax
jmp 0x15c14
cmp dword [rcx], 2
jne 0x15c0f
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 0x15bf6
inc ebx
add rsi, 8
cmp ebx, 0xa
jb 0x15bd3
mov eax, 0xc0000022
jmp 0x15c14
lea r8, [rdi + 0x204]
lea rdx, [rdi + 4]
lea rcx, [0x0003bab0]
call fcn.0001e57c
jmp 0x15c14
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 0x17e40
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 [0x00046100]
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 0x17ffb
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 0x17ffb
mov edx, dword [rsp + 0x20]
mov ecx, 1
call fcn.000365b8
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp rax, r12
je 0x17ffb
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 0x17f00
mov rcx, rsi
call fcn.00036630
jmp 0x17ebd
cmp eax, r12d
jge 0x17f0d
mov rcx, rsi
jmp 0x17ff6
mov rbp, rsi
lea r14, [rdi + 0xc]
mov esi, r12d
cmp qword [rbp + 0x40], r12
je 0x17fdb
mov rdx, qword [rbp + 0x50]
mov rcx, rbx
call fcn.00033974
cmp al, r12b
je 0x17fdb
mov rcx, qword [rbp + 0x50]
call fcn.000269bc
mov r13, rax
cmp rax, r12
je 0x17fdb
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.0003b2d0
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 0x17fab
movzx eax, word [rcx + r12 - 0x14]
cmp ax, dx
je 0x17fab
mov word [r12], ax
add r12, 2
sub r11, 1
jne 0x17f85
cmp r11, rdx
jne 0x17fb4
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.00036630
mov rbx, qword [rsp + 0x28]
xor r12d, r12d
cmp dword [rdi], r15d
jae 0x17ff1
cmp dword [rbp], r12d
je 0x17ff1
mov eax, dword [rbp]
add rbp, rax
jmp 0x17f17
mov rcx, qword [rsp + 0x30]
call fcn.00036630
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.0003acb0
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 0x1807c
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x00046100]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x0004bdc8]
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x18105
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.0003b2d0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
xor ecx, ecx
cmp eax, ecx
je 0x180da
mov dword [0x0004bdc8], ecx
mov al, cl
jmp 0x18105
cmp dword [rsp + 0x24], 6
jb 0x180d0
mov eax, 1
mov dword [0x0004bdc8], eax
jne 0x18105
cmp dword [rsp + 0x28], ecx
jne 0x18105
cmp word [rsp + 0x134], ax
cmovb eax, ecx
mov dword [0x0004bdc8], eax
movzx eax, al
mov dword [rbx], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.0003acb0
add rsp, 0x150
pop rbx
ret
Function at 0x1812c
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 0x18160
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 0x19314
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 [0x0004e488]
jne 0x19332
mov al, 1
jmp 0x1938e
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x19345
xor al, al
jmp 0x1938e
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rdi, rax
cmp rax, rbx
je 0x19381
lea rdx, [0x0003bb40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
je 0x1937f
lea rdx, [0x0003bb10]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
jne 0x19381
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 0x19848
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, edx
mov rdi, rcx
lea rdx, [0x0003be00]
lea rcx, [rsp + 0x60]
mov r8d, 0xf003f
call fcn.00026d58
test eax, eax
js 0x198b5
lea rdx, [0x0003be50]
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
Function at 0x1ac28
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
call fcn.0002b6b0
test al, al
je 0x1ac4c
mov al, 1
jmp 0x1ae2a
lea rcx, [0x0003bec0]
call fcn.00031df0
test al, al
je 0x1ac63
xor al, al
jmp 0x1ae2a
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.00031cec
test al, al
je 0x1ac85
lea rcx, [0x0003bba0]
call fcn.00031df0
test al, al
jne 0x1ac5c
lea rcx, [0x0003bd60]
call fcn.00031df0
test al, al
jne 0x1ac5c
lea rcx, [0x0003bf00]
call fcn.00031df0
test al, al
jne 0x1ac5c
lea rcx, [0x0003bf50]
call fcn.00031df0
test al, al
jne 0x1ac5c
lea rcx, [0x0003bea0]
call fcn.00036ee4
test rax, rax
jne 0x1acca
xor ebp, ebp
jmp 0x1ad19
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1acc6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessCreateTimeQuadPart]
movabs rbx, 0xfffff78000000014
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
sub rbx, rdi
movabs rax, 0xd6bf94d5e57a42bd
mul rbx
mov rbp, rdx
shr rbp, 0x17
lea rdi, [0x0003b9e0]
lea rdx, [0x0003ca60]
xor ecx, ecx
mov r8, rdi
call fcn.0001e754
mov esi, 5
mov rbx, rax
test rax, rax
jne 0x1ad8d
lea rdx, [0x0003cae0]
mov r8, rdi
xor ecx, ecx
call fcn.0001e754
mov rbx, rax
test rax, rax
jne 0x1ad8d
lea rdx, [0x0003cb80]
mov r8, rdi
mov ecx, esi
call fcn.0001e754
mov rbx, rax
test rax, rax
jne 0x1ad8d
lea rdx, [0x0003cc00]
mov r8, rdi
mov ecx, esi
call fcn.0001e754
mov rbx, rax
test rax, rax
je 0x1ae20
cmp qword [rbx + 8], 0
je 0x1ad9d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, rbx
call fcn.00036630
cmp rbp, rsi
jae 0x1ae20
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.00034750
mov rdi, rax
call fcn.0003b1e0
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov r9, rdi
mov r8d, ebx
mov ecx, 0x101e
mov rdx, rax
call fcn.00035fd0
sub esi, ebp
je 0x1ae20
jmp 0x1ae09
call fcn.0002b6b0
test al, al
jne 0x1ae0d
mov ecx, 0x3e8
call fcn.00031b18
mov rcx, qword gs:[0x188]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
test al, al
jne 0x1ae0d
dec esi
test esi, esi
jg 0x1ade1
call fcn.0002b6b0
test al, al
je 0x1ae20
mov ecx, 0x1f4
call fcn.00031b18
call fcn.0002b6b0
test al, al
setne al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret