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

Disassembly:
mov r8, qword [0x14000fe50]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004180
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004188
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004180
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400041d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400041c7
test rcx, rcx
je 0x140004180
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400041b8
xor eax, eax
ret

Function at 0x1400041e0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000fe50]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400042d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400042e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400042d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400042d2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400042d2
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]
cmp rax, r9
mov r8, r9
jb 0x140004335
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004348
add rdx, 0x28
cmp rdx, r10
jne 0x140004320
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004357
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140004367
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000433e
test ecx, ecx
jg 0x140004350
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001350
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x14000139c
cmp rax, rbx
jne 0x14000138f
mov ebx, 1
mov esi, ebx
jmp 0x1400013a1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001374
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013b7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000141c
mov eax, dword [0x140003640]
test eax, eax
jne 0x140001416
mov dword [0x140003640], ebx
lea r15, [0x1400022d8]
lea rdi, [0x1400022c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001408
test eax, eax
jne 0x14000140c
cmp qword [rdi], 0
je 0x1400013fd
mov rax, qword [rdi]
mov rcx, qword [0x1400022a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013de
test eax, eax
je 0x14000141c
mov eax, 0xff
jmp 0x1400014f8
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001443
lea rdx, [0x1400022b8]
lea rcx, [0x1400022a8]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x140001450
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001484
lea rcx, [0x140003648]
call fcn.140001700
test eax, eax
je 0x140001484
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x1400022a0]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.1400011ec
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x1400014b4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x1400014c9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400014f8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call 0x140093000
add rsp, 0x28
jmp 0x140001350

Function at 0x1400015ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001638
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001630
cmp dword [rcx + 0x3c], edx
jl 0x140001630
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001630
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001638
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1401cd454
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401cd5a8

Function at 0x1401cd8e0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401d2c10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401d2c10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401cda30
cmp rax, 0xffffffffffffffff
je 0x1401cda30
xor edi, edi
test rbp, rbp
jle 0x1401cd9db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14016df40
mov rbx, rax
test rax, rax
jne 0x1401cd968
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401cd9d1
mov edx, 0x8000
mov ecx, r14d
call fcn.1401d3d28
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401d7ec4
cmp eax, 0xffffffff
je 0x1401cd9b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401cd978
mov edx, r15d
mov ecx, r14d
call fcn.1401d3d28
jmp 0x1401cd9d1
cmp byte [rsi + 0x38], dil
je 0x1401cd9c8
cmp dword [rsi + 0x34], 5
jne 0x1401cd9c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
cmp byte [rsi + 0x30], dil
je 0x1401cd9d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14016dea0
jmp 0x1401cda44
jns 0x1401cda44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401d2c10
cmp rax, 0xffffffffffffffff
jne 0x1401cd9fc
cmp byte [rsi + 0x30], dil
je 0x1401cda44
mov edi, dword [rsi + 0x2c]
jmp 0x1401cda44
mov ecx, r14d
call fcn.1401d169c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401cda44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohl
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
jmp 0x1401cda44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401cda3d
mov eax, dword [rsi + 0x2c]
jmp 0x1401cda42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401d2c10
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400014f0
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov edi, r9d
mov r14d, r9d
shr edi, 4
mov rax, r8
mov rbx, rdx
mov rsi, rcx
mov r15, rdx
cmp rdx, r8
je 0x14000152b
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call fcn.14003f030
mov rdx, qword [rsi + 0x140]
lea ecx, [r14 - 0x10]
add rbx, rcx
cmp byte [0x14007c241], 1
mov ecx, dword [rdx + 0xc]
jne 0x1400016d8
test ecx, ecx
je 0x14000165c
cmp ecx, 1
jne 0x140001754
cmp edi, ecx
jbe 0x1400015e5
lea ecx, [rdi - 1]
movdqu xmm1, xmmword [rbx]
movdqu xmm0, xmmword [rbx - 0x10]
pxor xmm1, xmmword [rsi + 0xa0]
aesdec xmm1, xmmword [rsi + 0xb0]
aesdec xmm1, xmmword [rsi + 0xc0]
aesdec xmm1, xmmword [rsi + 0xd0]
aesdec xmm1, xmmword [rsi + 0xe0]
aesdec xmm1, xmmword [rsi + 0xf0]
aesdec xmm1, xmmword [rsi + 0x100]
aesdec xmm1, xmmword [rsi + 0x110]
aesdec xmm1, xmmword [rsi + 0x120]
aesdec xmm1, xmmword [rsi + 0x130]
aesdeclast xmm1, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
add rbx, 0xfffffffffffffff0
sub rcx, 1
jne 0x140001565
mov rdx, qword [rsi + 0x140]
movdqu xmm1, xmmword [rbx]
mov rax, qword [rdx + 0x28]
pxor xmm1, xmmword [rsi + 0xa0]
aesdec xmm1, xmmword [rsi + 0xb0]
aesdec xmm1, xmmword [rsi + 0xc0]
aesdec xmm1, xmmword [rsi + 0xd0]
aesdec xmm1, xmmword [rsi + 0xe0]
aesdec xmm1, xmmword [rsi + 0xf0]
aesdec xmm1, xmmword [rsi + 0x100]
aesdec xmm1, xmmword [rsi + 0x110]
aesdec xmm1, xmmword [rsi + 0x120]
aesdec xmm1, xmmword [rsi + 0x130]
movdqu xmm0, xmmword [rax]
aesdeclast xmm1, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
jmp 0x140001754
test edi, edi
je 0x140001754
movdqu xmm0, xmmword [rbx]
pxor xmm0, xmmword [rsi + 0xa0]
aesdec xmm0, xmmword [rsi + 0xb0]
aesdec xmm0, xmmword [rsi + 0xc0]
aesdec xmm0, xmmword [rsi + 0xd0]
aesdec xmm0, xmmword [rsi + 0xe0]
aesdec xmm0, xmmword [rsi + 0xf0]
aesdec xmm0, xmmword [rsi + 0x100]
aesdec xmm0, xmmword [rsi + 0x110]
aesdec xmm0, xmmword [rsi + 0x120]
aesdec xmm0, xmmword [rsi + 0x130]
aesdeclast xmm0, xmmword [rsi]
movdqu xmmword [rbx], xmm0
sub rbx, 0x10
add edi, 0xffffffff
jne 0x140001664
jmp 0x140001754
test ecx, ecx
je 0x14000173c
cmp ecx, 1
jne 0x140001754
cmp edi, ecx
jbe 0x140001719
mov qword [rsp + 0x40], rbp
lea ebp, [rdi - 1]
nop dword [rax]
mov rdx, rbx
mov rcx, rsi
call fcn.140001c20
lea r8, [rbx - 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.140002190
add rbx, 0xfffffffffffffff0
sub rbp, 1
jne 0x1400016f0
mov rbp, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call fcn.140001c20
mov r8, qword [rsi + 0x140]
mov rdx, rbx
mov rcx, rsi
mov r8, qword [r8 + 0x28]
call fcn.140002190
jmp 0x140001754
test edi, edi
je 0x140001754
mov rdx, rbx
mov rcx, rsi
call fcn.140001c20
sub rbx, 0x10
add edi, 0xffffffff
jne 0x140001740
mov r8d, r14d
mov rdx, r15
mov rcx, rsi
call fcn.140001780
mov rsi, qword [rsp + 0x50]
mov ecx, eax
mov byte [rcx + rbx], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140009470
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x2b0
mov rax, qword [0x14007b658]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp dword [rsp + 0x310], 0
movzx edi, r9b
movzx ebp, r8b
movzx r12d, dl
mov rsi, rcx
je 0x1400095c2
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x234
call fcn.14003f490
mov ebx, dword [rsp + 0x308]
mov eax, 0x30
mov word [rsp + 0x50], ax
mov eax, 2
mov dword [rsp + 0x5c], eax
mov ecx, 0x34
mov qword [rsp + 0x68], rcx
test ebx, ebx
je 0x14000950a
cmp ebx, 0x200
jbe 0x1400094f6
xor eax, eax
jmp 0x1400096b3
mov word [rsp + 0x52], ax
lea ecx, [rbx + 0x34]
mov dword [rsp + 0x58], ebx
mov byte [rsp + 0x84], 0xcf
movzx eax, byte [rsp + 0x300]
mov byte [rsp + 0x79], al
mov byte [rsp + 0x78], dil
mov byte [rsp + 0x7d], r12b
mov byte [rsp + 0x7e], bpl
cmp bpl, 0xb0
jne 0x140009533
mov dword [rsp + 0x79], 0xc24f0101
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x50]
mov r9d, ecx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
mov edx, 0x4d02c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebp, eax
test eax, eax
je 0x1400096b1
test ebx, ebx
je 0x1400096b1
cmp dil, 0xd0
jne 0x14000958b
lea rcx, [rsi + 0x208]
jmp 0x1400095a7
cmp dil, 0xd1
jne 0x14000959a
lea rcx, [rsi + 0x408]
jmp 0x1400095a7
test dil, dil
jne 0x1400096b1
lea rcx, [rsi + 8]
mov r9d, 0x200
lea r8, [rsp + 0x84]
mov edx, r9d
call fcn.14000a0a0
jmp 0x1400096b1
xor ecx, ecx
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
mov r8d, 0x1000
mov r15d, dword [rsp + 0x308]
lea r9d, [rcx + 4]
lea ebx, [r15 + 0xc]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movzx ecx, byte [rsp + 0x300]
mov r9d, ebx
mov r14, rax
mov qword [rsp + 0x38], 0
mov r8, r14
mov edx, 0x4d004
mov byte [rax], dil
mov byte [rax + 1], cl
mov word [rax + 2], 0
mov byte [rax + 4], 0
mov byte [rax + 5], r12b
mov byte [rax + 6], bpl
mov byte [rax + 7], 0
mov dword [rax + 8], r15d
lea rax, [rsp + 0x40]
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebp, eax
test eax, eax
je 0x140009690
test r15d, r15d
je 0x140009690
cmp dil, 0xd0
jne 0x140009667
lea rcx, [rsi + 0x208]
jmp 0x14000967f
cmp dil, 0xd1
jne 0x140009676
lea rcx, [rsi + 0x408]
jmp 0x14000967f
test dil, dil
jne 0x140009690
lea rcx, [rsi + 8]
mov edx, 0x200
lea r8, [r14 + 0xc]
mov r9d, edx
call fcn.14000a0a0
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rsp + 0x2a0]
mov r14, qword [rsp + 0x2a8]
mov eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14003da20
add rsp, 0x2b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000cfb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14007b658]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.14003f490
lea rax, [0x14007c480]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea r9, [0x14007c680]
lea rax, str.Services_
mov edx, 0x208
lea r8, str._s_s_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.14000e0c0
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000d1e5
lea r9, [0x140057390]
mov dword [rsp + 0x38], eax
lea r8, [0x1400573a0]
mov dword [rsp + 0x3c], 4
mov edx, 0x208
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x40]
call fcn.14000e0c0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.14003f490
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rbp + 0x150]
mov dword [rsp + 0x3c], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d0dd
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call fcn.140043e80
test eax, eax
je 0x14000d1d5
cmp dword [0x14007c268], 5
jbe 0x14000d0f6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000d1e5
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000d102
lea ecx, [rax*2 + 2]
mov r9d, 2
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea rdx, str.ImagePath
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ErrorControl
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14000d580
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14003da20
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rbp
ret
Function at 0x14000d370
Capabilities:
Create service

Disassembly:
sub rsp, 0x78
xor eax, eax
lea r8, [0x14007c480]
mov qword [rsp + 0x60], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
lea rdx, [0x14007c480]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x14000d3d0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x78
ret

Function at 0x14000da00
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, 0xf01ff
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000da2b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000da60
Capabilities:
Start service

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000da91
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14000daa0
Capabilities:
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14007b658]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000db06
lea r8, [rsp + 0x20]
mov qword [rsp + 0x70], rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003da20
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003da20
add rsp, 0x50
pop rdi
ret
Function at 0x140016f90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x20
mov rbp, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140017033
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rbp
call fcn.140009fd0
mov ecx, 0x2000
lea rdi, [rax + 1]
lea rdx, [rdi + rdi]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbp
mov rbx, rax
call fcn.140009de0
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.14004468c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret

Function at 0x1400170d0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14007b658]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rbx
call fcn.140017ad0
lea r8, [0x1400616fc]
lea rcx, [rsp + 0x20]
call fcn.140044fd8
test eax, eax
je 0x14001712d
lea rcx, [rsp + 0x28]
call fcn.140017ad0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003da20
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x34], ebx
lea edx, [r8 + 0x3c]
call fcn.1400456dc
mov r9, qword [rsp + 0x20]
lea rcx, [rsp + 0x34]
mov edx, 1
lea r8d, [rdx + 3]
call fcn.1400453a0
movzx eax, byte [rsp + 0x37]
xor r8d, r8d
movzx edx, byte [rsp + 0x34]
imul ecx, eax, 0x10100
add edx, 4
movzx eax, byte [rsp + 0x35]
add ecx, eax
shl ecx, 8
add edx, ecx
mov rcx, qword [rsp + 0x20]
call fcn.1400456dc
mov r9, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, 1
mov word [rsp + 0x30], bx
lea r8d, [rdx + 1]
call fcn.1400453a0
mov rcx, qword [rsp + 0x20]
call fcn.1400450b4
movzx edx, byte [rsp + 0x31]
lea rcx, [rsp + 0x28]
movzx eax, byte [rsp + 0x30]
call fcn.140017ad0
shl edx, 8
mov ecx, 0x40
add edx, eax
mov eax, 0x20
cmp edx, 0x14c
cmovne eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003da20
add rsp, 0x40
pop rbx
ret
Function at 0x1400179e0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x700
mov rax, qword [0x14007b658]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
xor eax, eax
mov rbx, rcx
xor edx, edx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x64]
call fcn.14003f490
xor edx, edx
mov dword [rsp + 0x70], 0x68
mov r8d, 0x400
lea rcx, [rsp + 0x2f0]
call fcn.14003f490
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r9, [rsp + 0xe0]
mov qword [rsp + 0x20], rbx
lea r8, [0x140060ab8]
mov edx, 0x200
lea rcx, [rsp + 0x2f0]
call fcn.14000e0c0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.14003da20
add rsp, 0x700
pop rbx
ret
Function at 0x140019cf0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x370
mov rax, qword [0x14007b658]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x48], rbp
xor r8d, r8d
mov qword [rsp + 0x40], rbp
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019e57
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x200
call fcn.14003f490
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x100
call fcn.14003f490
mov ebx, ebp
lea r14, [0x1400760ac]
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov edx, ebx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x50], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140019e4c
lea edx, [rax + 0x7f]
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov qword [rsp + 0x30], rax
lea r8, str._s_s_s_s
lea rax, [rsp + 0x60]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x160]
mov edx, 0x100
mov qword [rsp + 0x20], r14
call fcn.14000e0c0
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x160]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140019e91
inc ebx
cmp ebx, 0x3e8
jb 0x140019d90
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x140055950]
mov rcx, rdi
call fcn.14000a680
mov rax, rdi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14003da20
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rax, [rsp + 0x60]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, str._s_s_s
mov edx, 0x100
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x160]
call fcn.14000e0c0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x160]
jmp 0x140019e5e