joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14024af20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14024af3f
call fcn.14025baf0
jmp 0x14024aff4
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.14024ae84
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14024af8a
cmp byte [rbp - 0x38], 0
je 0x14024afbf
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14024afbf
call fcn.1402576e0
test eax, eax
jne 0x14024afab
cmp byte [rbp - 0x38], al
je 0x14024afa3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14024afbf
cmp byte [rbp - 0x38], 0
je 0x14024afbc
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14024ad08
test eax, eax
je 0x14024afd8
or ebx, 0xffffffff
jmp 0x14024afe3
mov rcx, qword [rbp - 0x20]
call fcn.14025baf0
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x14024aff2
mov rcx, qword [rbp - 0x20]
call fcn.140257490
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140254d88
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14033ff68]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140306238]
mov rbp, rcx
call fcn.14025d744
xor edi, edi
test rax, rax
je 0x140254e6e
mov ebx, edi
call fcn.14025451c
mov r14d, dword [rax]
call fcn.14025451c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14025d690
mov rsi, rax
test rax, rax
je 0x140254dff
call fcn.14025451c
mov dword [rax], r14d
jmp 0x140254e29
call fcn.14025451c
cmp dword [rax], 0x22
jne 0x140254e66
call fcn.14025451c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14025d690
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140254e66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140254e2d
cmp rax, 3
je 0x140254e48
mov rcx, rsi
call fcn.140254ce4
test al, al
je 0x140254e59
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140254e59
mov dil, 1
mov rcx, rbx
call fcn.14024a494
mov al, dil
jmp 0x140254e70
mov rcx, rbx
call fcn.14024a494
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14023e2e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14025c154
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14025c16a
mov al, 1
jmp 0x14025c1ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14025c17b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14025c1c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14025a620
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14025c1c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14025c1c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14025c1c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14025c1ca
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14025c3bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403c0230]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14025c413
cmp word [rdx], r13w
jne 0x14025c413
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14025c418
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14025c53d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14025c55e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14025c451
mov rdx, r9
mov word [rbx], cx
jmp 0x14025c478
cmp r9, r8
jae 0x14025c488
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14025c432
jmp 0x14025c53d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14025c532
cmp dword [rsp + 0x80], esi
je 0x14025c532
lea r8, [0x1403c0230]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14025c50a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14025c4da
mov word [rbx], r13w
jmp 0x14025c53a
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14025c4e7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14025c53a
cmp word [rsp + 0x70], r13w
jne 0x14025c517
cmp rbx, r14
je 0x14025c4d4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14025d18c
cmp word [rsp + 0x70], r13w
je 0x14025c53d
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403c0230]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14025c537
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14025c53d
Function at 0x14025f6e0
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 0x14025f710
xor eax, eax
jmp 0x14025f7d3
mov rbp, rbx
cmp word [rax], si
je 0x14025f735
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14025f71c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14025f718
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.14025f600
movsxd r14, eax
test eax, eax
jne 0x14025f773
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14025f709
mov rcx, r14
call fcn.140257dc0
mov rdi, rax
test rax, rax
jne 0x14025f78c
xor ecx, ecx
call fcn.140257490
jmp 0x14025f768
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.14025f600
test eax, eax
jne 0x14025f7bd
mov rcx, rdi
call fcn.140257490
jmp 0x14025f7c7
xor ecx, ecx
call fcn.140257490
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 0x14025f7f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14025f877
mov rsi, rbx
cmp word [rax], bp
je 0x14025f836
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14025f820
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14025f81c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140257dc0
mov rdi, rax
test rax, rax
je 0x14025f864
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140240020
mov rbp, rdi
xor ecx, ecx
call fcn.140257490
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140265dac
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14025d18c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14025d18c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140265efc
cmp rax, 0xffffffffffffffff
je 0x140265efc
xor edi, edi
test rbp, rbp
jle 0x140265ea7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140257418
mov rbx, rax
test rax, rax
jne 0x140265e34
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140265e9d
mov edx, 0x8000
mov ecx, r14d
call fcn.1402546c8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14025b058
cmp eax, 0xffffffff
je 0x140265e7d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140265e44
mov edx, r15d
mov ecx, r14d
call fcn.1402546c8
jmp 0x140265e9d
cmp byte [rsi + 0x38], dil
je 0x140265e94
cmp dword [rsi + 0x34], 5
jne 0x140265e94
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x140265e9d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140257490
jmp 0x140265f10
jns 0x140265f10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14025d18c
cmp rax, 0xffffffffffffffff
jne 0x140265ec8
cmp byte [rsi + 0x30], dil
je 0x140265f10
mov edi, dword [rsi + 0x2c]
jmp 0x140265f10
mov ecx, r14d
call fcn.14025a620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140265f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x140265f10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140265f09
mov eax, dword [rsi + 0x2c]
jmp 0x140265f0e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14025d18c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001694
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
jmp 0x140001713
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1400017d8
lfence
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28]
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400035c0
lea rdx, [0x140003980]
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x140001794
lfence
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call fcn.140003880
jmp 0x1400016fb
lea rdx, [0x140003990]
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x1400017d3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call fcn.140003880
jmp 0x1400016fb
jmp 0x1400016fb
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003490
add rsp, 0x60
pop rdi
ret
Function at 0x140001d6c
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x114
rep stosb byte [rdi], al
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov qword [rsp + 0x20], 0
mov eax, dword [rsp + 0x2c]
mov edx, eax
xor ecx, ecx
call fcn.140001fc4
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140001e10
xor al, al
jmp 0x140001fa9
mov eax, dword [rsp + 0x2c]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.140003880
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x20]
call fcn.1400035c0
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0
jmp 0x140001e6c
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x28], eax
jge 0x140001eea
lfence
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x10]
movsxd rcx, dword [rsp + 0x28]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0x1c0]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x28]
imul rdx, rdx, 0x28
mov rdi, qword [rsp + 0x40]
mov edx, dword [rdi + rdx + 0xc]
mov rdi, qword [rsp + 0x20]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x50], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.1400035c0
jmp 0x140001e62
mov rcx, qword [rsp + 0x20]
call fcn.1400025e0
mov rcx, qword [rsp + 0x20]
call fcn.1400023a8
mov rcx, qword [rsp + 0x20]
call fcn.140002318
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
call qword [0x140005100]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140001f8c
lfence
mov rcx, qword [rsp + 0x20]
call fcn.140001694
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.140003880
cmp dword [rsp + 0x30], 0
jl 0x140001f9d
mov dword [rsp + 0x34], 1
jmp 0x140001fa5
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140003490
add rsp, 0x1b0
pop rdi
ret
Function at 0x1400025e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x18]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x140002637
jmp 0x1400027d7
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax + 4], 0
je 0x1400027c9
mov rax, qword [rsp + 8]
cmp dword [rax], 0
je 0x1400027c9
mov rax, qword [rsp + 8]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x20], eax
mov dword [rsp], 0
jmp 0x1400026a4
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x1400027ac
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x10]
movzx eax, word [rcx + rax*2]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 3
jne 0x140002728
lfence
movsxd rax, dword [rsp]
mov ecx, 0xfff
mov rdx, qword [rsp + 0x10]
movzx eax, word [rdx + rax*2]
and ax, cx
movzx eax, ax
mov rcx, qword [rsp + 8]
add eax, dword [rcx]
mov eax, eax
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x18]
sub rax, qword [rcx + 0x30]
add rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x1400027a7
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x10]
movzx eax, word [rcx + rax*2]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 0xa
jne 0x1400027a7
lfence
movsxd rax, dword [rsp]
mov ecx, 0xfff
mov rdx, qword [rsp + 0x10]
movzx eax, word [rdx + rax*2]
and ax, cx
movzx eax, ax
mov rcx, qword [rsp + 8]
add eax, dword [rcx]
mov eax, eax
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x18]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
jmp 0x14000269c
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
jmp 0x14000264e
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x30], rcx
add rsp, 0x58
ret
Function at 0x140002874
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x48], 0
lea r9, [rsp + 0x24]
mov r8d, 0x130
lea rdx, [rsp + 0x60]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x2c], eax
mov dl, 1
mov rcx, qword [rsp + 0x1b0]
call fcn.1400027dc
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x2c], 0xc0000004
jne 0x140002a8b
mov eax, dword [rsp + 0x24]
add rax, 0x130
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x28]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140003880
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x140002967
lfence
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140002a9d
lea rdx, [0x140004070]
mov rcx, qword [rsp + 0x1b0]
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140002999
lea rdx, [0x140004080]
mov rcx, qword [rsp + 0x1b0]
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x1400029d7
mov eax, 0x128
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x140002a7e
mov dword [rsp + 0x20], 0
jmp 0x1400029eb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140002a7e
lfence
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 0x28
xor edx, edx
mov rcx, rax
call fcn.1400027dc
mov rax, qword [rsp + 0x38]
add rax, 0x28
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x140002a79
lfence
cmp qword [rsp + 0x1b8], 0
je 0x140002a6a
mov rax, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x140002a7e
jmp 0x1400029e1
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140003490
add rsp, 0x1a8
ret
Function at 0x140002fcc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x30], 0xc0000001
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x68]
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400030af
lfence
mov eax, dword [rsp + 0x30]
jmp 0x140003154
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x30], 0
jge 0x140003104
lfence
mov eax, dword [rsp + 0x30]
jmp 0x140003154
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x4c], 1
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x4f], 1
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x49], 0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rax + 0x10], 0
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0xa0
pop rdi
ret