joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010ff20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14010ff62
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14010ffa9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140110002
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14010ffc0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140110043
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14013f1b2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14013f1b3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140110010
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140111194
Capabilities:
Parse pe header

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

Disassembly:
push 0xdab6e90
mov r11, qword [rsp + 0x30]
neg byte [rsp]
mov rcx, qword [rsp]
xor dword [rsp], 0x35ec05cf
sub cx, 0x309b
neg cl
setno cl
add qword [rsp + 0x18], 0x7f6b2d50
and qword [rsp], 0x171300e8
js 0x1809b0ed2
mov rcx, qword [rsp + 0x10]
or byte [rsp], 0xac
sub dword [rsp], 0x489a5a92
call fcn.1809567ca
push rsi
movabs rsi, 0x4b3e5439502d0316
pushfq
xor sil, sil
not rsi
and si, 0x549b
jbe 0x1809b0f22
mov rsi, qword [rsp + 8]
mov qword [rsp + 8], 0xffffffffdf7c9bb7
push r9
movabs r9, 0x27b57887184125b6
xor r9w, 0x7dab
setne r9b
cmp r9w, 0x2262
mov r9, qword [rsp]
jbe 0x1809b0f36
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x10]
call fcn.1811cffb5
div dword [rdx + 0x4e]
mov byte [rbx - 0x78], bl
xchg ecx, eax
mov esi, 0x6f5c2d7e
invalid
Function at 0x14000116d
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x140001190
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x1400011bb
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x1400011b4
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140002b3f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xac86
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002b90
mov rbx, rax
call 0x140002b73
pop rsi
mov rcx, rax
add rsi, 0x69f8e
mov rcx, 0xac86
mov dl, byte [rsi]
mov byte [rbx], dl
inc rsi
inc rbx
loop 0x140002b85
hlt
mov rbx, rax
call rbx
mov ecx, 1
ret

Function at 0x1400037c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi + 0x280]
movabs rax, 0x20c49ba5e353f7cf
imul rcx, rbx
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x20]
nop word [rax + rax]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [rsp + 0x28], rbx
jle 0x140003820
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002f810
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140005700
Capabilities:
Create thread

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, 0x80004005
call fcn.140004460
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov ebx, r14d
lea ebp, [r14 + 0xc]
test rax, rax
je 0x140005812
mov ecx, 0xb0
call fcn.14002efa4
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400057bb
xor edx, edx
mov r8d, 0xb0
mov rcx, rax
call fcn.14002f840
mov qword [rbx + 0xa8], r14
mov dword [rbx], r14d
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], r14
mov dword [rbx + 0x44], r14d
lea rdi, [rbx + 0x48]
xor eax, eax
mov ecx, ebp
rep stosq qword [rdi], rax
call fcn.140004460
mov qword [rbx + 8], rax
mov dword [rbx + 0x40], r14d
jmp 0x1400057be
mov rbx, r14
test rbx, rbx
je 0x140005812
mov rcx, rbx
call fcn.1400058b0
mov esi, eax
test eax, eax
js 0x1400057e9
mov rcx, rbx
call fcn.140004c60
mov esi, eax
test eax, eax
js 0x1400057e9
mov rcx, rbx
call fcn.140005a70
mov esi, eax
test esi, esi
js 0x140005812
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rbx
lea r8, [0x140004f20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa8], rax
lea rcx, [rsp + 0x40]
call fcn.140004bf0
test esi, esi
jns 0x140005878
test rbx, rbx
je 0x140005878
mov dword [rbx], 1
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000583a
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call fcn.140004e40
lea rsi, [rbx + 0x48]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140005859
mov rdi, qword [rcx]
mov edx, 1
call qword [rdi + 0x28]
add rsi, 8
dec rbp
jne 0x140005846
lea rcx, [rbx + 8]
call fcn.140004bf0
mov rcx, rbx
call fcn.14002f04c
mov rax, r14
jmp 0x14000587b
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002f810
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140005dd0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x158
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, ecx
mov rbx, rdx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.14002f840
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 0x104
call fcn.140030004
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test dword [0x14006c044], 0x20000
je 0x140005e75
mov rcx, qword [0x14006c048]
lea rax, [rsp + 0x30]
lea rdx, [0x14004c758]
mov r9d, 1
mov r8d, edi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.140004320
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002f810
add rsp, 0x158
pop rdi
pop rbx
ret
Function at 0x14000f1f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.14002f840
lea rdx, [rsp + 0x20]
lea rcx, str._SYSTEMDRIVE_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x14000f24e
xor al, al
jmp 0x14000f29d
test rbx, rbx
je 0x14000f257
lea rdi, [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000dae0
lea rdx, str.Intel
mov rcx, rax
call fcn.14000dae0
lea rdx, str.Logs
mov rcx, rax
call fcn.14000dae0
lea rdx, str.IntelCpHDCPSvc.log
mov rcx, rax
call fcn.14000dae0
xor edx, edx
mov rcx, rax
call fcn.140012800
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002f810
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x14000f570
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x14000f6d5
cmp byte [rcx + 0x82], 0
je 0x14000f6d5
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x14000f5cb
xor al, al
jmp 0x14000f6d7
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.140010ac0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
cmovae r8, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x14000f63e
dec eax
jne 0x14000f6b3
jmp 0x14000f645
mov byte [rdi + 0x82], 0
lea rax, [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
cmp r10, 0x10
cmovae rax, r9
mov rbx, qword [rsp + 0x38]
sub rbx, rax
je 0x14000f68c
lea rcx, [rsp + 0x40]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.1400311d0
cmp rbx, rax
jne 0x14000f6b8
cmp byte [rdi + 0x82], 0
je 0x14000f6bc
test rbx, rbx
jne 0x14000f5f4
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.1400109a0
jmp 0x14000f5f4
sub eax, 2
je 0x14000f6bc
xor bl, bl
jmp 0x14000f6be
mov bl, 1
cmp qword [rsp + 0x58], 0x10
jb 0x14000f6d0
mov rcx, qword [rsp + 0x40]
call fcn.14002f04c
movzx eax, bl
jmp 0x14000f6d7
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002f810
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400124e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rbx, rcx
mov esi, 0xffff
cmp si, dx
jne 0x14001252a
xor eax, eax
jmp 0x1400126f8
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140012567
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140012567
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x1400126f8
cmp qword [rcx + 0x90], 0
je 0x1400126f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x80]
cmp qword [r8], rax
jne 0x1400125a3
mov rdx, qword [rcx + 0x70]
mov rcx, qword [rcx + 0x68]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x78], 0
jne 0x1400125cc
mov rdx, qword [rbx + 0x90]
movzx ecx, r14w
call fcn.14003194c
cmp ax, si
je 0x1400126f5
movzx esi, r14w
jmp 0x1400126f5
mov word [rbp - 1], r14w
mov qword [rbp + 0x1f], 0xf
xor eax, eax
mov qword [rbp + 0x17], rax
mov byte [rbp + 7], al
xor r8d, r8d
lea edx, [rax + 8]
lea rcx, [rbp + 7]
call fcn.140010ac0
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 1]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x1400126e5
cmp eax, 1
jg 0x1400126c7
lea rax, [rbp + 7]
mov r9, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x140012692
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call fcn.1400311d0
cmp rdi, rax
jne 0x1400126e5
mov byte [rbx + 0x82], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x1400126e1
test rdi, rdi
jne 0x1400125f2
cmp qword [rbp + 0x17], 0x20
jae 0x1400126e5
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.1400109a0
jmp 0x1400125f2
cmp eax, 3
jne 0x1400126e5
mov rdx, qword [rbx + 0x90]
movzx ecx, word [rbp - 1]
call fcn.14003194c
cmp ax, si
je 0x1400126e5
movzx esi, r14w
cmp qword [rbp + 0x1f], 0x10
jb 0x1400126f5
mov rcx, qword [rbp + 7]
call fcn.14002f04c
movzx eax, si
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14002f810
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014ed0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140014efe
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140018a70
cmp byte [0x14006c220], 0
jne 0x140014f49
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014f39
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14006c220], 1
mov qword [0x14006c218], rax
jmp 0x140014f50
mov rax, qword [0x14006c218]
mov byte [0x14006c220], 1
jmp 0x140014f50
mov rax, qword [0x14006c218]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140014f6f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140018ae4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018b06
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018b06
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140018b06
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1400162c0
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400165a0
test eax, eax
je 0x1400162f1
mov eax, 1
jmp 0x1400163f8
lea rdx, [rsp + 0x72]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400164ee
cmp eax, 0x104
je 0x1400164ee
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140016537
mov qword [rsp + 0xaa8], rbx
mov qword [rsp + 0xab0], rsi
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140016411
lea rdx, [rsp + 0x280]
mov r8d, 0x400
mov ecx, 0xd80a
call fcn.140014080
test eax, eax
jne 0x1400163cf
lea r8, str.Could_not_open_Service_Manager
lea rcx, [rsp + 0x280]
mov edx, 0x400
call fcn.140032748
test eax, eax
je 0x1400163cf
cmp eax, 0xc
je 0x14001650b
cmp eax, 0x16
je 0x140016500
cmp eax, 0x22
je 0x140016500
cmp eax, 0x50
jne 0x1400164f5
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14002f810
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x70]
add rdi, 0x68
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r8, rdi
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x1400164d2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x280]
mov r8d, 0x400
mov ecx, 0xd80b
call fcn.140014080
test eax, eax
jne 0x1400164c7
lea r8, str.Could_not_start_service
lea rcx, [rsp + 0x280]
mov edx, 0x400
call fcn.140032748
test eax, eax
je 0x1400164c7
cmp eax, 0xc
je 0x14001652c
cmp eax, 0x16
je 0x140016521
cmp eax, 0x22
je 0x140016521
cmp eax, 0x50
jne 0x140016516
xor r9d, r9d
mov r8, rdi
jmp 0x1400163d6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1400163e8
xor eax, eax
jmp 0x1400163f8
mov ecx, 0x80004005
call fcn.140009130
int3
mov ecx, 0x80070057
call fcn.140009130
int3
mov ecx, 0x8007000e
call fcn.140009130
int3
mov ecx, 0x80004005
call fcn.140009130
int3
mov ecx, 0x80070057
call fcn.140009130
int3
mov ecx, 0x8007000e
call fcn.140009130
int3
call fcn.140032580
int3
Function at 0x1400187d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.140016990
mov ebx, eax
test eax, eax
jne 0x1400188f7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400188d1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400187d0
mov ebx, eax
test eax, eax
jne 0x1400188f7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140018880
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400188e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.140014ed0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140018907
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002f810
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018a70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140014efe
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140018a70
cmp byte [0x14006c220], 0
jne 0x140014f49
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014f39
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14006c220], 1
mov qword [0x14006c218], rax
jmp 0x140014f50
mov rax, qword [0x14006c218]
mov byte [0x14006c220], 1
jmp 0x140014f50
mov rax, qword [0x14006c218]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140014f6f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140018ae4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018b06
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018b06
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140018b06
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret