joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007850
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rdi, rcx
xor esi, esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, str.UnLoad_Driver
lea rcx, [rsp + 0x50]
call fcn.140001820
mov rbx, rax
lea rdx, [0x1400177ec]
lea rcx, [rsp + 0x70]
call fcn.140001820
nop
mov rdx, rbx
mov rcx, rax
call fcn.140004750
lea rdx, [0x14001d138]
lea rcx, [rsp + 0x50]
call fcn.140001960
mov rdx, rax
mov rcx, rdi
call fcn.14000bad0
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400078d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [0x14001d168]
sub rax, rcx
cmp rax, 1
jb 0x140007a05
lea r9, [0x14001d158]
cmp qword [0x14001d170], 7
cmova r9, qword [0x14001d158]
mov qword [rsp + 0x30], 1
lea rax, [0x1400175dc]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call fcn.14000b300
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14000a1a0
cmp qword [rax + 0x18], 7
jbe 0x140007944
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140007995
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007990
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c49c
movdqa xmm0, xmmword [0x140019110]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400079f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400079eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400079eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c49c
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400012a0
int3
Function at 0x140007dd0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.14000d290
sub rsp, rax
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov rdi, r9
mov rsi, qword [0x14001db48]
test rsi, rsi
je 0x140007f31
mov qword [rsp + 0x70], 0x33
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rsi
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], 0x1000
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0x28
lea r8, [rsp + 0x70]
mov edx, 0x80862007
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140007e93
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
lea rdx, str.Cant_read_module_headers
lea rcx, [rsp + 0x48]
call fcn.140001820
mov rbx, rax
lea rcx, [rsp + 0x70]
jmp 0x140007f19
movsxd rax, dword [rbp - 0x24]
lea rcx, [rbp - 0x60]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
add r9, rax
movzx r8d, word [rcx + 6]
cmp bx, r8w
jae 0x140007ef6
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*4]
lea rdx, [r9 + rcx*8]
cmp dword [rdx], 0x45474150
jne 0x140007eef
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140007ee0
cmp rax, 4
je 0x140007f55
inc ebx
cmp ebx, r8d
jb 0x140007ec0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rdx, str.Cant_find_section
lea rcx, [rsp + 0x70]
call fcn.140001820
mov rbx, rax
lea rcx, [rsp + 0x48]
lea rdx, [0x1400175a4]
call fcn.140001820
nop
mov rdx, rbx
mov rcx, rax
call fcn.140004750
xor eax, eax
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.14000c200
mov rbx, qword [rsp + 0x10d8]
add rsp, 0x10b0
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140007ef6
mov ecx, dword [rdx + 8]
lea rax, [rbp + rax - 0x60]
test rax, rax
je 0x140007ef6
test ecx, ecx
je 0x140007ef6
test rdi, rdi
je 0x140007f74
mov dword [rdi], ecx
lea rcx, [rbp - 0x60]
sub rax, rcx
add rax, rsi
jmp 0x140007f33
Function at 0x14000bf40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
mov qword [rsp + 0x78], rcx
xor ebp, ebp
mov dword [rsp + 0x70], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14000c042
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, str.NtQuerySystemInformation___Error_
lea rcx, [rsp + 0x30]
call fcn.140001820
mov rbx, rax
lea rcx, [rsp + 0x50]
lea rdx, [0x1400175a4]
call fcn.140001820
nop
mov rdx, rbx
mov rcx, rax
call fcn.140004750
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000c008
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14000c003
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c199
mov rcx, r8
call fcn.14000c49c
xor eax, eax
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c200
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov edx, dword [rsp + 0x70]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14000c08a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.Memory_Allocate_failed_
lea rcx, [rsp + 0x50]
call fcn.140001820
mov rbx, rax
lea rcx, [rsp + 0x30]
jmp 0x14000bfb5
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14000c0df
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.NtQuerySystemInformation___Error_
lea rcx, [rsp + 0x50]
call fcn.140001820
mov rbx, rax
lea rcx, [rsp + 0x30]
jmp 0x14000bfb5
mov r9d, ebp
mov r10d, dword [rbx]
test r10d, r10d
je 0x14000c12f
mov r11, qword [rdi + 0x18]
nop
movsxd rax, r9d
imul rsi, rax, 0x128
mov r8, rdi
cmp r11, 0xf
jbe 0x14000c106
mov r8, qword [rdi]
lea rax, [rbx + 0x30]
add rax, rsi
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000c123
inc rax
test ecx, ecx
jne 0x14000c110
test edx, edx
je 0x14000c145
inc r9d
cmp r9d, r10d
jb 0x14000c0f0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000bfce
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsi + rbx + 0x18]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000c191
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000c18c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c199
mov rcx, r8
call fcn.14000c49c
mov rax, rbx
jmp 0x14000c00a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000ce68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ceb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ceb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ceb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ceb2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ceb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ceb4
xor al, al
add rsp, 0x28
ret
Function at 0x1800b0330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp + 4], 0
jmp 0x1800b0390
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 4], eax
jae 0x1800b045f
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 4]
movzx eax, word [rax + rcx*2]
mov word [rsp], ax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 4]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov dword [rsp + 8], 0
jmp 0x1800b03ff
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x18]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x48]
movsx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x1800b045a
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x18]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1800b0458
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
jmp 0x1800b0461
jmp 0x1800b03f5
jmp 0x1800b0386
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800bd650
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
jmp 0x1800bd695
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
add rax, 0x20
cmp qword [rsp + 0x20], rax
je 0x1800bd6fd
mov rax, qword [rsp + 0x20]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x58]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x60], 0
je 0x1800bd6f0
xor r8d, r8d
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
call fcn.1800171e0
movzx eax, al
test eax, eax
je 0x1800bd6fb
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
jmp 0x1800bd6ff
jmp 0x1800bd688
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800bd9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movss dword [rsp + 0x20], xmm3
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
movss xmm0, dword [rax]
subss xmm0, dword [rcx]
movss dword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
movss xmm0, dword [rax + 4]
subss xmm0, dword [rcx + 4]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
movss xmm0, dword [rax + 8]
subss xmm0, dword [rcx + 8]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x30]
mulss xmm0, dword [rsp + 0x30]
movss xmm1, dword [rsp + 0x2c]
mulss xmm1, dword [rsp + 0x2c]
addss xmm0, xmm1
movss xmm1, dword [rsp + 0x28]
mulss xmm1, dword [rsp + 0x28]
addss xmm0, xmm1
movss dword [rsp + 0x24], xmm0
movss xmm0, dword [rsp + 0x24]
ucomiss xmm0, dword [0x1800f7004]
jp 0x1800bdaa3
je 0x1800bdad8
movss xmm0, dword [rsp + 0x88]
comiss xmm0, dword [0x1800f7004]
jb 0x1800bdace
movss xmm0, dword [rsp + 0x88]
mulss xmm0, dword [rsp + 0x88]
comiss xmm0, dword [rsp + 0x24]
jae 0x1800bdad8
mov dword [rsp + 0x38], 0
jmp 0x1800bdae0
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x70]
call fcn.180017de0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1800bdb16
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp 0x1800bdbca
cvtss2sd xmm0, dword [rsp + 0x24]
cvtsd2ss xmm0, xmm0
call fcn.1800f5820
movss dword [rsp + 0x34], xmm0
movss xmm0, dword [rsp + 0x28]
divss xmm0, dword [rsp + 0x34]
mulss xmm0, dword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
movss xmm1, dword [rax + 8]
addss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x2c]
divss xmm1, dword [rsp + 0x34]
mulss xmm1, dword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
movss xmm2, dword [rax + 4]
addss xmm2, xmm1
movaps xmm1, xmm2
movss xmm2, dword [rsp + 0x30]
divss xmm2, dword [rsp + 0x34]
mulss xmm2, dword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
movss xmm3, dword [rax]
addss xmm3, xmm2
movaps xmm2, xmm3
movss dword [rsp + 0x3c], xmm2
movaps xmm3, xmm0
movaps xmm2, xmm1
movss xmm0, dword [rsp + 0x3c]
movaps xmm1, xmm0
lea rcx, [rsp + 0x40]
call fcn.180017d90
mov rdi, qword [rsp + 0x70]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1800dafa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x1800dafb8
xor eax, eax
jmp 0x1800db08c
lea rax, [rsp + 0x20]
mov qword [rsp + 0x10], rax
mov dword [rsp], 2
mov rax, qword [rsp + 0x40]
add rax, 0x18
cmp rax, 0x400000
jbe 0x1800db002
mov rax, qword [rsp + 0x40]
add rax, 0x20
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800db002
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x18], rax
jmp 0x1800db00b
mov qword [rsp + 0x18], 0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x10]
add rax, 4
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 4]
shl eax, 0xe
mov ecx, dword [rsp + 8]
shr ecx, 0x12
or eax, ecx
sub eax, 0x46abab5d
shl eax, 0x19
mov ecx, dword [rsp + 4]
shl ecx, 0xe
mov edx, dword [rsp + 8]
shr edx, 0x12
or ecx, edx
sub ecx, 0x46abab5d
shr ecx, 7
or eax, ecx
xor eax, 0x58b8f929
mov rcx, qword [rsp + 0x10]
mov dword [rcx - 4], eax
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x1800db015
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140043140]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140043150]
mov dword [rax], 1
mov rax, qword [0x140043160]
mov dword [rax], 1
mov rax, qword [0x140043130]
mov dword [rax], 1
mov rax, qword [0x140042fe0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140043120]
mov dword [0x14004600c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400430e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400430c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140042f70]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140001be1
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push rbp
push rdi
mov eax, 0x1158
call fcn.140002ed0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10f0], rcx
mov dword [rbp + 0x10f8], edx
lea rdx, [rbp + 0xac]
lea rax, [rbp + 0xb0]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.EnumProcesses
test eax, eax
jne 0x140001c48
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str._Error__Was_not_able_to_enumerate_all_processes._Error:__lu_n
call sym.printf_1
mov eax, 0xffffffff
jmp 0x140001e10
mov eax, dword [rbp + 0xac]
shr eax, 2
mov dword [rbp + 0x10c4], eax
mov dword [rbp + 0x10cc], 0
mov dword [rbp + 0x10c8], 0
jmp 0x140001df8
mov eax, dword [rbp + 0x10c8]
mov eax, dword [rbp + rax*4 + 0xb0]
test eax, eax
je 0x140001df1
mov eax, dword [rbp + 0x10c8]
mov eax, dword [rbp + rax*4 + 0xb0]
mov dword [rbp + 0x10c0], eax
mov eax, dword [rbp + 0x10c0]
mov r8d, eax
mov edx, 0
mov ecx, 0x410
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x10b8], rax
cmp qword [rbp + 0x10b8], 0
je 0x140001dc6
movabs rax, 0x6e776f6e6b6e753c
mov edx, 0x3e
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x1e
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x10b8]
mov r8d, 0x104
mov rcx, rax
call sym.GetProcessImageFileNameA
test eax, eax
jne 0x140001d4a
cmp dword [rbp + 0x10f8], 2
jne 0x140001d4a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov eax, dword [rbp + 0x10c0]
mov r8d, edx
mov edx, eax
lea rcx, str._Error__Was_not_able_to_get_Process_Image_File_Name.Process_ID:__lu._Error__lu_n
call sym.printf_1
jmp 0x140001df1
mov eax, dword [rbp + 0x10cc]
movsxd rdx, eax
mov rax, rdx
shl rax, 5
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10f0]
add rdx, rax
mov eax, dword [rbp + 0x10c0]
mov dword [rdx], eax
mov eax, dword [rbp + 0x10cc]
movsxd rdx, eax
mov rax, rdx
shl rax, 5
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10f0]
add rax, rdx
lea rcx, [rax + 4]
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.strcpy
add dword [rbp + 0x10cc], 1
mov rax, qword [rbp + 0x10b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001df1
cmp dword [rbp + 0x10f8], 2
jne 0x140001df1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov eax, dword [rbp + 0x10c0]
mov r8d, edx
mov edx, eax
lea rcx, str._Error__Was_not_able_to_open_process_to_query_information__Process_ID:__lu._Error__lu_n
call sym.printf_1
add dword [rbp + 0x10c8], 1
mov eax, dword [rbp + 0x10c8]
cmp eax, dword [rbp + 0x10c4]
jb 0x140001c70
mov eax, dword [rbp + 0x10cc]
add rsp, 0x1158
pop rdi
pop rbp
ret
Function at 0x140002100
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140002170
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400460a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140002320
mov rax, qword [0x1400460a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400021bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002247
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400021a0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000237d
mov rax, qword [0x1400460a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400460a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002362
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002240
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400022d0
add dword [0x1400460a4], 1
cmp ebx, 8
jae 0x140002278
test bl, 4
jne 0x140002330
test ebx, ebx
je 0x140002269
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002350
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140002269
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400022aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400460a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002240
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1400021c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140002269
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140002269
mov rax, qword [0x1400460a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]