joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1408c0a15
Capabilities:
Manually build aes constants

Disassembly:
mov r11d, edx
lea rdi, [r9 + rdi + 4]
or word [rsp + rdx + 5], 0x18a3
shl r11b, 0x46
movsx ebp, byte [rsp + rdx*2 + 3]
xor r8d, r10d
shr ax, 0x22
adc bp, word [rsp + rdx*2 + 3]
call fcn.1408aafcd
mov ecx, 0x9e81be36
movzx edx, cl
movzx ecx, byte [rsi + rdx*2 - 0x6d]
lea rax, [rdx*2 - 0x4cc0e9da]
shl rax, 0x18
xor cl, r8b
mov edi, eax
lea rbx, [rdx + rax*4 + 0x750a05bc]
add rdi, rdi
neg cl
movzx r11d, dil
add cl, 0x10
rol cl, 1
not bl
inc cl
call fcn.1408e4c71
call fcn.1408e2ec5
jmp 0x14089b61e
sar r8d, 0x1a
mov rax, qword [r9 + rbx - 0x149626e1]
mov dl, byte [r9 + rbx - 0x149626d9]
lea rbx, [rbx + r9 - 0x149626d7]
mov byte es:[r9 + rax - 0x149626e1], dl
mov eax, 0x239e940d
call fcn.1408965da
mov r8d, dword [rdi + rdx]
pop rax
jns 0x14089aa99
movzx r9d, dl
xor al, r10b
shl r9d, 0xde
xor al, 0x1f
xor edx, edx
mov qword [rsp + rdx + 8], 0x30b365bf
rol al, 1
mov r11d, dword [rsp + rdx*2 + 9]
xor r9w, r11w
sbb al, 0x2b
lea r11, [rdx + r11*8 - 0x4965c27c]
neg al
xor r10b, al
lea rax, [rsp + rax + 0x10]
inc qword [rsp + rdx + 8]
shr r9d, 0xd7
mov r11d, dword [rdx + rax]
mov qword [rsp + rdx*2], rdx
lea rbx, [rbx + rdx - 4]
mov dword [rdx + rbx], r11d
shl dword [rsp + rdx*2], 0x3c
lea rcx, [rdx*4 + 0x35b2373e]
jns 0x1408b546b

Function at 0x1408ee159
Capabilities:
Manually build aes constants

Disassembly:
call fcn.1408c30b6
mov word [rbx + r11*2 - 0x6b180002], r9w
ror ebp, cl
movzx eax, word [rdi + r11*2 - 0x6b17fffe]
mov qword [rsp + r11*2 - 0x6b180000], rbp
xor ax, r10w
shl r11b, 0x47
inc r11
call fcn.1408dd91b
or r9, qword [r11 + rbx]
jmp 0x1408a1b43

Function at 0x14091c853
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffba07ed9b
mov qword [rsp], rsi
push r9
lea rsi, [0x1407499d0]
mov r9d, 0x4e05b92d
sub r9, r9
adc r9b, byte [rax + r9*2]
xor r9d, ebx
push 0x2e138b18
and r9d, 0xff
ror qword [rsp], 0x37
mov r9d, dword [rsi + r9*4]
neg qword [rsp]
shr ebx, 8
shr word [rsp + 3], 0xe2
xor ebx, r9d
inc rax
push 0xffffffffdf2e412d
xor ebx, 0xaf10f031
dec rdi
lea rsp, [rsp + 0x10]
jne 0x1408fc920
mov ecx, 0xc5049922
pop r9
movsx r11d, cl
pop rsi
not ebx
mov dword [r9 + 0xc], ebx
mov ebx, 0x6b88fc89
mov edi, dword [rsi + rbx - 0x6b88fc8d]
xor edi, r8d
sar ebx, 0xb5
bswap edi
mov ecx, 0xa27ae09
not edi
jbe 0x1408c6f84
mov r11d, ecx
inc edi
bswap edi
xor edi, 0x1615ea2f
lea rax, [rbx + rcx*2 - 0x7cd9c274]
lea edi, [rdi + rbx*2 - 0x3d962fda]
call fcn.1408f6cb7
lea rsp, [rsp + 0x18]
je 0x1408fc97d
jmp 0x1408fc90e
Function at 0x140006ea0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140006ed1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140006f4b
mov rdi, r14
mov rcx, rbx
call fcn.1400097c0
test rax, rax
jle 0x140006f23
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400368d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140006f3b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006f43
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006ee5
sub r14, rdi
jmp 0x14000702f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006f62
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006f64
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006f96
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400368d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000702c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006fd1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000700d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14003e94c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000702c
cmp rbp, rax
ja 0x140006fe0
test rbp, rbp
je 0x14000702c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14003e94c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140014370
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
cmp rdx, 0xf
jbe 0x1400143d0
call fcn.1400265d0
mov qword [rbx + 0x10], rbp
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x1400143e8
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400143ee
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1400144f1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140014496
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14001447d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140014472
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001448c
mov rcx, rbx
call fcn.14000b560
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140014440
inc r14
cmp r14, r13
jne 0x140014410
cmp r15d, 0xfffffffa
jle 0x1400144f1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400144e9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400144de
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400144f1
mov rcx, rbx
call fcn.14000b560
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140014539
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140014525
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14001451d
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x140014530
mov r9b, 0x3d
mov rcx, rbx
call fcn.14000b560
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140014500
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002ee20
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002eeec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002eeec
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14002ef05
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14002eedc
cmp byte [rax], 0x5c
jne 0x14002eed6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14002eed6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002eec2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14002eed3
test r8b, 0x10
jne 0x14002eed6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14002eed6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14002a510
test edi, edi
jne 0x14002ee40
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14002a500
int3

Function at 0x140032ed4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14005d330]
test rax, rax
je 0x140032f1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140032f1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140032f1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140032f1e
cmp dword [rcx + 0x84], 0xe
jbe 0x140032f1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140032f20
xor al, al
add rsp, 0x28
ret

Function at 0x14003f130
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003ef9b
xor ecx, ecx
call qword [0x14005d330]
test rax, rax
je 0x14003ef9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003ef9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003ef9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003ef9b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003ef9b
cmp dword [rcx + 0xf8], 0
je 0x14003ef9b
mov ecx, ebx
call fcn.14003f04c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003ee28
nop
cmp dword [rbp + 0x20], 0
je 0x14003efe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003eff4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003ef2c

Function at 0x140059f60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140059f88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140059f88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000192c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001978
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001970
cmp dword [rcx + 0x3c], edx
jl 0x140001970
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001970
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 0x140001978
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004a8c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
test eax, eax
js 0x140004af3
cmp al, 6
jb 0x140004af3
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140004af3
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140004af3
movabs r10, 0x93b5969b18548370
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x14000b670]
add rsp, 0x38
ret
Function at 0x140008d38
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x1400100e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140008da0
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x22]
test eax, eax
je 0x140008d9e
mov ecx, dword [0x140010bb0]
and eax, 0x1f
bts ecx, eax
movzx eax, word [rdx]
lea rdx, [rdx + 2]
test eax, eax
jne 0x140008d87
mov dword [0x140010bb0], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001490
add rsp, 0xb8
ret

Function at 0x1400097b8
Capabilities:
Block operations on executable memory pages using arbitrary code guard
Terminate process

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
mov rbx, rcx
mov dword [rax - 0x18], 8
mov dword [rax - 0x14], 0x20
and dword [rax - 0x30], 0
movabs r10, 0xbb5017911ed12170
lea rcx, [rax - 0x18]
mov rax, qword [0x14000f058]
call qword [0x14000b670]
and dword [rsp + 0x24], 0
mov dword [rsp + 0x24], 1
mov r8d, 4
lea rdx, [rsp + 0x24]
lea ecx, [r8 + 0xc]
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140006068
mov ebx, eax
mov dword [rsp + 0x28], eax
jmp 0x14000982c
call fcn.14000a41c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14000a330
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [0x1400110da], bl
jne 0x14000a3f3
cmp byte [0x140010dc4], bl
je 0x14000a3f3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14000a404
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x14000a3a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edi, edi
jmp 0x14000a3d0
movabs r10, 0x9351969e78d6d070
mov edx, 0x105
mov rcx, rdi
call qword [0x14000b670]
mov edi, eax
test eax, eax
jne 0x14000a3d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000a404
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400017e1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000210a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000210a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000210a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000210a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000210a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000210c
xor al, al
add rsp, 0x28
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], 0x80
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 [0x140005250]
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 [0x140005250]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140005250]
lea rax, [rax + rcx + 0x6d6]
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [0x140005248]
mov rcx, qword [0x140005250]
rep movsb byte [rdi], byte [rsi]
lea rax, [0x140004a40]
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], 0x80
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0xff
mov byte [rsp + 0x6b], 0xe0
mov rax, qword [0x140005250]
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 [0x140005250]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140005250]
lea rax, [rax + rcx + 0xa3b]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x38]
mov rsi, qword [0x140005248]
mov rcx, qword [0x140005250]
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], 0x80
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 [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov r8, qword [rax]
mov edx, 0x110000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jge 0x140001d3d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov eax, dword [rsp + 0x80]
jmp 0x140001dd1
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x10], 0
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov byte [rsp + 0x84], al
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
movzx eax, byte [rsp + 0x84]
test eax, eax
je 0x140001dca
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jl 0x140001dca
mov eax, dword [rsp + 0x80]
jmp 0x140001dd1
mov eax, dword [rsp + 0x80]
add rsp, 0xe8
ret
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 sub.ntoskrnl.exe_ZwQuerySystemInformation
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 sub.ntoskrnl.exe_ZwQuerySystemInformation
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 sub.ntoskrnl.exe_strstr
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