joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14054a3d0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbx, qword [r9 + 8]
xor r14d, r14d
mov qword [rax - 0x34], r14
mov rdi, r9
mov qword [rax - 0x2c], r14
mov rbp, r8
mov dword [rax - 0x24], r14d
mov rsi, rcx
mov byte [rax - 0x38], 0
mov qword [rax + 8], rdx
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov eax, dword [rdx + 0x118]
shl eax, 0x10
or eax, dword [rdx + 0x11c]
cmp eax, 0x60000
jb 0x14054a437
call fcn.14054a530
add rax, 0x128
jmp 0x14054a440
call fcn.140549e10
add rax, 0x18
mov qword [rax], rbx
mov rax, qword gs:[0x30]
mov rbx, qword [rsi + 0x38]
mov rcx, qword [rax + 0x60]
mov eax, dword [rcx + 0x118]
shl eax, 0x10
or eax, dword [rcx + 0x11c]
cmp eax, 0x60000
jb 0x14054a477
call fcn.14054a530
add rax, 0x130
jmp 0x14054a480
call fcn.140549e10
add rax, 0x20
mov qword [rax], rbx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov eax, dword [rcx + 0x118]
shl eax, 0x10
or eax, dword [rcx + 0x11c]
cmp eax, 0x60000
jb 0x14054a4b4
call fcn.14054a530
mov rdx, qword [rax + 0x128]
jmp 0x14054a4bd
call fcn.140549e10
mov rdx, qword [rax + 0x18]
mov rax, qword [rdi + 0x38]
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov byte [rsp + 0x20], r14b
mov ecx, dword [rax]
mov r9d, dword [r9]
add rcx, rdx
lea rdx, [rsp + 0x40]
call fcn.140549960
mov byte [rsp + 0x38], r14b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x28], r14d
mov r9, rdi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.14054bba0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14054b950
Capabilities:
Access peb ldr_data

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, 0x70
mov rax, qword gs:[0x30]
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov rbx, rcx
mov r10, qword [rax + 0x60]
mov eax, dword [r10 + 0x118]
shl eax, 0x10
or eax, dword [r10 + 0x11c]
cmp eax, 0x60000
jb 0x14054b9a8
call fcn.14054a530
mov ecx, dword [rax + 0x2c0]
jmp 0x14054b9b0
call fcn.140549e10
mov ecx, dword [rax + 0x10]
mov rdi, qword [rsp + 0xa0]
test ecx, ecx
jne 0x14054b9ec
mov eax, dword [rbx]
cmp eax, 0xe06d7363
je 0x14054b9ec
cmp eax, 0x80000029
jne 0x14054b9dc
cmp dword [rbx + 0x18], 0xf
jne 0x14054b9e3
cmp qword [rbx + 0x60], 0x19930520
je 0x14054b9ec
cmp eax, 0x80000026
je 0x14054b9ec
test byte [rdi], 0x20
jne 0x14054bb77
mov r8d, dword [rbx + 4]
test r8b, 0x66
je 0x14054bab0
movsxd rax, dword [rdi + 8]
test eax, eax
je 0x14054bb77
mov rdx, rax
lea r9, [0x140000000]
add rdx, qword [rsi + 8]
movzx ecx, byte [rdx]
and ecx, 0xf
movsx rax, byte [rcx + r9 + 0x5ac9a0]
movzx ecx, byte [rcx + r9 + 0x5ac9b0]
sub rdx, rax
mov eax, dword [rdx - 4]
shr eax, cl
test eax, eax
je 0x14054bb77
cmp dword [rsp + 0xa8], 0
jne 0x14054bb77
test r8b, 0x20
je 0x14054ba9d
mov eax, dword [rbx]
cmp eax, 0x80000026
jne 0x14054ba7e
mov r8, qword [rsi + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.14054cb40
mov r9d, eax
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.14054c2b0
jmp 0x14054bb77
cmp eax, 0x80000029
jne 0x14054ba9d
mov r9d, dword [rbx + 0x38]
mov r8, rdi
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
call fcn.14054c2b0
jmp 0x14054bb77
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140549ab0
jmp 0x14054bb77
mov r8, qword [rsi + 8]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14054bc10
cmp dword [rsp + 0x40], 0
jne 0x14054bad1
test byte [rdi], 0x40
je 0x14054bb77
cmp dword [rbx], 0xe06d7363
jne 0x14054bb3d
cmp dword [rbx + 0x18], 3
jb 0x14054bb3d
cmp dword [rbx + 0x20], 0x19930522
jbe 0x14054bb3d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 8], 0
je 0x14054bb3d
call fcn.14054a2e0
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rcx + 8]
add rax, rdx
je 0x14054bb3d
movzx ecx, byte [rsp + 0xb8]
mov r9, rsi
mov dword [rsp + 0x38], ecx
mov r8, r14
mov rcx, qword [rsp + 0xb0]
mov rdx, rbp
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call rax
jmp 0x14054bb7c
mov rax, qword [rsp + 0xb0]
mov r9, rsi
mov qword [rsp + 0x38], rax
mov r8, r14
mov eax, dword [rsp + 0xa8]
mov rdx, rbp
mov dword [rsp + 0x30], eax
mov rcx, rbx
movzx eax, byte [rsp + 0xb8]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
call fcn.14054abb0
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14054cf80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1405dd080]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14054cfbc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.1403c8e6c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14054d078
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14054d0de
test ebx, ebx
jne 0x14054d0de
lea ecx, [rax + 2]
call fcn.1403c8e6c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.14055b570
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret

Function at 0x14054d570
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14054d5d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14054d5d2
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14054d5d2
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14054d5d2
cmp dword [rdx + 0x84], 0xe
jbe 0x14054d5d2
cmp dword [rdx + 0xf8], 0
je 0x14054d5d2
mov ecx, ebx
call fcn.14054d430
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1405ea010]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14054d2b0
cmp dword [rsp + 0x60], 0
jne 0x14054d615
mov ecx, ebx
call fcn.14054d3e0
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14054d660
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14054d6bc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14054d6bc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14054d6bc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14054d6bc
cmp dword [rcx + 0x84], 0xe
jbe 0x14054d6bc
cmp dword [rcx + 0xf8], 0
je 0x14054d6bc
mov ecx, ebx
call fcn.14054d430
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1405ea010]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14054d2b0
cmp dword [rsp + 0x60], 0
jne 0x14054d6ff
mov ecx, ebx
call fcn.14054d3e0
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140557690
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x430
mov rax, qword [0x1405dd080]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbp, rdx
mov rdi, rcx
cmp rcx, rdx
je 0x1405577d1
lea r14, [0x140000000]
mov r15d, 0x5c
xor r12d, r12d
nop word [rax + rax]
mov eax, dword [rdi]
lea rsi, [r14 + 0x5ea058]
mov rbx, qword [rsi + rax*8]
lea rsi, [rsi + rax*8]
nop
test rbx, rbx
je 0x140557706
cmp rbx, 0xffffffffffffffff
jne 0x140557813
jmp 0x1405577c4
cmp byte [0x1405ea050], r12b
mov rbx, qword [r14 + rax*8 + 0x5adb80]
je 0x140557725
mov r8d, 0x800
mov rcx, rbx
jmp 0x1405577aa
test rbx, rbx
je 0x1405577ba
cmp word [rbx], r12w
je 0x1405577ba
mov edx, 0x200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x1fe
ja 0x1405577ba
mov ecx, eax
inc eax
mov word [rsp + rcx*2 + 0x20], r15w
cmp eax, 0x200
jae 0x1405577ba
movzx edx, word [rbx]
test dx, dx
je 0x14055778b
nop dword [rax]
mov word [rsp + rax*2 + 0x20], dx
inc eax
cmp eax, 0x200
jae 0x1405577ba
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x140557770
mov ecx, eax
add rcx, rcx
cmp rcx, 0x400
jae 0x140557818
mov word [rsp + rcx + 0x20], r12w
mov r8d, 8
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1405577ff
mov rax, 0xffffffffffffffff
xchg qword [rsi], rax
add rdi, 4
cmp rdi, rbp
jne 0x1405576e0
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14055b570
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, rbx
xchg qword [rsi], rcx
test rcx, rcx
je 0x140557813
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
jmp 0x1405577d3
call fcn.14055b794
int3
Function at 0x140557820
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, qword [0x1405ea088]
mov rdi, rcx
nop
mov ebx, edx
mov rax, qword [0x1405dd080]
xor r9, rax
mov ecx, eax
and ecx, 0x3f
ror r9, cl
cmp r9, 0xffffffffffffffff
je 0x1405578eb
test r9, r9
jne 0x1405578b2
lea rdx, [0x1405adbd4]
lea rcx, [0x1405adbd0]
call fcn.140557690
test rax, rax
je 0x1405578c4
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
test rax, rax
je 0x1405578c4
mov r8, qword [0x1405dd080]
mov r10d, 0x40
mov ecx, r8d
mov rdx, rax
and ecx, 0x3f
sub r10d, ecx
movzx ecx, r10b
ror rdx, cl
xor rdx, r8
xchg qword [0x1405ea088], rdx
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp r9
mov rdx, qword [0x1405dd080]
mov ecx, 0x40
mov eax, edx
and eax, 0x3f
sub ecx, eax
mov rax, 0xffffffffffffffff
ror rax, cl
xor rax, rdx
xchg qword [0x1405ea088], rax
call sub.msvcrt.dll_abort
int3
Function at 0x14000ad8c
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14012cac8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x70], rdx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000ae18
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.Service:_Cannot_install_service___u__n
mov edx, eax
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400c9100
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000ae3f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.Service:_OpenSCManager_failed___u__n
jmp 0x14000adef
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x80]
and qword [rsp + 0x58], 0
lea rdx, str.SensorDataService
and qword [rsp + 0x50], 0
mov r9d, 0xf01ff
and qword [rsp + 0x48], 0
mov r8, rdi
and qword [rsp + 0x40], 0
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000aeca
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_CreateService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000af18
jmp 0x14000adf7
lea rcx, str.Service:_Installed_successfully_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x14000af09
lea rcx, str.Service:_Failed_to_start_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000af32
jmp 0x14000aeb8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfa8
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfa8
int3
Function at 0x14000af4c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14012cac8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x24]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov rsi, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000afcf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_OpenSCManager_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c9100
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov r8d, 0xf01ff
lea rdx, str.SensorDataService
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000b015
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_OpenService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000b0bd
jmp 0x14000afb0
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x14000b07a
cmp dword [rsp + 0x3c], 1
je 0x14000b07a
add rsi, 0x3a98
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
cmp rax, rsi
ja 0x14000b07a
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000b07a
cmp dword [rsp + 0x3c], 1
jne 0x14000b03a
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x14000b09e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_DeleteService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
jmp 0x14000b0ab
lea rcx, str.Service:_Uninstalled_successfully_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000b0d7
jmp 0x14000b002
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfa8
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfa8
int3
Function at 0x14000d680
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14012cac8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000d6f1
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000d6f1
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000d6cf
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400d9438]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14000bfd8
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000d75b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14000d817
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400d93c0]
call fcn.14000d4a4
mov esi, eax
jmp 0x14000d81a
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14000d53c
mov esi, eax
test eax, eax
jns 0x14000d791
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.14000d46c
jmp 0x14000d81a
lea r8, [0x1400d9440]
lea rcx, [rsp + 0x30]
call fcn.14000bfd8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000d7c0
mov edx, 0xd4
jmp 0x14000d741
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000d53c
mov esi, eax
test eax, eax
jns 0x14000d7f6
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.14000d46c
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000d85a
jmp 0x14000d81a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000d86c
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14000d82c
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000d87e
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400c9100
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.14000d4bc
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.14000d4bc
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.14000d4bc
int3
Function at 0x14004285c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, rdx
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r15, r9
mov rbx, r8
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov r10d, dword [rsp + 0x50]
mov r9d, 0
mov r11, rax
mov eax, 0x811c9dc5
add r10, r10
je 0x1400428ba
movzx ecx, byte [r9 + r11]
inc r9
xor ecx, eax
imul eax, ecx, 0x1000193
cmp r9, r10
jb 0x1400428a5
xor edx, edx
mov dword [r15], eax
div dword [rdi + 0x18]
mov rdi, qword [rdi + 8]
mov dword [rbx], edx
test rdi, rdi
je 0x140042945
mov r14, qword [rsp + 0x70]
xor esi, esi
mov rdi, qword [rdi + rdx*8]
and qword [r14], rsi
test rdi, rdi
je 0x140042945
mov eax, dword [r15]
cmp dword [rdi + 0x18], eax
jne 0x14004292f
mov rcx, qword [rdi]
lea rdx, [rsp + 0x58]
mov rbx, qword [r12]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov ecx, dword [rsp + 0x50]
cmp dword [rsp + 0x58], ecx
jne 0x14004292f
mov r8d, ecx
mov rdx, rax
add r8, r8
mov rcx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
test al, al
jne 0x140042938
mov rsi, rdi
mov rdi, qword [rdi + 0x10]
jmp 0x1400428db
mov rax, qword [rsp + 0x78]
mov qword [r14], rsi
mov qword [rax], rdi
jmp 0x14004294e
mov rax, qword [rsp + 0x78]
and qword [rax], 0
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret