joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ecf0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140120c90]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x14011a3b0], rbx
jne 0x14003ed87
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400e5160]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14003ed76
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x14003ed4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14003ed42
mov rbx, rax
mov r8, rbx
lea rcx, [0x14011a3a0]
call fcn.1400064bc
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x14011a3a0]
call fcn.1400065a4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rax, [0x14011a3a0]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400be470
add rsp, 0x30
pop rbx
ret

Function at 0x14003ee1c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140120c90]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftHvsiOffice
and qword [rsp + 0x40], 0
mov eax, 4
mov dword [rsp + 0x38], eax
mov r9d, 0x20019
mov dword [rsp + 0x34], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003eeda
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.OfficeWDAGEnabledOnHost
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003eeda
cmp dword [rsp + 0x30], 1
sete bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003eef0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400be470
add rsp, 0x50
pop rbx
ret
Function at 0x14007d9d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x44], ecx
xor eax, eax
mov r9d, eax
lea r8, [0x140068160]
xor eax, eax
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x58
ret

Function at 0x1400a8d6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a8e9c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400a8f03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a8f03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a8f03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a8f03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a8f03
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a8f03
cmp dword [rcx + 0xf8], 0
je 0x1400a8f03
mov ecx, ebx
call fcn.1400a8de8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400a901c
cmp dword [rbp + 0x20], 0
je 0x1400a8f50
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a8e44
int3
Function at 0x1400020a0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
lea rdi, [rcx + 0x70]
lea rax, [0x140002070]
mov qword [rcx + 0x68], rax
lea rdx, [0x140004530]
lea rax, [0x140002000]
mov ecx, 0x1c
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140004500]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 1
mov r9d, 0xac
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x140002158
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
or dword [rax + 0x30], 0x10
mov rax, qword [rsp + 0x70]
or dword [rax + 0x30], 4
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
jns 0x140002156
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140003558
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov edi, edx
mov ebx, ecx
mov rax, cr8
test al, al
jne 0x140003593
mov r9d, 2
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.cng.sys_BCryptGenRandom
test eax, eax
js 0x140003593
mov eax, dword [rsp + 0x30]
jmp 0x14000359b
xor ecx, ecx
call qword [sym.imp.HAL.dll_KeQueryPerformanceCounter]
cmp ebx, edi
jge 0x1400035ad
sub edi, ebx
sub eax, ebx
inc edi
xor edx, edx
div edi
add edx, ebx
jmp 0x1400035af
mov edx, ebx
mov rbx, qword [rsp + 0x38]
mov eax, edx
add rsp, 0x20
pop rdi
ret

Function at 0x1400035bc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov edi, edx
mov ebx, ecx
mov rax, cr8
test al, al
jne 0x1400035f7
mov r9d, 2
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.cng.sys_BCryptGenRandom
test eax, eax
js 0x1400035f7
mov eax, dword [rsp + 0x30]
jmp 0x1400035ff
xor ecx, ecx
call qword [sym.imp.HAL.dll_KeQueryPerformanceCounter]
cmp ebx, edi
jae 0x140003611
sub edi, ebx
sub eax, ebx
inc edi
xor edx, edx
div edi
add edx, ebx
jmp 0x140003613
mov edx, ebx
mov rbx, qword [rsp + 0x38]
mov eax, edx
add rsp, 0x20
pop rdi
ret
Function at 0x140012000
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov r14, rdx
and qword [rbp - 8], 0
mov rdi, rcx
mov rdx, r8
lea rcx, [0x14003a600]
mov rbx, r9
mov rsi, r8
call sub.ntoskrnl.exe_DbgPrint
mov rdx, rbx
lea rcx, [rbp - 0x10]
call qword [sym.imp.portcls.sys_PcNewPort]
mov ebx, eax
test eax, eax
js 0x140012121
mov rax, qword [rbp + 0x38]
lea rcx, [rbp - 8]
mov rdx, qword [rbp + 0x30]
test rax, rax
je 0x140012076
xor r9d, r9d
xor r8d, r8d
call qword [case.0x14001d28c.0]
jmp 0x14001207c
call qword [sym.imp.portcls.sys_PcNewMiniport]
mov ebx, eax
test eax, eax
js 0x140012121
mov rcx, qword [rbp - 0x10]
mov r8, r14
mov rdx, qword [rbp + 0x48]
mov r9, qword [rbp - 8]
mov qword [rsp + 0x28], rdx
mov rax, qword [rcx]
mov rdx, qword [rbp + 0x40]
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14001d28c.0]
mov ebx, eax
test eax, eax
js 0x1400120cb
mov r8, qword [rbp - 0x10]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.portcls.sys_PcRegisterSubdevice]
mov ebx, eax
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001d28c.0]
test ebx, ebx
js 0x140012121
mov r8, qword [rbp + 0x60]
test r8, r8
je 0x140012102
mov rcx, qword [rbp - 0x10]
lea rdx, [0x140005b30]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14001d28c.0]
mov ebx, eax
mov r8, qword [rbp + 0x58]
test r8, r8
je 0x140012121
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14001d28c.0]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140012137
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001d28c.0]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140012740
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
lea rcx, [0x14003a7b0]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [0x140012710]
mov ecx, 0x1c
mov qword [rbx + 0x68], rax
lea rdi, [rbx + 0x70]
lea rax, [0x1400126a0]
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x40]
lea rdx, [0x14003a7e0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14003a780]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 1
mov r9d, 0xad
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x140012804
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
or dword [rax + 0x30], 0x10
mov rax, qword [rsp + 0x70]
or dword [rax + 0x30], 4
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
jns 0x140012802
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140013e4c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x140005fe8]
mov rbx, rcx
mov qword [rcx], rax
lea rax, [0x140006030]
mov qword [rcx + 8], rax
lea rax, [0x1400060a8]
mov qword [rcx + 0x10], rax
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140013e99
cmp byte [rcx + 0x30], 0
je 0x140013e95
and dword [rax + 0x34], 0
and dword [0x14000dfe0], 0
jmp 0x140013e99
and dword [rax + 0x38], 0
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x140013eb2
call qword [sym.imp.ntoskrnl.exe_KeCancelTimer]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140013ec1
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
lea rcx, [0x14003a930]
call sub.ntoskrnl.exe_DbgPrint
and dword [rbx + 0x60], 0
lea rcx, [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp loc.140003c48
Function at 0x140018f28
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x28], 0
lea rdx, [0x14003aef0]
and dword [rbp + 0x20], 0
lea rcx, [rbp - 0x40]
xorps xmm0, xmm0
xor bl, bl
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x40]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0x20019
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x28]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140019039
lea rdx, [0x14003af60]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea rdx, [rbp - 0x50]
lea r14d, [r9 + 1]
mov r8d, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140018fe1
cmp eax, 0x80000005
jne 0x140019039
mov ecx, dword [rbp + 0x20]
mov edx, 0x200
call fcn.140001c78
mov r8d, dword [rbp + 0x20]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140004040
mov ecx, dword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, qword [rbp + 0x28]
mov r8d, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
test rdi, rdi
je 0x140019039
mov rcx, rdi
call fcn.140001000
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140019048
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
Function at 0x14001c21c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rdx], 1
mov rbx, rdx
mov edi, 0xc000000d
jne 0x14001c26a
cmp dword [rdx + 8], 0x28
jb 0x14001c26a
cmp dword [rdx + 4], 0xffffffff
jne 0x14001c26a
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x128]
call qword [case.0x14001d28c.0]
mov edi, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
mov rax, qword [rbx + 0x18]
movsx edx, word [rsp + 0x7c]
movsx r8d, word [rsp + 0x7a]
movsx r10d, word [rsp + 0x78]
movsx r9d, word [rsp + 0x76]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, 0x51
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x14003ccc0]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret

Function at 0x14001cd80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rdx], 1
mov rbx, rdx
mov edi, 0xc000000d
jne 0x14001cdd5
cmp dword [rdx + 8], 0x28
jb 0x14001cdd5
mov rcx, qword [rcx + 0x28]
mov r8d, dword [rdx + 4]
mov eax, dword [rcx + 0x4c]
bt eax, r8d
jae 0x14001cdd5
mov rax, qword [rcx]
mov rax, qword [rax + 0x188]
call qword [case.0x14001d28c.0]
mov edi, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
mov rax, qword [rbx + 0x18]
movsx edx, word [rsp + 0x7c]
movsx r8d, word [rsp + 0x7a]
movsx r10d, word [rsp + 0x78]
movsx r9d, word [rsp + 0x76]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, 0x51
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x14003cec0]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14001d398
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rdx], 1
mov rbx, rdx
mov edi, 0xc000000d
jne 0x14001d3ed
cmp dword [rdx + 8], 0x28
jb 0x14001d3ed
cmp qword [rdx + 0x18], 0
jl 0x14001d3ed
cmp dword [rdx + 4], 0xffffffff
jne 0x14001d3ed
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x2e0]
call qword [case.0x14001d28c.0]
mov edi, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
mov rax, qword [rbx + 0x18]
movsx edx, word [rsp + 0x7c]
movsx r8d, word [rsp + 0x7a]
movsx r10d, word [rsp + 0x78]
movsx r9d, word [rsp + 0x76]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, 0x51
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x14003cdc0]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret

Function at 0x14001e3d4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rdx], 1
mov rbx, rdx
mov edi, 0xc000000d
jne 0x14001e422
cmp dword [rdx + 8], 0x28
jb 0x14001e422
cmp dword [rdx + 4], 0xffffffff
jne 0x14001e422
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x148]
call qword [case.0x14001d28c.0]
mov edi, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
mov rax, qword [rbx + 0x18]
movsx edx, word [rsp + 0x7c]
movsx r8d, word [rsp + 0x7a]
movsx r10d, word [rsp + 0x78]
movsx r9d, word [rsp + 0x76]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, 0x51
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x14003cbc0]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14001ebb4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rdx], 1
mov rbx, rdx
mov edi, 0xc000000d
jne 0x14001ec04
cmp dword [rdx + 8], 0x28
jb 0x14001ec04
mov rcx, qword [rcx + 0x28]
mov eax, dword [rcx + 0x10]
cmp dword [rdx + 4], eax
jae 0x14001ec04
mov rax, qword [rcx]
mov rax, qword [rax + 0xf0]
call qword [case.0x14001d28c.0]
mov edi, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
mov rax, qword [rbx + 0x18]
movsx edx, word [rsp + 0x7c]
movsx r8d, word [rsp + 0x7a]
movsx r10d, word [rsp + 0x78]
movsx r9d, word [rsp + 0x76]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, 0x51
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x14003c940]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14001ee00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp - 1]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rax, qword gs:[0x188]
movsx ecx, word [rbp + 0x23]
movsx edx, word [rbp + 0x21]
movsx r8d, word [rbp + 0x1f]
movsx r9d, word [rbp + 0x1d]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov ecx, 0x51
mov dword [rsp + 0x28], edx
mov edx, 0x80000002
mov dword [rsp + 0x20], r8d
lea r8, [0x14003d1b0]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rdi], 1
mov esi, 0xc000000d
jne 0x14001eec1
cmp dword [rdi + 8], 0x40
jb 0x14001eec1
cmp dword [rdi + 4], 0xffffffff
jne 0x14001eec1
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x1d8]
call qword [case.0x14001d28c.0]
mov esi, eax
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov r8, qword gs:[0x188]
mov edx, 0x80000002
mov rax, qword [rdi + 0x30]
mov ecx, 0x51
movsx r10d, word [rbp + 0x33]
movsx r11d, word [rbp + 0x31]
movsx ebx, word [rbp + 0x2f]
movsx r9d, word [rbp + 0x2d]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x60], rax
mov eax, dword [rdi + 0x20]
mov dword [rsp + 0x58], eax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r8
lea r8, [0x14003d200]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026fd4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rcx]
mov r14, rcx
mov rax, qword [rax + 0x68]
call qword [case.0x14001d28c.0]
xor ebx, ebx
lea rdi, [0x1400407e0]
mov rsi, rax
mov rcx, qword [rax + 0x50]
test cl, 1
je 0x140027040
mov edx, 0x16e360
mov ecx, 0xc350
call fcn.140003558
mov rcx, qword [rsi + 0x50]
lea rdi, [0x1400407f0]
movsxd rbx, eax
test cl, 2
je 0x140027050
mov rbx, qword [rsi + 0x68]
lea rdi, [0x140040820]
test cl, 4
je 0x140027063
mov rbx, qword [r14 + 0x270]
lea rdi, [0x140040850]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rdx, qword gs:[0x188]
mov rcx, qword [r14 + 0x270]
movsx r8d, word [rsp + 0x7c]
movsx r10d, word [rsp + 0x7a]
movsx r11d, word [rsp + 0x78]
movsx r9d, word [rsp + 0x76]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsi + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rcx
mov ecx, 0x51
mov qword [rsp + 0x38], rdx
mov edx, 0x80000002
mov dword [rsp + 0x30], r8d
lea r8, [0x140040880]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, rbx
mov qword [r14 + 0x270], rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140027130
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14001d28c.0]
mov rcx, qword [rax]
test cl, 1
je 0x14002715c
mov edx, 0xc80
mov ecx, 0x32
add rsp, 0x28
jmp fcn.1400035bc
bt rcx, 0x37
jae 0x14002716b
mov eax, dword [rax + 8]
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14003a078