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

Disassembly:
cmp rcx, qword [0x100004110]
jne 0x10000272b
rol rcx, 0x10
test cx, 0xffff
jne 0x100002727
ret 0
ror rcx, 0x10
jmp 0x100002a1c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100004240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x100004338]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100002aa1
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, [0x100004240]
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 0x100002ac3
mov rax, qword [rsp + 0x88]
mov qword [0x100004338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000042d8], rax
mov rax, qword [0x100004338]
mov qword [0x1000041b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000042c0], rax
mov dword [0x1000041a0], 0xc0000409
mov dword [0x1000041a4], 1
mov rax, qword [0x100004110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100004118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000012c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x1000028b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100002905
cmp rcx, 0xffffffffffffffff
je 0x100002905
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000028fd
cmp dword [rcx + 0x3c], edx
jl 0x1000028fd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000028fd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100002905
mov rax, rdx
add rsp, 0x18
ret

Function at 0x100094000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push rbp
mov rbp, rsp
sub rsp, 0x20
and rsp, 0xfffffffffffffff0
lea rbx, [0x100007200]
movabs rdi, 0
push rbx
Function at 0x180137d3c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180137d6c
xor eax, eax
jmp 0x180137e2f
mov rbp, rbx
cmp word [rax], si
je 0x180137d91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180137d78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180137d74
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180137c5c
movsxd r14, eax
test eax, eax
jne 0x180137dcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180137d65
mov rcx, r14
call fcn.1801354e0
mov rdi, rax
test rax, rax
jne 0x180137de8
xor ecx, ecx
call fcn.1801354a4
jmp 0x180137dc4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180137c5c
test eax, eax
jne 0x180137e19
mov rcx, rdi
call fcn.1801354a4
jmp 0x180137e23
xor ecx, ecx
call fcn.1801354a4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18013d520
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18013d548
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18013d548
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180020d80
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
imul r15d, ecx, 0x13e
mov r13, rdx
mov ebp, ecx
mov edi, ecx
cmp ecx, r15d
ja 0x180020fe6
mov rsi, qword [rsp + 0xb0]
xor ebx, ebx
mov r12d, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x90]
lea r10, [0x180000000]
cmp edi, 0x546
ja 0x180020ec5
je 0x180020fe6
cmp edi, 0x19
je 0x180020e80
cmp edi, 0x25
je 0x180020e0e
cmp edi, 0x118
jne 0x180020fb3
lea rax, str.1.7.5
jmp 0x180020feb
mov eax, dword [rsi]
xor edx, edx
mov dword [rsp + 0x90], eax
xor r9d, r9d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x13]
call fcn.18005ac80
mov dword [0x18007bcb4], eax
test eax, eax
je 0x180020fb3
mov eax, dword [rsi]
lea rdx, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x20], rbx
lea ecx, [r9 + 0x1d]
call fcn.180066f30
mov eax, dword [0x18007bcb4]
mov dword [rsp + 0x48], eax
jmp 0x180020fe6
mov eax, dword [rsi]
cmp dword [r10 + rax*4 + 0x7bc64], 0xa
je 0x180020ebc
xor r9d, r9d
mov dword [rsp + 0x90], eax
mov r8d, 0xa7
lea rdx, [rsp + 0x90]
xor ecx, ecx
call fcn.1800256e0
mov dword [0x18007bc70], eax
mov ecx, eax
test eax, eax
jne 0x180020fd2
mov dword [rsp + 0x48], ebx
jmp 0x180020fb3
cmp edi, 0x7ce
je 0x180020f8b
cmp edi, 0xf77
jne 0x180020fb3
mov eax, dword [r13]
lea r9, [rsp + 0x30]
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x40]
mov eax, dword [rsi]
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x38], r12d
call fcn.18005aff0
mov dword [0x18007bcb4], eax
mov ebx, 0xc6
mov eax, ebx
sub eax, 0xc6
je 0x180020f48
cmp eax, 1
je 0x180020fe6
jmp 0x180020f7d
mov eax, dword [rsi]
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x90], eax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea ecx, [rax + 0x1d]
call fcn.180066f30
mov eax, dword [0x18007bcb4]
mov dword [rsp + 0x48], eax
inc ebx
cmp ebx, 0xc8
jb 0x180020f34
xor ebx, ebx
jmp 0x180020fb3
mov ecx, dword [rsi]
xor edx, edx
mov eax, dword [r10 + rcx*8 + 0x7bc9c]
lea rcx, [rax + rax*4]
mov eax, dword [r8]
div dword [r10 + rcx*8 + 0x6c4cc]
mov r14d, edx
mov r12d, eax
shl r14d, 9
add r14d, dword [r9]
imul ecx, ebp, 0x35
add edi, ecx
cmp edi, r15d
ja 0x180020fe6
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
jmp 0x180020dcf
add eax, 0xfffffffa
mov dword [rsp + 0x48], ecx
cmp eax, 2
ja 0x180020fe6
mov dword [rsp + 0x48], 5
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002a4e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea ebx, [r9 + 0xa]
mov r15d, r9d
mov dword [rsp + 0xc8], ebx
mov rbp, rdx
mov r10, rcx
cmp r9d, ebx
jae 0x18002a58c
mov r13, qword [rsp + 0xd0]
lea r12d, [r9 - 0x8e]
mov r14, qword [rsp + 0x60]
lea rdx, [0x180000000]
mov ebx, dword [rsp + 0xc8]
mov eax, dword [rsp + 0xc8]
cmp r12d, 0x22
ja case.default.0x18002a55d
movzx eax, byte [rdx + r12 + 0x2a7e0]
mov ecx, dword [rdx + rax*4 + 0x2a7b4]
add rcx, rdx
jmp rcx
cmp byte [rbp + 0x118], 0
je 0x18002a58c
lea rcx, [rbp + 0x48]
xor edx, edx
mov r8d, SHSetFolderPathW
call fcn.1800526c0
jmp 0x18002a6f8
test r14, r14
jne case.0x18002a55d.6
mov byte [rsp + 0x40], r14b
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9, qword [rsp + 0xe0]
mov r8d, reloc.SHELL32.dll_SHSetFolderPathW
mov rdx, rbp
mov rcx, r10
call fcn.180024bc0
mov ebx, eax
jmp 0x18002a6f8
test ebx, ebx
js 0x18002a722
mov eax, dword [r13]
mov esi, ebx
cmp eax, 1
je 0x18002a722
cmp eax, 2
jne 0x18002a6d0
mov edi, 0x55
nop dword [rax]
mov eax, edi
sub eax, 0x55
je 0x18002a614
sub eax, 0x1e
je 0x18002a603
cmp eax, 0x1e
je 0x18002a58c
jmp 0x18002a633
test ebx, ebx
js 0x18002a722
lea eax, [rbx + rsi]
mov dword [rsp + 0x40], eax
jmp 0x18002a633
mov eax, dword [r13]
lea r8, [rsp + 0x48]
mov r9, rbp
mov dword [rsp + 0x48], eax
mov edx, 0xd3
mov rcx, rbp
call fcn.1800393e0
mov ebx, eax
add edi, 0x1e
cmp edi, 0xaf
jb 0x18002a5f0
jmp 0x18002a6f8
mov ecx, 0x67
cmp ecx, 0x67
je 0x18002a65b
cmp ecx, 0x111
je 0x18002a58c
jmp 0x18002a66a
mov rax, r14
mov byte [rsp + 0x40], 1
xchg qword [0x18007b440], rax
add ecx, 0xaa
cmp ecx, 0x1bb
jb 0x18002a648
mov qword [0x18007b438], rbp
lea r8, [0x18002b540]
mov qword [rsp + 0x28], 0
mov r9, rbp
xor edx, edx
mov qword [rbp + 0x80], r13
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
jmp 0x18002a6f8
test rbp, rbp
je 0x18002a733
cmp qword [rsp + 0xe0], 0
je 0x18002a729
test r10, r10
je 0x18002a729
mov eax, dword [r13]
dec eax
cmp eax, 1
jbe case.0x18002a55d.6
mov eax, 0xffffffe8
jmp 0x18002a590
xor r9d, r9d
xor edx, edx
mov r8d, 0xbe
mov rcx, rbp
call fcn.18000c1d0
mov rbx, rax
test eax, eax
js 0x18002a590
mov r10, qword [rsp + 0xb0]
lea rdx, [0x180000000]
mov eax, dword [rsp + 0xc8]
inc r15d
inc r12d
cmp r15d, eax
jb 0x18002a540
jmp 0x18002a58c
mov eax, ebx
jmp 0x18002a590
mov eax, 0xfffffffe
jmp 0x18002a590
mov eax, 0xfffffff6
jmp 0x18002a590
mov rax, qword [rsp + 0xd8]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], rbp
mov r9d, 0xee
mov rcx, r13
mov dword [rsp + 0x58], 1
mov edx, dword [rax]
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x50], edx
lea rdx, [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0x60], eax
mov eax, dword [r10]
mov dword [rsp + 0xc8], eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.18000ee30
jmp 0x18002a590
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10018d000
add rsp, 0x28
jmp 0x10000bae0
Function at 0xc94058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc941df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xc94089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc9406f
add dl, dl
jne 0xc94096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc940f6
xor eax, eax
add dl, dl
jne 0xc940a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc941ad
add dl, dl
jne 0xc940b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc940c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc940d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc940dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xc940ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xc9407e
mov eax, 1
add dl, dl
jne 0xc94106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc94113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc940fb
sub eax, ebx
mov ebx, 1
jne 0xc9414c
mov ecx, 1
add dl, dl
jne 0xc9412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc9413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc94123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc9407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc94168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc94175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc9415d
cmp eax, 0x7d00
jae 0xc9419b
cmp eax, 0x500
jb 0xc94196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc9407e
cmp eax, 0x7f
ja 0xc9419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc9407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xc941d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xc9407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400019dc
Capabilities:
Create device object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x40], di
mov qword [r11 - 0x16], rax
lea rcx, [r11 - 0x18]
lea rdx, [0x140002500]
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov qword [r11 + 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 0x22]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140002160
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov rbx, rdx
mov rdx, rcx
lea rcx, [rbp - 9]
mov rdi, r9
mov esi, r8d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp + 7]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x1f], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x37], xmm0
lea r8, [rbp + 0x17]
lea rcx, [rbp - 0x11]
mov edx, 0xf003f
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x17], 0x30
mov dword [rbp + 0x2f], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000220c
mov eax, dword [rbp + 0x7f]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp + 7]
mov dword [rsp + 0x28], eax
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002340
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x140
mov rax, qword [0x140004340]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
mov edx, 0x100000
mov r8d, 0x656e6f42
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor ebx, ebx
mov rdi, rax
mov r14, rax
test rax, rax
je 0x140002434
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rax
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140002424
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
call fcn.1400013f0
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x20]
call fcn.1400022fc
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x1400023cf
jmp 0x140002411
mov eax, dword [r14]
test eax, eax
je 0x140002424
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
add r14, rax
call fcn.1400013f0
lea rcx, [r14 + 0x38]
lea rdx, [rsp + 0x20]
call fcn.1400022fc
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x140002408
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.ntoskrnl.exe__strnicmp
test eax, eax
jne 0x1400023da
mov bl, 1
mov edx, 0x656e6f42
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400024a0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14000e000
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14000e02c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140001534
Function at 0x140002480
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000258d
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000258d
cmp dword [rsp + 0x38], edi
jne 0x140002500
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x270]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x5c]
lea r8, [rsp + 0x270]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140002554
add rax, 2
test ecx, ecx
jne 0x140002540
test edx, edx
je 0x14000256c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002500
jmp 0x14000258d
mov edi, dword [rsp + 0x38]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
lea rdx, str.ProcID_:__n
mov rcx, rax
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400042a0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400025c0
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400025f3
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rsi
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rdi + r9], 0
jne 0x140002621
inc r9
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, eax
test eax, eax
je 0x1400026b1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
lea rdx, str.___Successfully_n
mov rcx, rax
call fcn.140001010
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x1400026cf
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.___Created_Successfully_n
mov rcx, rax
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret