joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117d5
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016b70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14002a018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x140031067]
call fcn.1400117ee
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140016bd6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016bdd
mov al, 1
jmp 0x140016d37
call fcn.140011244
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011244
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400116b8
movzx eax, al
test eax, eax
je 0x140016c38
xor al, al
jmp 0x140016d37
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x140016c9d
cmp dword [rbp + 0x194], 1
je 0x140016ca8
cmp dword [rbp + 0x194], 3
je 0x140016d26
jmp 0x140016d35
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140016cf8
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140016cf8
xor al, al
jmp 0x140016d37
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016d13
mov dword [rbp + 0x194], 1
jmp 0x140016d1d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140016d37
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140016d37
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140025670]
call fcn.14001169a
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400113d9
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret

Function at 0x175c870
Capabilities:
Encode data using xor

Disassembly:
jmp 0x175c87a
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
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x175c8a3
pop rbp
sub rbp, 0x33
sub rbp, 0x135c870
sub rsp, 0x20
jmp 0x175c8c2
mov rax, 0x135c870
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x147733cc
xor byte [rax], dl
inc rax
dec rcx
jne 0x175c8e1
jmp 0x175c8f8
test byte [rbp + 0x25], al
invalid
Function at 0x14003ca00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003ca0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003ca1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003ca05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003ca35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003ca22
sub eax, 3
jb 0x14003ca4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003ca86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003ca76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003ca74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003ca63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003c9c2
jmp 0x14003ca0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003cad2
cmp rsi, rcx
jae 0x14003cada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003cab9
cmp al, 0x8f
ja 0x14003cab9
cmp byte [rsi - 2], 0xf
je 0x14003cabf
sub al, 0xe8
cmp al, 1
ja 0x14003caa3
cmp rsi, rcx
jae 0x14003cada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003caa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003cada
lodsb al, byte [rsi]
jmp 0x14003cab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39000]
mov eax, dword [rdi]
or eax, eax
je 0x14003cb43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x40f0c]
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 0x14003cae7
jns 0x14003cb1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003cb26
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 0x14003cb3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003cb07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x18f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003cb9b
sub rsp, 0xffffffffffffff80
jmp 0x1400242ac
Function at 0x1410ed058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410ed1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410ed089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410ed06f
add dl, dl
jne 0x1410ed096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410ed0f6
xor eax, eax
add dl, dl
jne 0x1410ed0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410ed1ad
add dl, dl
jne 0x1410ed0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ed0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ed0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ed0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410ed0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410ed07e
mov eax, 1
add dl, dl
jne 0x1410ed106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ed113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410ed0fb
sub eax, ebx
mov ebx, 1
jne 0x1410ed14c
mov ecx, 1
add dl, dl
jne 0x1410ed12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410ed13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410ed123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410ed07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410ed168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410ed175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410ed15d
cmp eax, 0x7d00
jae 0x1410ed19b
cmp eax, 0x500
jb 0x1410ed196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410ed07e
cmp eax, 0x7f
ja 0x1410ed19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410ed07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410ed1d2
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 0x1410ed07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140015efc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015f7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015f71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015f71
mov rax, qword [rbp - 8]
jmp 0x140015f8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015f44
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1400098c0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400170c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.14000a810
test rax, rax
jne 0x140009905
xor al, al
jmp 0x1400099e0
cmp qword [rsp + 0x88], 0
jne 0x14000992f
mov eax, dword [rsp + 0x80]
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x14000992f
xor al, al
jmp 0x1400099e0
mov rax, qword [rsp + 0x90]
and rax, 0xfffffffffffff000
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa0]
mov qword [rax], 0
mov rax, qword [rsp + 0x98]
mov dword [rax], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call fcn.140009010
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
cmp qword [rsp + 0x88], 0
jne 0x1400099dc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400099de
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013850
add rsp, 0x70
pop rdi
ret
Function at 0x140009ed0
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0xc0000001
cmp qword [rsp + 0x78], 0
jne 0x140009f1f
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x140009f1f
xor al, al
jmp 0x14000a078
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, qword [rsp + 0x80]
call fcn.140009ad0
movzx eax, al
test eax, eax
je 0x14000a037
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax - 1]
mov rcx, rax
call fcn.140009ad0
movzx eax, al
test eax, eax
je 0x14000a037
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
cmp dword [0x140021cbc], 0
je 0x140009f97
call fcn.140002510
call fcn.14000fdf0
cmp dword [0x140021cbc], 0
jne 0x140009fb1
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x30], rax
jae 0x140009fd0
mov eax, dword [rsp + 0x88]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x14000a00a
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.14000ae00
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x28], eax
je 0x14000a002
mov dword [rsp + 0x20], 0xc0000001
jmp 0x14000a00a
mov dword [rsp + 0x20], 0
cmp dword [0x140021cbc], 0
je 0x14000a037
call fcn.14000feb0
mov qword [rsp + 0x48], rax
call fcn.14000fe50
call fcn.140002520
cmp qword [rsp + 0x48], 0
je 0x14000a037
mov dword [rsp + 0x20], 0xc0000001
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
jmp 0x14000a047
cmp qword [rsp + 0x78], 0
jne 0x14000a05a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x20], 0
jl 0x14000a06b
mov dword [rsp + 0x24], 1
jmp 0x14000a073
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14000a3c0
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1400170c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0xc0000001
cmp qword [rsp + 0x30], 0
jne 0x14000a42a
mov eax, dword [rsp + 0xb0]
lea rdx, [rsp + 0x30]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x14000a42a
xor al, al
jmp 0x14000a606
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, qword [rsp + 0xc0]
call fcn.140009ad0
movzx eax, al
test eax, eax
je 0x14000a5c2
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax - 1]
mov rcx, rax
call fcn.140009ad0
movzx eax, al
test eax, eax
je 0x14000a5c2
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rax
cmp dword [0x140021cbc], 0
jne 0x14000a4ba
cmp dword [0x140021c7c], 0
je 0x14000a4f0
call fcn.140002510
cmp dword [0x140021cbc], 0
je 0x14000a4cd
call fcn.14000fdf0
cmp dword [0x140021c7c], 0
je 0x14000a4f0
call fcn.140002ab0
btr rax, 0x10
mov rcx, rax
call fcn.140002bb0
mov dword [rsp + 0x24], 1
cmp dword [0x140021cbc], 0
jne 0x14000a50a
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x40], rax
jae 0x14000a529
mov eax, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x14000a563
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14000ae00
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x38], eax
je 0x14000a55b
mov dword [rsp + 0x20], 0xc0000001
jmp 0x14000a563
mov dword [rsp + 0x20], 0
cmp dword [0x140021cbc], 0
jne 0x14000a573
cmp dword [rsp + 0x24], 0
je 0x14000a5c2
mov qword [rsp + 0x50], 0
cmp dword [rsp + 0x24], 0
je 0x14000a595
call fcn.140002ab0
bts rax, 0x10
mov rcx, rax
call fcn.140002bb0
cmp dword [0x140021cbc], 0
je 0x14000a5ad
call fcn.14000feb0
mov qword [rsp + 0x50], rax
call fcn.14000fe50
call fcn.140002520
cmp qword [rsp + 0x50], 0
je 0x14000a5c2
mov dword [rsp + 0x20], 0xc0000001
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
jmp 0x14000a5d2
cmp qword [rsp + 0xb8], 0
jne 0x14000a5e8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x20], 0
jl 0x14000a5f9
mov dword [rsp + 0x28], 1
jmp 0x14000a601
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140013850
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14000a810
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1400170c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [0x140017178], 0
jne 0x14000a8f5
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
je 0x14000a855
xor eax, eax
jmp 0x14000a8fc
cmp dword [rsp + 0x34], 0xa
jb 0x14000a8e4
cmp dword [rsp + 0x3c], 0x3839
jb 0x14000a8e4
call fcn.140002ad0
and rax, 0xfffffffffffff000
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetVirtualForPhysical]
mov qword [rsp + 0x28], rax
movabs rax, 0xffffff8000000000
mov rcx, qword [rsp + 0x28]
and rcx, rax
mov rax, rcx
mov qword [0x140017178], rax
movabs rax, 0x7ffffffff8
mov rcx, qword [0x140017178]
add rcx, rax
mov rax, rcx
mov qword [0x140021ca0], rax
movabs rax, 0x7b7ffffff8
mov rcx, qword [0x140017178]
add rcx, rax
mov rax, rcx
mov qword [0x140021ca8], rax
jmp 0x14000a8f5
movabs rax, 0xfffff68000000000
mov qword [0x140017178], rax
mov rax, qword [0x140017178]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140013850
add rsp, 0x168
ret
Function at 0x140011f80
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov rax, qword [0x1400170c0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov dword [rsp + 0x20], 0xc0000001
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rcx, [0x140013df0]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
xor eax, eax
mov word [rsp + 0x50], ax
mov eax, 0x208
mov word [rsp + 0x52], ax
mov rdx, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x28]
call fcn.140012350
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140012023
mov edx, dword [rsp + 0x20]
lea rcx, [0x140013e10]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
jmp 0x140012111
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.140012130
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400120f8
lea rdx, [0x140013e30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400120e9
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.140012130
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400120d4
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140011c00
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [rsp + 0x20], 0
jne 0x1400120d2
cmp dword [rsp + 0x498], 0
je 0x1400120d2
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.1400127f0
mov dword [rsp + 0x20], eax
jmp 0x1400120e9
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 8]
lea rcx, [0x140013e40]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14001210d
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 8]
lea rcx, [0x140013e40]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140013850
add rsp, 0x488
ret
Function at 0x140012130
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x1400170c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x60], 0xc0000001
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xa0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x88]
mov edx, 0x120000
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140012334
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0xc4], 0
jne 0x140012329
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0xc0]
mov dword [rax], ecx
mov eax, dword [rsp + 0xc0]
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [rsp + 0xf8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xf8]
cmp qword [rax], 0
je 0x140012329
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x103
jne 0x140012300
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14001230f
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140012329
xor edx, edx
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140013850
add rsp, 0xe8
ret