joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400799e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140079a22
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140079a69
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140079ac2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140079a80
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140079b03
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008c02a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008c02b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140079ad0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007aab0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007aafa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007aafa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007aafa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007aafa
cmp dword [rcx + 0x84], 0xe
jbe 0x14007aafa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007aafc
xor al, al
add rsp, 0x28
ret
Function at 0x14002c730
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14002c210
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002c76f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [str.0_b_f_]
jmp 0x14002c779
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140088070
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14008ddc0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140010e20
sub rsp, rax
mov rax, qword [0x140147758]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140149d50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14008dfb2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14008df06
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14008df06
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14008deeb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14008de88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008df72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14008dfd1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14008dfad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14008dfd1
jmp 0x14008de5e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140010e80
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14008dff0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140010e20
sub rsp, rax
mov rax, qword [0x140147758]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140149d50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14008e1fd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14008e149
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14008e149
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14008e129
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14008e0b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008e1bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14008e21c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14008e1f8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14008e21c
jmp 0x14008e08e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140010e80
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140091210
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1400904c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140091277
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1400c2318]
jmp 0x140091299
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400917a0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x140097270
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140097100
lea rcx, [rsp + 0x40]
call fcn.140097230
movzx eax, al
test eax, eax
jne 0x1400972b8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140097120
mov rax, qword [rsp + 0x70]
jmp 0x140097489
lea rcx, [rsp + 0x40]
call fcn.140097210
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400971c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140097210
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140096fd0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14009735e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140097120
mov rax, qword [rsp + 0x80]
jmp 0x140097489
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140040f20
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140015960
lea rcx, [rsp + 0x48]
call fcn.1400159e0
movzx eax, al
test eax, eax
jne 0x1400973c5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400159a0
lea rcx, [rsp + 0x40]
call fcn.140097120
mov rax, qword [rsp + 0x88]
jmp 0x140097489
lea rcx, [rsp + 0x48]
call fcn.140015ad0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140097210
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140096fd0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14009745b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400159a0
lea rcx, [rsp + 0x40]
call fcn.140097120
mov rax, qword [rsp + 0xa0]
jmp 0x140097489
lea rcx, [rsp + 0x48]
call fcn.140036360
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400159a0
lea rcx, [rsp + 0x40]
call fcn.140097120
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400013f0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov byte [rsp + 0x58], 0xff
mov byte [rsp + 0x59], 0x74
mov byte [rsp + 0x5a], 0x24
mov byte [rsp + 0x5b], 4
mov byte [rsp + 0x5c], 0xe8
mov byte [rsp + 0x5d], 0x21
mov byte [rsp + 0x5e], 0xf9
mov byte [rsp + 0x5f], 0xff
mov byte [rsp + 0x60], 0xff
mov byte [rsp + 0x61], 0x59
mov byte [rsp + 0x62], 0x5a
mov byte [rsp + 0x63], 0x68
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], pe_nt_image_headers64
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0x6a
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0x52
mov byte [rsp + 0x6b], 0x51
mov byte [rsp + 0x6c], 0xff
mov byte [rsp + 0x6d], 0xe0
mov rax, qword [0x140006260]
add rax, 0x6ec
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x103000
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jl 0x14000157b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [0x140006260]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140006260]
lea rax, [rax + rcx + 0x6d6]
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [0x140006258]
mov rcx, qword [0x140006260]
rep movsb byte [rdi], byte [rsi]
lea rax, [0x140005a40]
mov rdi, qword [rsp + 0x50]
mov rsi, rax
mov ecx, 0x6d6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x58]
mov rdi, qword [rsp + 0x38]
mov rsi, rax
mov ecx, 0x16
rep movsb byte [rdi], byte [rsi]
imul rax, qword [rsp + 0x38], 0xfffffffffffffffc
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.140001950
movzx eax, al
test eax, eax
jne 0x14000157b
mov r9d, 0x8000
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140001590
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov byte [rsp + 0x58], 0x51
mov byte [rsp + 0x59], 0xe8
mov byte [rsp + 0x5a], 0xbf
mov byte [rsp + 0x5b], 0xf5
mov byte [rsp + 0x5c], 0xff
mov byte [rsp + 0x5d], 0xff
mov byte [rsp + 0x5e], 0x59
mov byte [rsp + 0x5f], 0xba
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x63], 0
mov byte [rsp + 0x64], 0x41
mov byte [rsp + 0x65], 0xb8
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], pe_nt_image_headers64
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0xff
mov byte [rsp + 0x6b], 0xe0
mov rax, qword [0x140006260]
add rax, 0xa4f
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x103000
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jl 0x140001706
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [0x140006260]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140006260]
lea rax, [rax + rcx + 0xa3b]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x38]
mov rsi, qword [0x140006258]
mov rcx, qword [0x140006260]
rep movsb byte [rdi], byte [rsi]
lea rax, section..data
mov rdi, qword [rsp + 0x50]
mov rsi, rax
mov ecx, 0xa3b
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov rsi, rax
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140001950
movzx eax, al
test eax, eax
jne 0x140001706
mov r9d, 0x8000
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140001be0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x240
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xa0]
mov edx, 0x110000
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jge 0x140001cd2
mov eax, dword [rsp + 0x80]
jmp 0x140001dd1
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x656c6946
xor r9d, r9d
mov rax, qword [0x1400040f0]
mov r8, qword [rax]
mov edx, 0x110000
mov rcx, qword [rsp + 0x88]
Function at 0x140001de0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call fcn.1400035e6
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001ee2
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov ecx, 5
call fcn.1400035e6
test eax, eax
jl 0x140001ed5
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x140001ed5
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28]
add rax, 0x38
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400012c0
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.1400035ce
test rax, rax
je 0x140001ebc
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x50]
mov dword [rax], ecx
jmp 0x140001ed5
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140001e5b
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
add rsp, 0x140
pop rdi
ret
Function at 0x140002c40
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x50], 0
lea rdx, [0x1400036e0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [0x140004188]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0x78]
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140002ce3
lea rcx, [0x140003700]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140002cfa
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x140003730]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [0x140003750]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [0x140004188]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0x78]
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140002d65
mov edx, dword [rsp + 0x40]
lea rcx, [0x140003780]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140002d7c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x1400037b0]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [rsp + 0x48], 0
jne 0x140002d93
cmp qword [rsp + 0x58], 0
jne 0x140002d93
xor eax, eax
jmp 0x140002e9a
cmp qword [rsp + 0x48], 0
je 0x140002da7
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
jmp 0x140002db1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rdx, [0x140003690]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [0x140004188]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0x78]
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140002e29
lea rcx, [0x1400037d0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002e9a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002e76
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.140003110
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140002e66
jmp 0x140002e76
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
jmp 0x140002e42
cmp qword [0x140006280], 0
je 0x140002e96
cmp qword [0x140006288], 0
je 0x140002e96
lea rcx, [0x140003800]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
add rsp, 0x98
ret