joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001eb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001efa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001efa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001efa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001efa
cmp dword [rcx + 0x84], 0xe
jbe 0x140001efa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001efc
xor al, al
add rsp, 0x28
ret
Function at 0x140001470
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov r10d, dword [0x140005004]
test r10d, r10d
je 0x14000155b
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
mov edx, dword [rax + rcx + 0x18]
lea r8, [rax + 2]
lea r9, [0x140005004]
jmp 0x1400014cd
xor r10d, r10d
sub rdx, 1
jb 0x14000155b
test r10d, r10d
je 0x1400014c0
mov r11d, dword [rax + rcx + 0x20]
add r11, rax
mov esi, dword [r11 + rdx*4]
add rsi, r8
mov edi, r10d
mov r11, r9
nop word [rax + rax]
mov r14d, 0x811c9dc5
mov rbx, rsi
nop dword [rax]
mov ebp, r14d
movsx r15d, byte [rbx]
inc rbx
xor r14d, r15d
imul r14d, r14d, 0x1000193
test r15d, r15d
jne 0x140001500
cmp ebp, edi
je 0x140001530
mov edi, dword [r11 + 4]
add r11, 4
test edi, edi
jne 0x1400014f0
jmp 0x1400014c3
mov r10d, dword [rax + rcx + 0x1c]
mov esi, dword [rax + rcx + 0x24]
add r10, rax
add rsi, rax
movzx esi, word [rsi + rdx*2]
mov r10d, dword [r10 + rsi*4]
mov r10d, dword [rax + r10 + 4]
mov dword [r11], r10d
mov r10d, dword [0x140005004]
jmp 0x1400014c3
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140001580
Capabilities:
Get hostname

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov esi, r9d
mov rdi, r8
mov r14, rcx
mov eax, dword [rsp + 0x1a0]
mov qword [rsp + 0x30], rdx
imul rax, rax, 0xffffffffff676980
mov qword [rsp + 0x48], rax
mov eax, dword [0x140005004]
lea rdx, [rsp + 0x48]
mov r10b, 1
sub rsp, 0x28
syscall
add rsp, 0x28
test eax, eax
js 0x14000165e
mov qword [rsp + 0x28], 0
mov eax, dword [0x140005008]
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov r10, 0xffffffffffffffff
xor r8d, r8d
sub rsp, 0x40
mov qword [rsp + 0x28], 0x3000
mov qword [rsp + 0x30], 0x40
syscall
add rsp, 0x40
test eax, eax
js 0x140001660
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140001660
mov qword [rsp + 0x40], 0
mov eax, dword [0x14000500c]
mov r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r10, 0xffffffffffffffff
mov r8, r14
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
syscall
add rsp, 0x30
test eax, eax
js 0x14000165e
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x30]
jae 0x140001670
xor ebx, ebx
mov rax, rbx
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x3c], 0x100
xorps xmm0, xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x3c]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
cmp qword [rsp + 0x30], 0
je 0x140001756
xor ecx, ecx
jmp 0x14000173f
mov rax, rcx
xor edx, edx
div r8
movzx eax, byte [rsp + rdx + 0x50]
mov rdx, qword [rsp + 0x28]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, qword [rsp + 0x30]
jae 0x140001756
mov r8d, dword [rsp + 0x3c]
mov rax, rcx
shr rax, 0x20
jne 0x140001720
mov eax, ecx
xor edx, edx
div r8d
jmp 0x140001728
mov eax, dword [0x140005010]
mov rcx, qword [rsp + 0x28]
lea r11, [0x140001570]
xor ebx, ebx
mov r10, rdi
mov edx, 0x1fffff
xor r8d, r8d
mov r9, 0xffffffffffffffff
sub rsp, 0x60
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
syscall
add rsp, 0x60
test eax, eax
js 0x140001660
mov r10, qword [rdi]
test r10, r10
je 0x14000165e
test esi, esi
je 0x1400017ea
mov eax, dword [0x140005014]
mov dl, 1
xor r8d, r8d
sub rsp, 0x28
syscall
add rsp, 0x28
mov rbx, qword [rsp + 0x28]
jmp 0x140001660
Function at 0x140001800
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001898
call fcn.140001ac0
cmp byte [rax + 2], 0
jne 0x140001898
test byte [rax + 0xbc], 0x70
jne 0x140001898
call fcn.140002080
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x140006508]
mov edx, dword [rax]
mov rax, qword [0x140006510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x140006500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.140002a70
nop
add rsp, 0x20
pop rbp
jmp 0x140001800

Function at 0x1400018a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001898
call fcn.140001ac0
cmp byte [rax + 2], 0
jne 0x140001898
test byte [rax + 0xbc], 0x70
jne 0x140001898
call fcn.140002080
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x140006508]
mov edx, dword [rax]
mov rax, qword [0x140006510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x140006500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.140002a70
nop
add rsp, 0x20
pop rbp
jmp 0x140001800

Function at 0x140001ad0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x1400025d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14000263a
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000263a
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + r13 + 6]
test ax, ax
je 0x1400026dd
movsxd rcx, dword [rdi + 0x3c]
lea rbp, [rcx + rdi]
add rbp, 0x110
xor ebx, ebx
jmp 0x140002675
movzx eax, word [rdi + r13 + 6]
inc rbx
movzx ecx, ax
add rbp, 0x28
cmp rbx, rcx
jae 0x1400026dd
cmp dword [rbp + 0x1c], 0
js 0x140002666
mov r14d, dword [rbp]
mov r15d, dword [rbp + 4]
lea r12, [rdi + r15]
add r15, rsi
mov rcx, r12
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140002660
mov rcx, r15
mov rdx, r14
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002660
mov rcx, r15
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, r15
mov rdx, r14
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x140002660
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x140002934
mov r14, rdx
mov rbx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov r15d, dword [rcx + rbx + 0x88]
mov r13d, dword [r15 + rbx + 0x1c]
add r13, rbx
mov rax, rdx
shr rax, 0x10
test ax, ax
je 0x1400027f4
mov ebp, dword [rbx + r15 + 0x18]
test ebp, ebp
je 0x140002934
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
mov r12d, dword [rbx + r15 + 0x20]
mov esi, dword [rbx + r15 + 0x24]
add r12, rbx
add rsi, rbx
xor edi, edi
nop dword [rax + rax]
mov ecx, dword [r12]
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000280a
add r12, 4
add rsi, 2
dec ebp
jne 0x1400027d0
jmp 0x14000293b
movzx eax, r14w
mov ecx, dword [rbx + r15 + 0x10]
sub rax, rcx
mov edi, dword [r13 + rax*4]
jmp 0x140002938
movzx eax, word [rsi]
mov edi, dword [r13 + rax*4]
cmp r15d, edi
ja 0x140002938
mov rax, qword [rsp + 0x38]
add r15d, dword [rbx + rax + 0x8c]
cmp edi, r15d
jae 0x140002938
add rdi, rbx
mov rcx, rdi
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov rbx, rax
inc rbx
mov rsi, rbx
sub rsi, rdi
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140002934
mov r14, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, rdi
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov dword [r14 + rsi*2], 0x6c0064
mov word [r14 + rsi*2 + 4], 0x6c
lea rdx, [0x140006002]
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400028c2
lea rdx, str.ext_
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140002910
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.140001af0
test rax, rax
je 0x140002910
mov rsi, rax
mov rcx, r14
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140002934
mov r14, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.140002760
mov rdi, rax
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000293b
xor edi, edi
jmp 0x14000293b
add rdi, rbx
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002c80
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 fcn.140003ad0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003ad0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140002cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090b4]
mov rbx, rcx
test esi, esi
jle 0x140002e20
mov rax, qword [0x1400090b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002dc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d20
mov rcx, rbx
call fcn.140003740
mov rdi, rax
test rax, rax
je 0x140002e42
mov rax, qword [0x1400090b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003880
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dd0
add dword [0x1400090b4], 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 [0x1400090b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c80
nop dword [rax]
xor esi, esi
jmp 0x140002d48
mov rax, qword [0x1400090b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009100]
test rbx, rbx
je 0x14000340c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003403
test rsi, rsi
je 0x140003403
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033e8
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 0x140003740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400063b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003760
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037bd
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 0x1400037b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003760
add rax, 0x28
cmp rax, r9
jne 0x1400037a0
xor eax, eax
ret

Function at 0x1400037c0
Capabilities:
Parse pe header

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

Function at 0x140003880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400063b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000389f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400030f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
cmp byte [rcx + 0x50], 0
je 0x140003177
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140003294
test dword [rcx + 0x1c], 0x80000
je 0x140003294
cmp byte [rcx + 0x19], 4
jb 0x140003294
add rsi, 8
cmp qword [rsi + 0x18], 8
jb 0x140003144
mov rsi, qword [rsi]
mov edx, 0xd
mov qword [rsp + 0x20], rsi
lea r9, [0x14002497c]
lea r8, [0x1400249e8]
mov rcx, qword [rcx + 0x10]
call fcn.140001c80
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x1400031c8
test dword [rcx + 0x1c], 0x80000
je 0x1400031c8
cmp byte [rcx + 0x19], 4
jb 0x1400031c8
lea rax, [rsi + 8]
cmp qword [rax + 0x18], 8
jb 0x1400031a7
mov rax, qword [rax]
mov edx, 0xe
mov qword [rsp + 0x20], rax
lea r9, [0x14002497c]
lea r8, [0x1400249e8]
mov rcx, qword [rcx + 0x10]
call fcn.140001c80
mov ecx, 0x20
call fcn.140010f60
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140003243
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_std::thread_.0
mov qword [rdi], rax
mov ecx, 8
call fcn.140010f60
test rax, rax
je 0x14000320f
mov qword [rax], rsi
mov qword [rsp + 0x38], rax
lea rbx, [rdi + 0x18]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400027a0]
xor edx, edx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400032a6
jmp 0x140003245
xor edi, edi
lea rax, [rdi + 0x10]
mov qword [rsi + 0x40], rax
mov rbx, qword [rsi + 0x48]
mov qword [rsi + 0x48], rdi
test rbx, rbx
je 0x140003294
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140003294
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400234b0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140003294
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400234b0]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call fcn.14000fb04
int3
Function at 0x140004740
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140037038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14002d310]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov ebx, eax
test eax, eax
je 0x1400047d4
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x1400047cd
test dword [rcx + 0x1c], 0x80000
je 0x1400047cd
cmp byte [rcx + 0x19], 2
jb 0x1400047cd
mov edx, 0x21
mov dword [rsp + 0x20], ebx
lea r9, [0x14002497c]
lea r8, [0x140024b30]
mov rcx, qword [rcx + 0x10]
call fcn.140002720
mov eax, ebx
jmp 0x14000491b
mov rdx, qword [rsp + 0x40]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400047e3
lea rbx, [rbp + 0x40]
mov rcx, rbx
call fcn.1400025e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140004852
test dword [rcx + 0x1c], 0x80000
je 0x140004852
cmp byte [rcx + 0x19], 4
jb 0x140004852
cmp qword [rbx + 0x18], 8
jb 0x140004831
mov rbx, qword [rbx]
mov edx, 0x22
mov qword [rsp + 0x20], rbx
lea r9, [0x14002497c]
lea r8, [0x140024b30]
mov rcx, qword [rcx + 0x10]
call fcn.140001c80
mov ecx, 0x20
call fcn.140010f60
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400048cd
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_std::thread_.0
mov qword [rdi], rax
mov ecx, 8
call fcn.140010f60
test rax, rax
je 0x140004899
mov qword [rax], rbp
mov qword [rsp + 0x38], rax
lea rbx, [rdi + 0x18]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400041d0]
xor edx, edx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14000493d
jmp 0x1400048cf
xor edi, edi
lea rax, [rdi + 0x10]
mov qword [rbp + 0x28], rax
mov rbx, qword [rbp + 0x30]
mov qword [rbp + 0x30], rdi
test rbx, rbx
je 0x140004919
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140004919
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400234b0]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140004919
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400234b0]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140011030
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call fcn.14000fb04
int3
Function at 0x140006020
Capabilities:
Create service

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x298
mov rax, qword [0x140037038]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r15, qword [rsp + 0x2f0]
mov ebp, r8d
mov r12, qword [rsp + 0x2f8]
mov rsi, rdx
mov rdi, rcx
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
mov r14, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140006108
xor edx, edx
mov qword [rsp + 0x290], rbx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140006100
mov qword [rsp + 0x60], r12
xor eax, eax
mov qword [rsp + 0x58], r15
mov r9d, 4
mov qword [rsp + 0x50], r14
mov r8, rsi
mov qword [rsp + 0x48], rax
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov rcx, rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140006100
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140011030
add rsp, 0x298
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006130
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140037038]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rbx, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x38], eax
xor ecx, ecx
lea r8d, [rax + 1]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000620b
mov r8d, 0x10024
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140006202
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400061eb
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400061eb
cmp dword [rsp + 0x24], 3
jne 0x1400061eb
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400061c7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
jmp 0x140006205
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140011030
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400025c4
Capabilities:
Parse pe header

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