joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400163c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
test rdx, rdx
je 0x140016549
xor ebx, ebx
mov esi, ebx
cmp bx, word [rdx]
je 0x14001651a
mov qword [rbp + 0x218], rbx
mov qword [rsp + 0x58], rbx
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_07a4580a2d41a7635afdf5f0258b0c87___void___.0
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x220], rax
mov qword [rbp - 0x58], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140016486
lea rax, [rsp + 0x20]
cmp rcx, rax
jne 0x14001647d
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 8]
mov qword [rbp - 0x58], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140016486
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140016481
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400164a6
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x58], rbx
xor edx, edx
lea ecx, [rdx + 2]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot
mov r14, rax
mov qword [rbp + 0x218], rax
cmp rax, 0xffffffffffffffff
je 0x14001650e
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x4c]
call fcn.140017ce0
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, r14
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW
test eax, eax
je 0x14001650e
mov rdx, rdi
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x14001650b
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp + 0x218]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW
jmp 0x1400164e4
mov esi, dword [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.140016150
jmp 0x14001651f
mov ebx, 0x80070057
test ebx, ebx
jne 0x140016545
test esi, esi
je 0x140016545
mov r8d, esi
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
test rax, rax
je 0x140016545
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov eax, ebx
jmp 0x14001654e
mov eax, 0x80004005
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140023f04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140023d00
Function at 0x140002bd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
lea ecx, [rsi + 0x28]
call fcn.140006740
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rdx, rdi
mov rcx, rax
call fcn.140004d80
lea rax, [0x1400020e0]
mov qword [rbx + 0x20], rax
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140006550]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002cfc
cmp dword [rsp + 0x48], esi
je 0x140002cf0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140002cf0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140002cbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002cb6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002ce9
mov rcx, r8
call fcn.1400069c4
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006720
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140006600
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000663a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000663f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140006688
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008470]
cmp byte [rcx + rax], 0
je 0x140006688
dec r8
sub rdx, 1
jne 0x14000666e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400071f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007242
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007242
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007242
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007242
cmp dword [rcx + 0x84], 0xe
jbe 0x140007242
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007244
xor al, al
add rsp, 0x28
ret
Function at 0x140024740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor r10d, r10d
test rdx, rdx
setg al
jle 0x14002498a
test r9, r9
jle 0x14002498a
lea rax, [r9 - 1]
mov qword [rsp + 0x18], rax
lea rax, [rcx + 1]
mov qword [rsp + 0x10], rax
xor edi, edi
lea r11, [0x1402d7bd0]
lea rbx, [0x1402d7cd0]
lea r15, [0x1402d7cf0]
xor r10d, r10d
mov qword [rsp + 8], r9
mov qword [rsp], r8
nop dword [rax]
movzx ebp, byte [rcx + rdi]
test bpl, bpl
js 0x1400247c0
mov r13d, 1
jmp 0x140024950
movsx r13, byte [rbp + r11]
mov rax, rbp
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x1400248d8
mov r11, rdx
sub r11, rdi
cmp r11, 2
mov eax, 1
cmovl r11, rax
dec r11
cmp r13, 3
mov esi, 2
cmovge rsi, r13
lea rax, [rsi - 2]
cmp r11, rax
jbe 0x1400249a5
lea r8, [rsi - 1]
test rax, rax
mov qword [rsp + 0x20], r8
je 0x14002496e
mov rax, qword [rsp + 0x10]
lea rbx, [rax + rdi]
mov rax, r8
and rax, 0xfffffffffffffffe
neg rax
mov r15d, 1
xor r12d, r12d
mov r14d, ebp
nop word [rax + rax]
movzx r11d, byte [rbx + r15 - 1]
mov r8d, r11d
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r8b, r12b
movzx r9d, byte [rbx + r15]
mov r12d, r9d
and r12b, 0xc0
cmp r12b, 0x80
setne r12b
or r12b, r8b
shl r14d, 0xc
shl r11d, 6
add r14d, r9d
add r14d, r11d
lea r8, [rax + r15]
add r8, 2
add r15, 2
cmp r8, 1
jne 0x140024840
test byte [rsp + 0x20], 1
je 0x1400248b8
lea rax, [rcx + rdi]
movzx eax, byte [rax + r15]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r12b, r8b
shl r14d, 6
add r14d, eax
mov r9, qword [rsp + 8]
mov r8, qword [rsp]
lea r11, [0x1402d7bd0]
lea rbx, [0x1402d7cd0]
lea r15, [0x1402d7cf0]
jmp 0x1400248e3
mov esi, 1
xor r12d, r12d
mov r14d, ebp
xor eax, eax
cmp rsi, r13
jne 0x140024994
test r12b, 1
jne 0x140024994
sub r14d, dword [rbx + r13*4]
cmp r14d, 0x10ffff
ja 0x140024994
cmp dword [r15 + r13*4], r14d
ja 0x1400249a5
cmp bpl, 0xf0
jb 0x14002494d
cmp r10, qword [rsp + 0x18]
je 0x1400249a5
mov eax, r14d
shr eax, 0xa
add eax, 0xffffd7c0
mov word [r8 + r10*2], ax
and r14d, 0x3ff
or r14d, 0xdc00
mov word [r8 + r10*2 + 2], r14w
inc r10
jmp 0x140024955
mov ebp, r14d
mov word [r8 + r10*2], bp
add rdi, r13
inc r10
cmp rdi, rdx
setl al
jge 0x14002498a
cmp r10, r9
jl 0x1400247a0
jmp 0x14002498a
mov r15d, 1
xor r12d, r12d
mov r14d, ebp
test byte [rsp + 0x20], 1
jne 0x140024896
jmp 0x1400248b8
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140024994

Function at 0x1400f26d0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14027b01c
cdqe
add rsp, 0x28
ret
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
jmp 0x140024f50
Function at 0x1400f57d0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x18
call fcn.140266260
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x1400f5870]
xor esi, esi
xor ecx, ecx
mov edx, 0x100000
mov r9, rax
call fcn.140285490
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x1400f5841
call fcn.140278958
mov esi, dword [rax]
jmp 0x1400f584a
mov rcx, rax
call qword [0x14029a1d0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401011b0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [rdx + 0x18]
lea rcx, [rsp + 0x50]
mov edx, 8
xor r8d, r8d
call fcn.140154f10
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140101560
mov r15, rax
mov eax, dword [0x1403a6ee0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x30]
mov rcx, r14
mov rdx, r15
mov r9d, ebx
call fcn.1401c4f50
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.140166b20
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400f9980
mov rbx, rax
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
mov edx, 0x92
xor r9d, r9d
call fcn.140170720
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1401017a0
mov rdi, rax
mov rax, qword [rax]
mov rcx, qword [rdi + 8]
mov rdx, qword [rcx + 7]
mov rcx, rdi
call qword [rax + 0x308]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
shl r8, 3
mov rcx, rax
call fcn.1402689f0
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
xor r9d, r9d
call fcn.14017e340
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401896a0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rcx], rdx
mov rax, qword [rdx + 0x18]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r8
lea rdi, [rcx + 0x18]
mov rcx, qword [rdx + 0x18]
xorps xmm0, xmm0
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x28], 0
mov qword [rsi + 0x30], rcx
mov qword [rsi + 0x20], 2
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
sub rdx, rax
cmp rdx, 0x10
jge 0x14018970a
mov edx, 0x10
call fcn.1401d09d0
jmp 0x140189716
lea rdx, [rax + 0x10]
mov qword [rcx], rdx
add qword [rcx + 0x10], 0x10
mov qword [rsi + 0x28], rax
lea rcx, [rsp + 0x20]
mov edx, 2
xor r8d, r8d
call fcn.140154f10
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rsp + 0x20]
call fcn.140101540
mov qword [rsi + 0x38], rax
mov rax, qword [rbx + 0x18]
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], 0
mov qword [rsi + 0x58], rax
mov eax, dword [0x1403a6ee0]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
mov rax, qword [rbx + 8]
mov rax, qword [rax + 0x18]
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x70], 0
mov qword [rsi + 0x78], rax
mov rax, qword [rbx + 8]
mov rax, qword [rax + 0x18]
movups xmmword [rsi + 0x80], xmm0
mov qword [rsi + 0x90], 0
mov qword [rsi + 0x98], rax
mov rax, qword [rbx + 8]
mov rax, qword [rax + 0x18]
movups xmmword [rsi + 0xa0], xmm0
mov qword [rsi + 0xb0], 0
mov qword [rsi + 0xb8], rax
mov rax, qword [rbx + 8]
mov rax, qword [rax + 0x18]
movups xmmword [rsi + 0xc0], xmm0
mov qword [rsi + 0xd0], 0
mov qword [rsi + 0xd8], rax
mov rax, qword [rbx + 8]
mov rax, qword [rax + 0x18]
movups xmmword [rsi + 0xe0], xmm0
mov qword [rsi + 0xf0], 0
mov qword [rsi + 0xf8], rax
movups xmmword [rsi + 0x100], xmm0
mov edx, 2
mov rcx, rdi
call fcn.1401015f0
mov rdi, qword [0x14039dc60]
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x18]
call fcn.140130c40
mov qword [rax + 8], rdi
mov qword [rax], 0
mov rcx, qword [rsi + 0x28]
mov qword [rcx], rax
mov rdi, qword [0x14039dc60]
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x18]
call fcn.140130c40
mov qword [rax + 8], rdi
mov qword [rax], 0
mov rcx, qword [rsi + 0x28]
mov qword [rcx + 8], rax
mov rcx, qword [rsi + 0x38]
mov rdx, qword [0x1403a2b48]
xor r8d, r8d
call fcn.1401551a0
mov rcx, qword [rsi + 0x38]
mov rdx, qword [0x1403a2b48]
xor r8d, r8d
call fcn.1401551a0
mov qword [rsi + 0x100], 2
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140195f90
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x18
call fcn.140266260
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x140195ec0]
xor esi, esi
xor ecx, ecx
mov edx, 0x100000
mov r9, rax
call fcn.140285490
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x140196001
call fcn.140278958
mov esi, dword [rax]
jmp 0x14019600a
mov rcx, rax
call qword [0x14029a1d0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14028b700
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14028b4f0

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001d40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140001db5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140001db5
nop dword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001dd1
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140001d90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140002d20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002d41
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002d6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002d70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002dc9
test ecx, ecx
jle 0x140002da9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002dc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002dc9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002df0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002e21
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002e38
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002e5b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002e5d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002e99
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002f2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002ed4
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002f0e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002f2e
cmp rbx, rax
ja 0x140002ee0
test rbx, rbx
je 0x140002f2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al