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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
mov r14, rdx
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140001a5e
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140001fa8
mov esi, eax
test eax, eax
jne 0x1400019e4
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140001a5e
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rsi
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140002680
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rdx, r14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140001a49
cmp esi, dword [rbp + 0x20]
jne 0x140001a49
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rdi + 8]
mov rax, qword [rax + rdi]
jmp 0x140001a60
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140001fa8
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140001fda
cmp eax, 0x80000005
je 0x140001fda
xor eax, eax
jmp 0x140001fde
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x1400022d0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
mov qword [rax - 0x28], rcx
mov rbp, rdx
mov dword [rax - 0x38], 0x30
xorps xmm0, xmm0
mov dword [rax - 0x20], 0x240
xor ebx, ebx
lea r8, [rax - 0x38]
mov edx, 0xf003f
mov qword [rax - 0x30], rbx
lea rcx, [rax + 8]
mov edi, r9d
movdqu xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000235b
mov eax, dword [rsp + 0x90]
mov r9d, edi
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
shr ebx, 0x1f
xor bl, 1
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400024dc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov r8d, 0x20
lea r9, [rax + 0x10]
lea rdx, [rax - 0x28]
mov dword [rax + 0x10], r8d
mov edi, ecx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x58]
mov ecx, 0x400
mov r8d, 0xb1127cfc
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140002522
xor eax, eax
jmp 0x14000254a
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
je 0x140002547
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000251e
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140003c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140003da1
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140003da1
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x140003cab
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140003dc8
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140003cc2
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x140003cc2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140003cd5
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140003d22
mov r9d, eax
cmp eax, 0x800
jae 0x140003cef
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140003d22
cmp eax, 0x10000
jae 0x140003d09
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140003d22
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140003da1
add qword [r14], 2
test sil, sil
jne 0x140003d43
cmp r10d, 3
jae 0x140003d4f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x140003d7e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140003d60
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x140003c5f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140003daf
Function at 0x1400063d0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0xf0], rax
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x14000651a
lea edx, [rax + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400032d0
lea rcx, [rsp + 0x70]
call fcn.140002bf0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14000c330]
call fcn.140004290
nop
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140003de0
nop
lea rcx, [rsp + 0x30]
call fcn.140002f20
lea rcx, [rsp + 0x50]
call fcn.140003370
mov dword [rsp + 0x28], 1
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x140006513
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140002f80
nop
lea rcx, [rsp + 0x70]
call fcn.140002f90
mov edx, 0x78
lea rcx, [rsp + 0x70]
call fcn.1400032d0
lea rcx, [rsp + 0x70]
call fcn.140002bf0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14000c330]
call fcn.140004290
nop
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140003de0
nop
lea rcx, [rsp + 0x30]
call fcn.140002f20
lea rcx, [rsp + 0x50]
call fcn.140003370
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x140006480
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
nop
mov rcx, qword [0x14000c330]
call fcn.140004f70
mov rcx, qword [0x14000c330]
call fcn.1400047a0
mov rcx, qword [0x14000c330]
call fcn.140005cb0
nop
mov rcx, qword [0x14000c330]
call fcn.140004b20
jmp 0x140006540

Function at 0x1400071b4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebp, ebp
lea rdx, [rsp + 0x70]
mov qword [r8], rbp
mov rsi, r9
mov qword [r9], rbp
mov rdi, r8
lea r9, [rsp + 0x80]
mov qword [rsp + 0x60], rbp
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x14000125f
movzx ecx, word [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], ebp
lea r9, [rsp + 0xd0]
mov qword [rsp + 0x48], rbp
lea r8, [rsp + 0xa0]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, ebp
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x80]
cmove rax, rdx
mov dword [rsp + 0xa0], 0x30
mov edx, 0x120089
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0x40
movdqu xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x14000125f
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf0004
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x1400011e5
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x14000123b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov r8, rdi
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rsi
lea rdx, [r9 - 1]
mov qword [rdi], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsi], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140001230
mov ebx, ebp
jmp 0x140001242
test eax, eax
jns 0x140001242
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000126d
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14000126d
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001010
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140002650
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400012a0
Capabilities:
Disable driver code integrity
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, RtlVirtualUnwind
mov rbp, rcx
cmp word [rcx], ax
jne 0x14000135d
movsxd rcx, dword [rcx + 0x3c]
add rcx, rbp
cmp dword [rcx], 0x4550
jne 0x14000135d
mov r8d, 0x20b
mov eax, 0x88
cmp word [rcx + 0x18], r8w
mov edx, 0x78
cmovne eax, edx
xor esi, esi
mov r12d, dword [rax + rcx]
mov eax, dword [rax + rcx + 4]
lea r13, [r12 + rbp]
mov r15d, dword [r13 + 0x20]
mov edi, dword [r13 + 0x18]
add r15, rbp
mov dword [rsp + 0x68], eax
mov eax, dword [r13 + 0x1c]
add rax, rbp
mov qword [rsp + 0x70], rax
mov eax, dword [r13 + 0x24]
add rax, rbp
sub edi, 1
mov qword [rsp + 0x60], rax
js 0x14000135d
nop
lea ebx, [rdi + rsi]
sar ebx, 1
lea rcx, str.CiInitialize
movsxd r14, ebx
mov edx, dword [r15 + r14*4]
add rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jns 0x140001354
lea edi, [rbx - 1]
jmp 0x140001359
jle 0x140001374
lea esi, [rbx + 1]
cmp edi, esi
jge 0x140001330
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp edi, esi
jl 0x14000135d
cmp ebx, dword [r13 + 0x14]
jge 0x14000135d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rax + r14*2]
mov ecx, dword [rcx + rax*4]
cmp ecx, r12d
jb 0x1400013a0
mov eax, dword [rsp + 0x68]
add eax, r12d
cmp ecx, eax
jb 0x14000135d
lea rax, [rcx + rbp]
jmp 0x14000135f
Function at 0x140001410
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x168
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [r11 - 0x28], 0
mov rbp, rcx
lea r9, [r11 - 0x28]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400015bf
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x150]
mov qword [rsp + 0x198], rsi
add r8, r8
mov qword [rsp + 0x160], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x150]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
js 0x140001591
mov qword [rsp + 0x190], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001589
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rcx, rcx, 0x128
mov edx, 2
add rcx, 8
add rcx, rdi
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400014f0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rbp
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000157f
inc ebx
cmp ebx, dword [rdi]
jb 0x1400014d2
jmp 0x140001589
mov rax, qword [rsp + 0x30]
xor esi, esi
mov qword [r14], rax
mov rbx, qword [rsp + 0x190]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x160]
mov eax, esi
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140002650
add rsp, 0x168
pop r14
pop rbp
ret
Function at 0x140001820
Capabilities:
Access peb ldr_data
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rcx], 0
lea rdx, [rsp + 0x58]
mov eax, dword [0x1400044f8]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x1400044f0]
mov rdi, rcx
mov dword [rsp + 0x60], eax
mov esi, 0x23f0
movzx eax, byte [0x1400044fc]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x64], al
mov eax, dword [str.CI.dll]
mov dword [rsp + 0x50], eax
movzx eax, word [0x140004504]
mov word [rsp + 0x54], ax
movzx eax, byte [0x140004506]
mov byte [rsp + 0x56], al
movsd qword [rsp + 0x58], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rsp + 0x50]
cmp word [rcx + 0x120], si
lea rcx, [rsp + 0x70]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.1400013b0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001070
mov ebx, eax
test eax, eax
jns 0x140001919
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140001010
jmp 0x140001a50
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], si
jb 0x140001982
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140001410
mov ebx, eax
test eax, eax
jns 0x140001957
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140001010
jmp 0x140001a3e
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1400015e0
test eax, eax
je 0x140001a39
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov qword [rdi], rax
jmp 0x140001a3e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140001410
mov ebx, eax
test eax, eax
js 0x140001a3e
mov r11, qword [rsp + 0x48]
xor r10d, r10d
xor r9d, r9d
test r11, r11
je 0x140001a2d
mov rbx, qword [rsp + 0x40]
lea rsi, [0x140004a8c]
nop dword [rax + rax]
mov r8, r9
xor edx, edx
sub r8, rsi
mov rax, rsi
add r8, rbx
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x1400019dd
test cl, cl
jne 0x140001a29
inc edx
inc rax
cmp edx, 4
jb 0x1400019d0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x1400019c0
test rax, rax
je 0x140001a2d
movsxd rcx, dword [rax + rbx + 4]
mov rbx, qword [rsp + 0x30]
add rcx, rax
add rbx, 8
add rbx, rcx
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140001010
mov qword [rdi], rbx
xor ebx, ebx
jmp 0x140001a3e
xor cl, cl
jmp 0x1400019e9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140001010
mov ebx, 0xc0000225
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140002650
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001b20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140001a80
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001c07
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001ba0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001c07
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002650
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x140002f08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f52
mov ecx, RtlVirtualUnwind
cmp word [rax], cx
jne 0x140002f52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f52
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002f54
xor al, al
add rsp, 0x28
ret
Function at 0x140006c40
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, r9d
mov rsi, r8
test r8, r8
je 0x140006c5e
mov qword [rsi], 0
call fcn.1400069f0
test rax, rax
je 0x140006c89
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140006c9b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
cmp eax, 0xffffffff
je 0x140006c80
mov ebx, eax
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140006c80
movsxd r14, ebx
movsxd r15, ebp
lea rcx, [r14 + r15]
mov rax, qword [0x1400d2160]
test rax, rax
je 0x140006cda
add dword [rax + 0x3b0], 1
mov rdx, qword [0x1400d2170]
call qword [0x1400d0178]
test rax, rax
je 0x140006c80
mov rbx, rax
mov edx, 1
mov rcx, rax
mov r8, r14
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r14
jne 0x140006d36
test ebp, ebp
jle 0x140006d1c
mov rcx, rbx
add rcx, r14
xor edx, edx
mov r8, r15
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140006c8b
mov qword [rsi], r14
jmp 0x140006c8b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400d2160]
test rax, rax
je 0x140006d52
add dword [rax + 0x3b0], 0xffffffff
mov rdx, qword [0x1400d2170]
mov rcx, rbx
call qword [0x1400d0180]
jmp 0x140006c89
Function at 0x140008f00
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1f8]
movsxd rcx, dword [rcx + 0x1f0]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
test r8, r8
je 0x140008f7f
mov rax, r8
sub rax, rdx
je 0x140008f7f
mov r10, rdx
not r10
add r10, r8
add rdx, 2
lea r8, [0x1400aa520]
mov ecx, r9d
jmp 0x140008f5f
mov eax, ecx
shr eax, 8
movzx ecx, cl
xor ecx, r11d
xor eax, dword [r8 + rcx*4]
add rdx, 1
mov ecx, eax
add r10, 0xffffffffffffffff
jae 0x140008fe1
movzx r11d, byte [rdx - 2]
cmp r11d, 0x23
jne 0x140008f40
cmp r10, 2
jb 0x140008f40
cmp byte [rdx - 1], 0x23
jne 0x140008f40
cmp byte [rdx], 0x23
cmove ecx, r9d
jmp 0x140008f40
mov r10b, byte [rdx]
test r10b, r10b
je 0x140008fde
add rdx, 2
lea r8, [0x1400aa520]
mov ecx, r9d
jmp 0x140008fc1
movzx r10d, r10b
mov eax, ecx
shr eax, 8
movzx ecx, cl
xor ecx, r10d
xor eax, dword [r8 + rcx*4]
add rdx, 1
mov r10d, r11d
mov ecx, eax
test r11b, r11b
je 0x140008fe1
movzx r11d, byte [rdx - 1]
cmp r10b, 0x23
jne 0x140008fa0
cmp r11b, 0x23
jne 0x140008fa0
cmp byte [rdx], 0x23
cmove ecx, r9d
mov r11b, 0x23
jmp 0x140008fa0
mov eax, r9d
not eax
mov rcx, qword [0x1400d2160]
cmp dword [rcx + 0x1a4c], eax
je 0x140008ffb
cmp dword [rcx + 0x1a7c], eax
je 0x140009009
ret
mov dword [rcx + 0x1a50], eax
cmp dword [rcx + 0x1a7c], eax
jne 0x140008ffa
mov byte [rcx + 0x1a80], 1
ret

Function at 0x1400097d0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1f8]
movsxd rcx, dword [rcx + 0x1f0]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
test r8, r8
je 0x14000984f
mov rax, r8
sub rax, rdx
je 0x14000984f
mov r10, rdx
not r10
add r10, r8
add rdx, 2
lea r8, [0x1400aa520]
mov ecx, r9d
jmp 0x14000982f
mov eax, ecx
shr eax, 8
movzx ecx, cl
xor ecx, r11d
xor eax, dword [r8 + rcx*4]
add rdx, 1
mov ecx, eax
add r10, 0xffffffffffffffff
jae 0x1400098ae
movzx r11d, byte [rdx - 2]
cmp r11d, 0x23
jne 0x140009810
cmp r10, 2
jb 0x140009810
cmp byte [rdx - 1], 0x23
jne 0x140009810
cmp byte [rdx], 0x23
cmove ecx, r9d
jmp 0x140009810
mov r10b, byte [rdx]
test r10b, r10b
je 0x1400098b1
add rdx, 2
lea r8, [0x1400aa520]
mov ecx, r9d
jmp 0x140009891
movzx r10d, r10b
mov eax, ecx
shr eax, 8
movzx ecx, cl
xor ecx, r10d
xor eax, dword [r8 + rcx*4]
add rdx, 1
mov r10d, r11d
mov ecx, eax
test r11b, r11b
je 0x1400098ae
movzx r11d, byte [rdx - 1]
cmp r10b, 0x23
jne 0x140009870
cmp r11b, 0x23
jne 0x140009870
cmp byte [rdx], 0x23
cmove ecx, r9d
mov r11b, 0x23
jmp 0x140009870
not eax
ret
mov eax, r9d
not eax
ret