joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140111080
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14011109c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401110f0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140111215
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x140111215
test rax, rax
je 0x140111215
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x140111215
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x14011118a
lea rax, [0x140111270]
jmp 0x1401111e3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140111215
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140111203
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1401111b0
lea rax, [0x140111240]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x14011122a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x140112800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14011280b
xor eax, eax
ret
lea r11, [0x140144cf0]
not ecx
cmp r8d, 8
jb 0x1401128e1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140112830
test r8d, r8d
je 0x14011290d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1401128f0
not ecx
mov eax, ecx
ret
Function at 0x1401164e4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14011651e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140116523
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14011656c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14011656c
dec r8
sub rdx, 1
jne 0x140116552
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140117e4c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401b3838]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x260]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, qword [rbx + 0x268]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f18f9.0]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400080e0]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rbx + 0x270], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012d380
add rsp, 0x40
pop rbx
ret
Function at 0x140026910
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14002694b
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000e3c0
nop
cmp byte [rdx + r8 + 1], 0
je 0x140026991
lea rdx, str.unsigned_long___cdecl_MinifilterStopCommand::Execute_int_wchar_t____
lea rdi, [0x1401c36c0]
mov rcx, rdi
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rdi
call fcn.140016400
mov rcx, rdi
call fcn.1400141c0
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14002aa60
Function at 0x140026ba0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov r14d, 0x254
mov eax, dword [r14 + rdi]
mov edx, 0x250
test al, 1
jne 0x140026bed
or eax, 1
mov dword [r14 + rdi], eax
lea rcx, [rdi + rdx]
call fcn.14000e3c0
nop
lea rbx, [rdi + rdx]
lea rbp, [0x1401c36c0]
cmp byte [rbx + 1], 0
je 0x140026c35
lea rdx, str.unsigned_long___cdecl_MinifilterStartCommand::Execute_int_wchar_t____
mov rcx, rbp
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbp
call fcn.140016400
mov rcx, rbp
call fcn.1400141c0
mov eax, dword [r14 + rdi]
test al, 1
jne 0x140026c4d
or eax, 1
mov dword [r14 + rdi], eax
mov rcx, rbx
call fcn.14000e3c0
nop
cmp byte [rbx + 1], 0
je 0x140026c8a
lea rdx, str.Start_Minifilter
mov rcx, rbp
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbp
call fcn.140016400
mov rcx, rbp
call fcn.1400141c0
mov rcx, qword [rsi + 8]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x14002a8d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.DLL_StartServiceW]
test eax, eax
jne 0x14002a9d4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x20]
cmp eax, 0x420
jne 0x14002a94a
call fcn.140016ef0
nop
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_start_service._ERROR_SERVICE_ALREADY_RUNNING
mov rcx, rbx
call fcn.140018dd0
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x20]
call fcn.140017030
mov eax, 0x6e
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
call fcn.140016ef0
cmp edi, 2
jne 0x14002a98e
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_start_service._ERROR_FILE_NOT_FOUND
mov rcx, rbx
call fcn.140018dd0
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x20]
call fcn.140017030
lea eax, [rdi + 0x6c]
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_start_service._Error
mov rcx, rbx
call fcn.140018dd0
mov edx, edi
mov rcx, rbx
call fcn.140029fc0
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x20]
call fcn.140017030
mov eax, 0x6e
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14002aa02
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000e3c0
nop
cmp byte [rdx + r8 + 1], 0
je 0x14002aa48
lea rdx, str.Service_started_successfully.
lea rbx, [0x1401c36c0]
mov rcx, rbx
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbx
call fcn.140016400
mov rcx, rbx
call fcn.1400141c0
xor eax, eax
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140027090
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x1400270cb
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000e3c0
nop
cmp byte [rdx + r8 + 1], 0
je 0x140027111
lea rdx, str.Starting_service
lea rdi, [0x1401c36c0]
mov rcx, rdi
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rdi
call fcn.140016400
mov rcx, rdi
call fcn.1400141c0
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14002a8d0
Function at 0x14002a8d0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov r14d, 0x254
mov eax, dword [r14 + rdi]
mov edx, 0x250
test al, 1
jne 0x140026bed
or eax, 1
mov dword [r14 + rdi], eax
lea rcx, [rdi + rdx]
call fcn.14000e3c0
nop
lea rbx, [rdi + rdx]
lea rbp, [0x1401c36c0]
cmp byte [rbx + 1], 0
je 0x140026c35
lea rdx, str.unsigned_long___cdecl_MinifilterStartCommand::Execute_int_wchar_t____
mov rcx, rbp
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbp
call fcn.140016400
mov rcx, rbp
call fcn.1400141c0
mov eax, dword [r14 + rdi]
test al, 1
jne 0x140026c4d
or eax, 1
mov dword [r14 + rdi], eax
mov rcx, rbx
call fcn.14000e3c0
nop
cmp byte [rbx + 1], 0
je 0x140026c8a
lea rdx, str.Start_Minifilter
mov rcx, rbp
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbp
call fcn.140016400
mov rcx, rbp
call fcn.1400141c0
mov rcx, qword [rsi + 8]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x14002a8d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.DLL_StartServiceW]
test eax, eax
jne 0x14002a9d4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x20]
cmp eax, 0x420
jne 0x14002a94a
call fcn.140016ef0
nop
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_start_service._ERROR_SERVICE_ALREADY_RUNNING
mov rcx, rbx
call fcn.140018dd0
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x20]
call fcn.140017030
mov eax, 0x6e
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
call fcn.140016ef0
cmp edi, 2
jne 0x14002a98e
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_start_service._ERROR_FILE_NOT_FOUND
mov rcx, rbx
call fcn.140018dd0
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x20]
call fcn.140017030
lea eax, [rdi + 0x6c]
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_start_service._Error
mov rcx, rbx
call fcn.140018dd0
mov edx, edi
mov rcx, rbx
call fcn.140029fc0
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x20]
call fcn.140017030
mov eax, 0x6e
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14002aa02
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000e3c0
nop
cmp byte [rdx + r8 + 1], 0
je 0x14002aa48
lea rdx, str.Service_started_successfully.
lea rbx, [0x1401c36c0]
mov rcx, rbx
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbx
call fcn.140016400
mov rcx, rbx
call fcn.1400141c0
xor eax, eax
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x14002af20
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x180
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8d, edx
mov edx, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigW]
test eax, eax
jne 0x14002afdf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140016ef0
nop
lea rdi, [rax + 0x10]
lea rdx, str.ChangeServiceConfig_returned_0x
mov rcx, rdi
call fcn.140018dd0
mov rcx, qword [rdi]
movsxd rdx, dword [rcx + 4]
mov eax, dword [rdx + rdi + 0x18]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rdx + rdi + 0x18], eax
mov edx, ebx
mov rcx, rdi
call fcn.140029fc0
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
mov eax, dword [rdx + rdi + 0x18]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rdx + rdi + 0x18], eax
mov rcx, rdi
call fcn.140017f70
nop
lea rcx, [rsp + 0x60]
call fcn.140017030
xor eax, eax
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rdi
ret
Function at 0x14002b610
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1401b3838]
xor rax, rsp
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.DLL_QueryServiceStatusEx]
test eax, eax
jne 0x14002b6cc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x30]
call fcn.140016ef0
nop
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_query_service_state_0x
mov rcx, rbx
call fcn.140018dd0
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov eax, dword [rdx + rbx + 0x18]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rdx + rbx + 0x18], eax
mov edx, edi
mov rcx, rbx
call fcn.140029fc0
mov rax, qword [rbx]
movsxd rdx, dword [rax + 4]
mov eax, dword [rdx + rbx + 0x18]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rdx + rbx + 0x18], eax
mov rcx, rbx
call fcn.140017f70
nop
lea rcx, [rsp + 0x30]
call fcn.140017030
mov eax, edi
jmp 0x14002b6ce
xor eax, eax
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14012d380
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret

Function at 0x14002b6f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1401b3838]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14002b73a
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000e3c0
nop
cmp byte [rdx + r8 + 1], 0
je 0x14002b780
lea rdx, str.Waiting_for_the_pending_service_stop...
lea rbx, [0x1401c36c0]
mov rcx, rbx
call fcn.1400146d0
mov rax, qword [0x1401c36c0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140016560
movzx edx, al
mov rcx, rbx
call fcn.140016400
mov rcx, rbx
call fcn.1400141c0
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002b610
cmp dword [rsp + 0x24], 1
je 0x14002b803
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x38]
shr edx, 3
mov ecx, edx
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002b610
test eax, eax
jne 0x14002b805
cmp dword [rsp + 0x24], 1
je 0x14002b7f7
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x14002b7e4
cmp dword [rsp + 0x24], 1
jne 0x14002b7a0
jmp 0x14002b803
lea rcx, str.Service_stop_timed_out._n
call fcn.140016de0
mov eax, 0x41d
jmp 0x14002b805
lea rcx, str.Service_stopped_successfully._n
call fcn.140016de0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012d380
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14002c6b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1401b3838]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x50], rbx
mov edi, ebp
lea r14, [0x1401c3e80]
lea rsi, [0x1401b3898]
nop dword [rax + rax]
mov rcx, qword [rdi + r14]
cmp byte [rcx + 0x41], 2
jne 0x14002c7be
cmp qword [rcx + 0x20], 8
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], rbp
jb 0x14002c711
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
jne 0x14002c74b
xor edx, edx
call qword [sym.imp.ADVAPI32.DLL_RegDeleteTreeW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x14002c7b3
test rcx, rcx
je 0x14002c756
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp ebx, 2
jne 0x14002c78a
mov rcx, qword [0x1401b3898]
cmp rcx, rsi
je 0x14002c7be
test dword [rcx + 0x44], 0x8000
je 0x14002c7be
cmp byte [rcx + 0x41], bl
jb 0x14002c7be
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 8]
lea r8, [0x14017dbd8]
call fcn.140019610
jmp 0x14002c7be
mov rcx, qword [0x1401b3898]
cmp rcx, rsi
je 0x14002c7be
test dword [rcx + 0x44], 0x8000
je 0x14002c7be
cmp byte [rcx + 0x41], 2
jb 0x14002c7be
mov rcx, qword [rcx + 0x38]
mov r9d, ebx
call fcn.14002c640
jmp 0x14002c7be
test rcx, rcx
je 0x14002c7be
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add rdi, 8
cmp rdi, 0x60
jb 0x14002c6f0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012d380
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002c800
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401b3838]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebp, ebp
mov edi, ebp
mov qword [rsp + 0x50], rbp
lea rax, [0x1401c3e80]
mov r13, qword [rdi + rax]
movzx eax, byte [r13 + 0x40]
dec al
test al, 0xfd
jne 0x14002c996
mov qword [rsp + 0x60], rbp
lea rdx, [r13 + 8]
cmp qword [rdx + 0x18], 8
jb 0x14002c864
mov rdx, qword [rdx]
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.DLL_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x14002c9d9
mov rbx, qword [r13 + 0x28]
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x58], rax
cmp rbx, rax
je 0x14002c986
cmp byte [r13 + 0x40], 3
jne 0x14002c8ff
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x68], ebp
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f18f9.0]
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
je 0x14002c972
mov r12, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rdx, qword [rax]
mov rdi, rdx
mov r15, rax
mov rcx, rax
mov rax, qword [rdx + 8]
call qword [case.0x1400f18f9.0]
mov r14, rax
mov rcx, r15
mov rax, qword [rdi]
call qword [case.0x1400f18f9.0]
mov rbp, rax
mov rcx, r15
mov rax, qword [rdi + 0x10]
call qword [case.0x1400f18f9.0]
mov edi, eax
mov rdx, qword [r15]
mov rcx, r15
mov rax, qword [rdx + 0x18]
call qword [case.0x1400f18f9.0]
mov rdx, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
mov r9d, edi
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov esi, eax
test eax, eax
jne 0x14002c9d9
xor ebp, ebp
add rbx, 8
cmp rbx, qword [rsp + 0x58]
jne 0x14002c8b4
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002c996
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add rdi, 8
mov qword [rsp + 0x50], rdi
cmp rdi, 0x60
jb 0x14002c837
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14012d380
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14002c6b0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002c9ef
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
jmp 0x14002c9ab
Function at 0x14002ce90
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14002cea9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x14002cf47
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x14002cf0b
xor edi, edi
mov rcx, qword [0x1401b3898]
lea rax, [0x1401b3898]
cmp rcx, rax
je 0x14002cf47
test dword [rcx + 0x44], 0x100
je 0x14002cf47
cmp byte [rcx + 0x41], 4
jb 0x14002cf47
cmp qword [rbx + 0x18], 8
jb 0x14002cef2
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
call fcn.140019890
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1401b3898]
lea rax, [0x1401b3898]
cmp rcx, rax
je 0x14002cf47
test dword [rcx + 0x44], 0x100
je 0x14002cf47
cmp byte [rcx + 0x41], 2
jb 0x14002cf47
cmp qword [rbx + 0x18], 8
jb 0x14002cf37
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], edi
call fcn.14002cba0
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14002f1d0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 8]
mov rdi, rdx
test rsi, rsi
je 0x14002f23b
lea rbx, [rdx + 8]
test rbx, rbx
je 0x14002f23b
cmp byte [rcx + 0x4c], 0
je 0x14002f23b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x14002f23b
cmp byte [rdi + 0x4c], 0
je 0x14002f23b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x14002f23b
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_EqualSid]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret