joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400855b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor eax, eax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rdi, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.1400c4720
mov ebx, eax
test eax, eax
je 0x1400856bf
test rdi, rdi
jne 0x14008560f
xor ebx, ebx
jmp 0x14008561f
mov edx, 0x104
mov rcx, rdi
call fcn.1400c1450
mov rbx, rax
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.1400a7108
lea rcx, [rbx - 1]
cmp rcx, 0x103
ja 0x140085661
cmp byte [rsp + rbx + 0x4f], 0x5c
jne 0x140085661
dec rbx
cmp rbx, 0x104
jae 0x1400856e2
mov byte [rsp + rbx + 0x50], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400c4720
mov ebx, eax
test eax, eax
je 0x1400856bf
lea rcx, [rsp + 0x50]
call fcn.1400c49e4
mov ebx, eax
test eax, eax
je 0x1400856bf
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.14009a768
mov rdi, rax
test rax, rax
je 0x1400856bf
lea rcx, [rsp + 0x50]
mov byte [rax], 0
call fcn.1400855b0
mov ebx, eax
test eax, eax
jne 0x1400856bf
lea rcx, [rsp + 0x50]
mov byte [rdi], 0x5c
call fcn.1400c49e4
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140098420
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
call fcn.140098584
int3

Function at 0x140085af0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140099f70
xor eax, eax
mov dword [rbx], 9
mov qword [rbx + 4], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov qword [rbx + 0xc], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140085bf9
lea ecx, [rax + 1]
mov qword [rsp + 0x250], rsi
lea rsi, [rcx + rcx]
mov qword [rsp + 0x258], rdi
mov qword [rsp + 0x260], r15
mov r15d, ecx
mov rcx, rsi
call fcn.1400a7038
mov rdi, rax
test rax, rax
je 0x140085b96
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140099f70
mov rsi, qword [rsp + 0x250]
mov qword [rbx + 4], rdi
test rdi, rdi
je 0x140085bc4
lea r8, [rsp + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.1400df2b8
lea ecx, [r14 + r14]
lea eax, [rcx + 2]
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x258]
mov rax, rbx
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140098420
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop r14
ret
mov rax, rbx
jmp 0x140085bd7
Function at 0x140089e70
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov ebx, 1
mov qword [rsp + 0x20], rax
mov ecx, 0xfffffff6
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], bx
mov dword [rsp + 0x24], ebx
mov byte [rsp + 0x2e], 0xd
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x38]
mov r8d, ebx
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140098420
add rsp, 0x50
pop rbx
ret
Function at 0x140089f40
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0xd0
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, r8
lea rcx, [rsp + 0x50]
mov rdi, rdx
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x68]
call fcn.140099f70
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, qword [rdi]
mov rsi, rax
test rcx, rcx
jne 0x140089f8e
mov ecx, ebx
jmp 0x140089f9b
mov edx, 0x1fff
call fcn.1400c16cc
mov rcx, rax
cmp word [rsi], 0x22
lea rax, [rcx + 2]
mov rdx, qword [rdi + 8]
cmovne rax, rcx
lea rcx, [rsi + rax*2]
call fcn.14009bb38
mov r14, rax
test rax, rax
jne 0x140089fd5
lea rdx, str.Unable_to_parse_command_line._n
lea ecx, [rax + 3]
call fcn.1400124d0
mov eax, 0x708
jmp 0x14008a18c
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x100], rbp
mov qword [rsp + 0x118], r15
test rcx, rcx
jne 0x140089ff3
mov rax, rbx
jmp 0x140089ffd
mov edx, 0x1fff
call fcn.1400c16cc
mov edx, 0x1fff
lea r15, [r14 + rax*2]
mov rcx, rsi
call fcn.1400c16cc
mov rcx, qword [rdi + 8]
lea rsi, [rax + 1]
test rcx, rcx
jne 0x14008a020
mov rax, rbx
jmp 0x14008a02a
mov edx, 0x1fff
call fcn.1400c16cc
mov edx, 0x1fff
lea rcx, str.server__i
sub rsi, rax
call fcn.1400c16cc
lea r14, [rax + 2]
add r14, rsi
lea rbp, [r14 + r14]
mov rcx, rbp
call fcn.1400a7038
mov rsi, rax
test rax, rax
je 0x14008a166
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140099f70
mov r8, rbp
xor edx, edx
mov rcx, rsi
call fcn.140099f70
mov eax, 0x22
mov rdx, r14
mov word [rsi], ax
mov rcx, rsi
mov r8, qword [rdi]
call fcn.1400df474
lea r8, [0x1401bfc9c]
mov rdx, r14
mov rcx, rsi
call fcn.1400df474
lea r8, [0x1401bfca0]
mov rdx, r14
mov rcx, rsi
call fcn.1400df474
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.1400df474
mov qword [rsp + 0x48], r12
lea rax, [0x1401bd4c4]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0x68
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rdx, rsi
mov dword [rsp + 0x28], 0x8000000
xor ecx, ecx
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x88], ebx
mov qword [rsp + 0x8c], 1
mov qword [rsp + 0x58], rbx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov ecx, 0x3eb
cmove ebx, ecx
mov rcx, rsi
call fcn.1400a7024
mov eax, ebx
jmp 0x14008a17c
lea rdx, str.Unable_to_allocate_memory._n
mov ecx, 3
call fcn.1400124d0
mov eax, 0x708
mov rbp, qword [rsp + 0x100]
mov r15, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140098420
add rsp, 0xd0
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008a910
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r14d, r9d
mov edi, r8d
mov rbx, rcx
test rcx, rcx
je 0x14008ab49
mov r8, rdx
mov qword [rsp + 0x50], rbp
mov edx, 0x104
add rcx, 0x30
call fcn.1400df2b8
test eax, eax
jne 0x14008aab2
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x248], eax
mov dword [rbx + 0x268], r15d
mov qword [rbx + 0x270], r15
mov dword [rbx + 0x238], edi
mov dword [rbx + 0x23c], r14d
mov qword [rbx + 0x240], r15
mov qword [rbx + 0x258], r15
mov qword [rbx + 0x260], r15
mov dword [rbx + 0x24c], 0x40030
mov dword [rbx + 0x250], 0x40030
call fcn.140002190
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14008aab2
mov rcx, rbx
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], r15d
mov esi, dword [rbx + 0x248]
mov ecx, esi
call fcn.1400a7038
mov rdi, rax
test rax, rax
je 0x14008a9ec
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140099f70
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x240], rdi
test rdi, rdi
je 0x14008aab2
mov ecx, 0x298
call fcn.14008a7c0
mov qword [rbx + 0x28], rax
test rax, rax
je 0x14008aab2
lea rdx, [rbx + 0x30]
mov dword [rsp + 0x20], r14d
mov r9d, 1
mov rcx, rax
cmp dword [rbx + 0x238], r15d
jne 0x14008aa38
xor r8d, r8d
jmp 0x14008aa3b
mov r8d, r9d
call fcn.14008b890
test eax, eax
je 0x14008aab2
cmp qword [rbx + 0x240], r15
je 0x14008aab2
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x258], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x260], rax
cmp qword [rbx + 0x28], r15
je 0x14008aa90
mov qword [rsp + 0x28], r15
lea r8, [0x14008ae60]
mov r9, rbx
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x270], rax
cmp qword [rbx + 0x270], r15
je 0x14008aab2
mov eax, 1
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rbx + 0x28]
mov dword [rbx + 0x268], 1
test rcx, rcx
je 0x14008aaca
call fcn.14008b380
mov rcx, qword [rbx + 0x270]
test rcx, rcx
je 0x14008aaf5
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x270], r15
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14008ab15
call fcn.14008bac0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14008ab11
call fcn.1400a7024
mov qword [rbx + 0x28], r15
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x14008ab2d
call fcn.1400a7024
mov qword [rbx + 0x240], r15
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14008b070]
call fcn.140002360
mov eax, r15d
mov qword [rbx + 0x18], r15
jmp 0x14008aa9e
mov rbx, qword [rsp + 0x60]
mov eax, r15d
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14008b0a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14008b0f7
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14008b0f7
call fcn.14008bb70
test eax, eax
je 0x14008b0f7
cmp qword [rbx + 0x270], 0
je 0x14008b0f7
mov rcx, qword [rbx + 0x28]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14008bc60
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14008b3e0
Capabilities:
Connect pipe

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
xor eax, eax
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x14008b457
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
cmp dword [rdi + 0x214], eax
jne 0x14008b43c
cmp dword [rdi + 0x218], eax
jne 0x14008b46a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14008b43c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14008b44b
mov ebx, 1
mov dword [rdi + 0x210], 1
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098420
add rsp, 0x30
pop rdi
ret
lea rdx, [rdi + 0x278]
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x280], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14008b441
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008b435
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x20]
lea rdx, [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x14008b441
jmp 0x14008b44d
Function at 0x14008bb80
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14008bbb3
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008bc3c
test rdx, rdx
jne 0x14008bbc5
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008bc3c
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x208]
cmp dword [rbx + 0x218], edi
jne 0x14008bbe6
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14008bc3c
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + 0x228]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x230], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x14008bc37
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008bc35
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14008bc37
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140098420
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x14008bc60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14008bc93
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008bd1c
test rdx, rdx
jne 0x14008bca5
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008bd1c
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x208]
cmp dword [rbx + 0x218], edi
jne 0x14008bcc6
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14008bd1c
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + 0x250]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x258], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x14008bd17
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008bd15
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14008bd17
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140098420
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x14008d160
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x230
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x1401fb218]
mov rdi, rcx
add eax, 0xfffffffd
cmp eax, 1
jbe 0x14008d309
mov qword [rsp + 0x248], rbx
lea rcx, [rsp + 0xa4]
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x64]
call fcn.140099f70
xor eax, eax
lea rcx, [rsp + 0x110]
xor edx, edx
mov qword [rsp + 0x80], rax
mov r8d, 0x104
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
call fcn.140099f70
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0x104
lea r8d, [rbx + 6]
lea rcx, [rsp + 0x110]
call fcn.140013a60
mov r9, qword [rdi + 8]
lea r8, [rsp + 0x110]
lea rdx, str.__S_s_
lea rcx, [rsp + 0x68]
call fcn.1400851f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
cmp qword [rsp + 0x54], rbx
je 0x14008d2fd
mov rdx, qword [rsp + 0x54]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov qword [rdi + 0x10], rbx
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
mov qword [rdi + 0x18], rbx
mov dword [rsp + 0xa0], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
jne 0x14008d2d6
cmp dword [0x1401ee460], 2
jl 0x14008d2f3
test dword [0x1401ee4ac], 0x10000
je 0x14008d2f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str.c:jenkinsworkspacedptf_srcesifproductsesif_uf_sourceswin_rsrc_app.c
lea rax, str.Unable_to_start_capture_program._Error___d
mov ecx, 0x10000
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_app_in_current_session
lea edx, [rbx + 2]
mov dword [rsp + 0x20], 0x27c
call fcn.140071cc0
jmp 0x14008d2f3
mov rax, qword [rsp + 0x80]
mov ebx, 1
mov qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov rcx, qword [rsp + 0x54]
call fcn.1400a7024
mov eax, ebx
mov rbx, qword [rsp + 0x248]
jmp 0x14008d30e
call fcn.14008d330
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140098420
add rsp, 0x230
pop rdi
ret
Function at 0x14008dcc0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14008dd02
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x10]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008dd02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rbx + 0x20], 0xffffffff
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14008e5e0
Capabilities:
Modify service

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov qword [rsp + 0x70], rbx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14008e62d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
call fcn.1400124d0
jmp 0x14008e6f5
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14008e66a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400124d0
jmp 0x14008e6e7
xor eax, eax
mov dword [rsp + 0x4c], 0x1388
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov edx, 2
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14008e6c6
lea rdx, str.Error:_Unable_to_update_service_failure_actions._n
lea ecx, [rax + 3]
call fcn.1400124d0
lea r8, [0x1401c0400]
mov ecx, 3
lea rdx, str._S_service_failure_actions_successfully_updated._n
call fcn.1400124d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
lea rcx, str.esifsvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x14008e725
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_start_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400124d0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140098420
add rsp, 0x68
ret
Function at 0x14008ed20
Capabilities:
Start service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14008ed5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
add rsp, 0x20
pop rbx
jmp fcn.1400124d0
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14008ed98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400124d0
jmp 0x14008edf4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14008edd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14008edd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_start_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400124d0
jmp 0x14008edeb
lea r8, [0x1401c0400]
mov ecx, 3
lea rdx, str._S_started._n
call fcn.1400124d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]

Function at 0x14008ee10
Capabilities:
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14008ee68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
call fcn.1400124d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140098420
add rsp, 0x50
pop rbx
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14008eea5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400124d0
jmp 0x14008ef04
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14008eee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14008eee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400124d0
lea r8, [0x1401c0400]
mov ecx, 3
lea rdx, str._S_stopped_n
call fcn.1400124d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140098420
add rsp, 0x50
pop rbx
ret
Function at 0x1400df980
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400df76f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400df76f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400df76f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400df76f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400df76f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400df76f
cmp dword [rcx + 0xf8], 0
je 0x1400df76f
mov ecx, ebx
call fcn.1400df8a0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400df4fc
cmp dword [rbp + 0x20], 0
je 0x1400df7bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400df7c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400df708

Function at 0x1400e8204
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e8224
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a82f0
or eax, 0xffffffff
jmp 0x1400e8226
xor eax, eax
add rsp, 0x28
ret
Function at 0x180004080
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, r9d
mov dword [rsp + 0x44], 4
xor r9d, r9d
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x40], r9d
jb 0x1800040b2
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1800040bc
mov rdx, qword [rdx]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x50
pop rbx
ret

Function at 0x180004100
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
xor r8d, r8d
lea rdx, [0x1800eb9bc]
call fcn.180002f10
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1800041a1
mov rdx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180004183
mov rcx, rdi
call fcn.180002f10
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180099a00
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret