joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402bcf
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409520
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ca60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402ba0
cmp byte [0x005dbdf3], 0
je 0x45eb95
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45bb60
jmp 0x402ba0

Function at 0x45eba0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005dc0a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005dbdf3], 0
je 0x45ebd5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005dc360]
aesenc xmm0, xmmword [0x005dc370]
aesenc xmm0, xmmword [0x005dc380]
movq rax, xmm0
ret
jmp 0x409720

Function at 0x45ebe0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005dc0a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005dbdf3], 0
je 0x45ec16
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005dc360]
aesenc xmm0, xmmword [0x005dc370]
aesenc xmm0, xmmword [0x005dc380]
movq rax, xmm0
ret
jmp 0x409780

Function at 0x460560
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005dc2e0]
mov qword [rsp + 8], rdx
lea r8d, [0x005dbe0c]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045eac0
add rsp, 0x30
ret
Function at 0x479320
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x47938b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x479344
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x479361
cmp rdx, 0
je 0x4793ad
test rdx, 0xf
je 0x47933d
test rdx, 7
jne 0x479361
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x47933d
ret
Function at 0x47a560
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x47a59f
jb 0x47a5b4
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesenclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x47a620
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x47a6f0
jb 0x47a74f
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.0047a500
aeskeygenassist xmm1, xmm0, 1
call fcn.0047a520
aeskeygenassist xmm1, xmm2, 2
call fcn.0047a500
aeskeygenassist xmm1, xmm0, 2
call fcn.0047a520
aeskeygenassist xmm1, xmm2, 4
call fcn.0047a500
aeskeygenassist xmm1, xmm0, 4
call fcn.0047a520
aeskeygenassist xmm1, xmm2, 8
call fcn.0047a500
aeskeygenassist xmm1, xmm0, 8
call fcn.0047a520
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0047a500
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0047a520
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0047a500
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0047a520
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0047a500
jmp 0x47a7bd
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.0047a460
aeskeygenassist xmm1, xmm2, 2
call fcn.0047a4c0
aeskeygenassist xmm1, xmm2, 4
call fcn.0047a460
aeskeygenassist xmm1, xmm2, 8
call fcn.0047a4c0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0047a460
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0047a4c0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0047a460
aeskeygenassist xmm1, xmm2, 0x80
call fcn.0047a4c0
jmp 0x47a7bd
aeskeygenassist xmm1, xmm0, 1
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 2
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 4
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 8
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 0x40
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 0x80
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.0047a420
aeskeygenassist xmm1, xmm0, 0x36
call fcn.0047a420
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x47a7ca
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x412ac0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00412ab0
mov ebx, eax
test ebx, ebx
je 0x412b0b
cmp dword [0x0086126c], 0xffffffff
jne 0x412ae4
mov ecx, 0xe2
call fcn.0040c960
mov ecx, ebx
call fcn.00412a90
test rax, rax
jne 0x412afd
mov ecx, 0xe2
call fcn.0040c960
jmp 0x412b0b
mov ecx, dword [0x0086126c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x412b20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x008b3d64], 0
je 0x412b5b
mov ecx, dword [0x0086126c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x412b6f
call fcn.00412ac0
mov ecx, dword [0x0086126c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x412b6f
mov rax, qword [0x008b3d98]
jmp 0x412b6f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0086126c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42a430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040e090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42a4e2
mov ecx, eax
test ecx, 0x400
je 0x42a4d7
test sil, sil
jne 0x42a46f
mov al, 1
jmp 0x42a50c
test eax, 0x10
je 0x42a47f
xor rax, rax
jmp 0x42a50c
mov rcx, rbx
call fcn.0040e090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42a4ca
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42a50c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42a50c
test eax, 0x10
sete al
jmp 0x42a50c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42a505
cmp eax, 3
je 0x42a505
cmp eax, 0x7b
je 0x42a505
mov rcx, rbp
mov rdx, rbx
call fcn.0042a3e0
test al, al
jne 0x42a50a
xor rax, rax
jmp 0x42a50c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4fac00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x008b8488], 0
jne 0x4facb5
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x008b8480]
mov qword [rbx], rax
lea rcx, [0x00872598]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00406a00
lea rax, [0x004fabc0]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.004fabf0
mov dword [rsi + 1], eax
mov rax, qword [0x008b8488]
mov qword [rsi + 5], rax
mov qword [0x008b8488], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x4fac73
mov qword [0x008b8480], rbx
mov rax, qword [0x008b8488]
mov rsi, qword [0x008b8488]
mov rcx, qword [rsi + 5]
mov qword [0x008b8488], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x546bf0
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor rax, rax
xor rcx, rcx
sub edx, 1
cmp ecx, edx
jg 0x546c32
add edx, 1
mov r9d, eax
and r9w, 0xf800
movzx r9d, r9w
shr r9d, 0xb
shl eax, 5
or r9w, ax
mov eax, r9d
movzx r9w, byte [r8]
xor ax, r9w
add r8, 1
add ecx, 1
cmp ecx, edx
jne 0x546c03
nop
ret

Function at 0x68fda0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x80], 0
jne 0x68ffd2
mov rcx, qword [0x004b2180]
mov dl, 1
call fcn.004e2e80
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x80], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x88]
call fcn.0040ccb0
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor rax, rax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jg 0x68ffaa
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + rax*8 + 0x2f0]
call fcn.0059ee90
test al, al
je 0x68ff94
movsxd rax, dword [rbp + 0x4f8]
lea rax, [rbp + rax*8 + 0x2f0]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0x50], 0x10
lea rcx, [rbp + 0x70]
lea rdx, [0x00690064]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.0042b210
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x68ff94
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x006900d2]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x68ff87
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.0040e190
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x4f8]
mov r8, qword [rbp + r8*8 + 0x2f0]
mov rax, qword [rax]
call qword [rax + 0x80]
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rbp + rax*8 + 0x2f0]
cmp rax, qword [rcx + 0x90]
jne 0x68ff87
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x88]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.0040e190
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey_1
add dword [rbp + 0x4f8], 1
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jne 0x68fe48
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov byte [rax + 0x61], 0
mov rax, qword [rbp + 0x520]
mov rcx, qword [rax + 0x80]
mov dl, 1
call fcn.004e2d30
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.0040ccb0
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x14001139d
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a240
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400114ab
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b590
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b5b0
xor al, al
jmp 0x14001b631
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b5c3
xor al, al
jmp 0x14001b631
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001b5ed
xor al, al
jmp 0x14001b631
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b601
xor al, al
jmp 0x14001b631
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b613
xor al, al
jmp 0x14001b631
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b62f
xor al, al
jmp 0x14001b631
mov al, 1
add rsp, 0x38
ret
Function at 0x140019390
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400116f9
movzx eax, al
test eax, eax
jne 0x1400193b0
mov ecx, 7
call fcn.1400115af
nop
mov byte [rsp + 0x20], 0
call fcn.1400115eb
mov byte [rsp + 0x21], al
cmp dword [0x140027b88], 1
jne 0x1400193d4
mov ecx, 7
call fcn.1400115af
nop
jmp 0x14001942c
cmp dword [0x140027b88], 0
jne 0x140019427
mov dword [0x140027b88], 1
lea rdx, [0x140021660]
lea rcx, [0x140021330]
call fcn.14001130c
test eax, eax
je 0x140019408
mov eax, 0xff
jmp 0x140019531
lea rdx, [0x140021220]
lea rcx, [section..rdata]
call fcn.1400115d2
mov dword [0x140027b88], 2
jmp 0x14001942c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011596
call fcn.1400114d8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140019489
mov rcx, qword [rsp + 0x30]
call fcn.140011299
movzx eax, al
test eax, eax
je 0x140019489
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002e020]
nop
call fcn.140011528
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400194bd
mov rcx, qword [rsp + 0x38]
call fcn.140011299
movzx eax, al
test eax, eax
je 0x1400194bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001167c
nop
call fcn.1400195e0
mov dword [rsp + 0x28], eax
call fcn.1400114ab
movzx eax, al
test eax, eax
jne 0x1400194dc
mov ecx, dword [rsp + 0x28]
call fcn.140011087
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400194eb
call fcn.14001168b
nop
xor edx, edx
mov cl, 1
call fcn.140011271
mov eax, dword [rsp + 0x28]
jmp 0x140019531
add rsp, 0x68
ret
Function at 0x140007b78
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x14000a57d]
call sub.msvcrt.dll_getenv
jmp 0x140007e06
lea rcx, [0x14000a581]
lea rdx, [0x14000a579]
mov r8, rax
mov rax, qword [0x14000b00e]
call rax
mov rsi, rax
lea rdi, [0x14000a581]
lea r12, [0x140008333]
push r12
push r14
push rdi
push r13
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov r9, qword [rbp - 0x7d]
mov r14, rdx
movzx eax, dl
mov rdx, 0xb5e7
cmp r8, qword [0x14000900a]
jno 0x140007e7b
lea rdi, [rbp - 6]
add eax, dword [rbp - 0x82]
and edx, 0xa62
add r9, qword [rbp - 0xc1]
mov dword [rbp - 0x2e], eax
xor rax, qword [rbp - 8]
cmp rdx, rax
jno 0x140007e92
add edx, 0xb7a0
mov ah, byte [rbp - 0xa3]
sub edx, 0x9f60
mov r8, r10
mov r9, 0xd968
add qword [rbp - 0xa6], r8
mov eax, dword [0x14000900f]
add rdi, rax
add r14, rcx
mov edx, 0x32bd
movzx edx, word [rbp - 0xcd]
add eax, dword [rbp - 0x48]
mov r14, rdi
mov rax, rdx
mov r14, 0x1748
cmp edx, 0x290cadbf
je 0x140007ee4
mov eax, ecx
mov qword [0x140009001], rdi
xor qword [rbp - 0x40], r13
mov r10, qword [rbp - 0x7d]
add r11, 0x6ac6
mov rdi, qword [rbp - 4]
mov ecx, ecx
movzx edi, byte [rbp - 0xa]
mov r10, qword [rbp - 0x87]
mov r14, r14
mov dword [0x14000900e], eax
mov edx, dword [rbp - 0xe]
call fcn.140008072
mov ecx, edx
mov qword [0x140009005], r10
test rdx, r11
je 0x140007f2c
xor qword [rbp - 0xb7], rdx
mov qword [rbp - 0xab], r8
xor eax, dword [rbp - 0x26]
mov r8, r11
mov eax, dword [rbp - 0xf]
mov qword [rbp - 0x5b], r14
mov eax, dword [0x140009004]
mov edi, dword [rbp - 0xb0]
and r14, r8
mov eax, dword [rbp - 0x3f]
cmp edi, 0x3d3ff3b7
js 0x140007f5f
mov r8, qword [rbp - 0xb1]
call fcn.140007f66
mov ecx, dword [rbp - 0x5e]
leave
pop r13
pop rdi
pop r14
ret
Function at 0x140004400
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
cmp qword [0x140022728], 0
jne 0x140004415
xor eax, eax
add rsp, 0x68
ret
lea r9, str.ATK_NOTIFICATION_EVENT
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x140022730], rax
jne 0x14000445c
mov rcx, qword [0x140022728]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
xor eax, eax
mov qword [0x140022728], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, qword [0x140022728]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r9d, [rbx + 8]
mov edx, 0x222400
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x70], 8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400044e4
mov rcx, qword [0x140022728]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140022730]
mov qword [0x140022728], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140022730], rbx
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
ret
lea r8, [0x1400042c0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [0x140022724], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x68
ret

Function at 0x1400045a0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0xf0
mov rax, qword [0x1400211b0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor esi, esi
lea r8, str.PEGAGFN
lea rcx, [rsp + 0x40]
lea edx, [rsi + 0x50]
call fcn.14000ae60
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbp, rax
jne 0x1400045f7
mov eax, 0x80000001
jmp 0x1400046c1
lea rdx, [rsp + 0x40]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x108], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400046a9
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000464f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80000002
jmp 0x1400046b9
mov qword [rsp + 0x100], rbx
mov ebx, esi
nop
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x24], 1
je 0x14000468d
add ebx, 1
cmp ebx, 0xa
jl 0x140004660
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x100]
jmp 0x1400046ae
mov esi, 0x80000004
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rdi, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14000ad20
mov rbp, qword [rsp + 0x110]
add rsp, 0xf0
pop rsi
ret
Function at 0x140007560
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x140
mov rax, qword [0x1400211b0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, r8
mov r13, rdx
mov r12, rcx
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov ebp, r9d
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1400076c3
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0xa0
call fcn.14000c1d0
test ebp, ebp
je 0x1400075f0
lea r9, str.PEGAGFN
lea r8, [0x14001a940]
lea edx, [rbx + 0x50]
lea rcx, [rsp + 0x90]
call fcn.14000c190
lea rdi, [rsp + 0x90]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rbx
lea rax, str.ShellSvcGroup
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 1
mov r8, r13
mov rdx, r12
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rdi, rax
je 0x1400076c3
lea r8, [rsp + 0x70]
mov edx, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x74], 4
je 0x1400076c7
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400076b1
nop
nop
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x70]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400076a9
cmp dword [rsp + 0x74], 4
je 0x1400076c7
add ebx, 1
cmp ebx, 0xa
jl 0x140007680
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400076de
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14000ad20
add rsp, 0x140
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007700
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
jne 0x140007730
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x140007796
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x24], 1
je 0x1400077e1
test eax, eax
je 0x1400077e1
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400077a8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
xor ebx, ebx
nop
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400077e1
cmp dword [rsp + 0x24], 1
je 0x1400077e1
add ebx, 1
cmp ebx, 0xa
jl 0x1400077b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140007796
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rsi
ret