joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140129780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401297b2
call fcn.140107c6c
mov dword [rax], 0x16
call fcn.140107af8
jmp 0x1401298d1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401298d1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401298d1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401297e1
lock or dword [rcx + 0x14], 0x10
jmp 0x1401298d1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401297f5
call fcn.1401298f4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14011eda8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14012c91c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401298bf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14012988a
mov rcx, rsi
call fcn.14011eda8
cmp eax, edi
je 0x140129875
mov rcx, rsi
call fcn.14011eda8
cmp eax, 0xfffffffe
je 0x140129875
mov rcx, rsi
call fcn.14011eda8
movsxd rbx, eax
lea r14, [0x1401d7a60]
mov rcx, rsi
sar rbx, 6
call fcn.14011eda8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14012987c
lea rdx, [0x1401c6f60]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14012988a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401298ae
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401298ae
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401298ae
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401298d4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401298ec
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14012960e
call fcn.140107c6c
mov dword [rax], 0x16
call fcn.140107af8
jmp 0x14012975e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14012975e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14012975e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14012963d
lock or dword [rcx + 0x14], 0x10
jmp 0x14012975e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140129651
call fcn.1401298f4
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140129661
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140129664
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14011eda8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14012c91c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14012974c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401296f7
mov rcx, rbx
call fcn.14011eda8
cmp eax, 0xffffffff
je 0x1401296e2
mov rcx, rbx
call fcn.14011eda8
cmp eax, 0xfffffffe
je 0x1401296e2
mov rcx, rbx
call fcn.14011eda8
movsxd rdi, eax
lea rsi, [0x1401d7a60]
mov rcx, rbx
sar rdi, 6
call fcn.14011eda8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401296e9
lea rdx, [0x1401c6f60]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401296f7
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14012971b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14012971b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14012971b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140129739
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140129744
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140129763
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
ret
jmp 0x1401295d8
Function at 0x14012c470
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1401d7a60]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14012c4ce
cmp word [rdx], r12w
jne 0x14012c4ce
or byte [rax + r8*8 + 0x38], cl
jmp 0x14012c4d4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14012c62f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14012c60a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14012c50d
mov rcx, r9
jmp 0x14012c530
cmp r9, rdx
jae 0x14012c547
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14012c4f1
jmp 0x14012c62f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012c604
cmp dword [rsp + 0x80], edi
je 0x14012c604
mov rdx, r14
lea r11, [0x1401d7a60]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14012c5dd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14012c5b0
mov word [rbx], r12w
jmp 0x14012c62b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14012c5b9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14012c62b
cmp word [rsp + 0x70], r12w
jne 0x14012c5ea
cmp rbx, rsi
je 0x14012c5aa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14012bee0
cmp word [rsp + 0x70], r12w
je 0x14012c62f
mov word [rbx], r13w
jmp 0x14012c62b
lea r11, [0x1401d7a60]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14012c627
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14012c62f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012d648
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14012d6cf
mov rsi, rbx
cmp word [rax], bp
je 0x14012d68e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012d678
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012d674
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14011c924
mov rdi, rax
test rax, rax
je 0x14012d6bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14012ec40
mov rbp, rdi
xor ecx, ecx
call fcn.14011c8e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002160
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400021aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400021aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400021aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021ac
xor al, al
add rsp, 0x28
ret
Function at 0x1400026e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x14000272f
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000272f
bt eax, 0xa
jae 0x14000272f
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000271f
test al, 0x10
je 0x14000271f
mov rcx, rdi
call fcn.14003110c
jmp 0x140002727
mov rcx, rdi
call fcn.140030e80
test eax, eax
jne 0x1400027b4
mov ecx, 0x18
call fcn.14002e7d0
mov rbx, rax
test rax, rax
je 0x1400027b4
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
test rdi, rdi
je 0x14000277d
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rbx
lea rdx, [fcn.1400026e0]
mov ecx, 4
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleExA]
test eax, eax
jne 0x14000279d
mov qword [rbx], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400027d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
lea rcx, [0x14007aee0]
mov dword [0x14007bad8], 1
call fcn.140002270
test eax, eax
jne 0x140002143
xor ecx, ecx
xor eax, eax
xchg qword [0x14007bae0], rax
xchg qword [0x14007baf8], rcx
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
lea r8, [0x14007aee0]
mov qword [0x14007baf0], 0
lea rdx, [0x1400015e0]
mov qword [0x14007bae8], rax
lea rcx, [0x14007bae0]
add rsp, 0x28
jmp 0x1400027d0
add rsp, 0x28
ret
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rdx
mov rdi, rcx
test rcx, rcx
je 0x14000289b
test rdx, rdx
je 0x14000289b
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
mov qword [rsp + 0x48], rsi
xchg qword [rcx], rax
mov eax, ebx
xchg qword [rcx + 0x18], rax
lea ecx, [rbx + 0x10]
call fcn.14002e7d0
mov rsi, rax
test rax, rax
jne 0x140002844
mov rsi, qword [rsp + 0x48]
mov ebx, 0x708
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov qword [rsp + 0x28], rbx
lea r8, [0x140003410]
mov r9, rsi
mov dword [rsp + 0x20], ebx
xor edx, edx
mov qword [rax], rbp
xor ecx, ecx
mov qword [rax + 8], r14
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14000287e
mov rcx, rsi
call fcn.14002e7bc
mov ebx, 0x3eb
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rbp, qword [rsp + 0x50]
mov eax, 0x8fc
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140005bf0
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x88
mov rax, qword [0x14007a0f8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 + 0x10], rsi
xor esi, esi
cmp qword [0x14007d698], rsi
je 0x140005d19
xor edx, edx
mov qword [r11 + 8], rbx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140005c51
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___lu_n
call fcn.140004860
jmp 0x140005d11
mov rdx, qword [0x14007d698]
mov r8d, 0xf01ff
mov rcx, rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140005c8d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_open_service_handle._Status___lu_n
call fcn.140004860
jmp 0x140005d00
lea rax, [rsp + 0x48]
mov dword [rsp + 0x4c], 0x1388
lea r8, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov edx, 2
mov dword [rsp + 0x48], 1
mov rcx, rdi
mov dword [rsp + 0x20], 0xffffffff
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
test eax, eax
jne 0x140005ce4
lea rcx, str.Error:_Unable_to_update_service_failure_actions._n
call fcn.140004860
mov rdx, qword [0x14007d698]
lea rcx, str._S_service_failure_actions_successfully_updated._n
call fcn.140004860
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
lea rax, str.ipfsvc
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
lea rax, [0x140004be0]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x58], rax
call qword [sym.imp.ADVAPI32.DLL_StartServiceCtrlDispatcherW]
mov rsi, qword [rsp + 0x98]
test eax, eax
jne 0x140005d66
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_start_service._Status___lu_n
call fcn.140004860
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400085e0
add rsp, 0x88
ret
Function at 0x1400060d0
Capabilities:
Create service
Modify service

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xc0
mov rax, qword [0x14007a0f8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor ebx, ebx
mov qword [0x14007d698], rcx
xorps xmm0, xmm0
mov r13, r9
mov r12, r8
mov rsi, rdx
mov r15, rcx
movups xmmword [rsp + 0x74], xmm0
test rcx, rcx
je 0x14000627e
test rdx, rdx
je 0x14000627e
lea rcx, [rsp + 0x88]
call fcn.140003950
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
mov rdi, qword [rsp + 0x74]
test rdi, rdi
jne 0x140006158
lea rcx, str.Error:_Unable_to_get_the_executable_file_path._n
call fcn.140004860
mov eax, 0x8fc
jmp 0x140006292
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140006186
lea rcx, str.Error:_Unable_to_get_a_handle_to_the_SCM._n
mov ebx, 0x8fc
call fcn.140004860
jmp 0x140006283
mov qword [rsp + 0x60], rbx
mov r9d, 0xf01ff
mov qword [rsp + 0x58], rbx
mov r8, rsi
mov qword [rsp + 0x50], rbx
mov rdx, r15
mov qword [rsp + 0x48], rbx
mov rcx, rbp
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0xb8], r14
call qword [sym.imp.ADVAPI32.DLL_CreateServiceW]
mov r14, rax
test rax, rax
jne 0x1400061fc
mov ebx, 0x8fc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_create_the_service___lu_._n
call fcn.140004860
jmp 0x14000626b
lea r8, [rsp + 0xa0]
mov qword [rsp + 0xa0], rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
test eax, eax
jne 0x140006231
lea rcx, str.Error:_Unable_to_update_service_description._n
mov ebx, 0x8fd
call fcn.140004860
jmp 0x140006262
mov r8, r13
mov rdx, r12
mov rcx, r15
call fcn.1400067f0
mov ebx, eax
test eax, eax
je 0x140006253
lea rcx, str.Error:_Unable_to_store_configuration_in_the_registry._n
call fcn.140004860
jmp 0x140006262
mov rdx, rsi
lea rcx, str._ws_successfully_installed._n
call fcn.140004860
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov r14, qword [rsp + 0xb8]
jmp 0x140006283
mov rdi, qword [rsp + 0x74]
test rdi, rdi
je 0x140006290
mov rcx, rdi
call fcn.14002e7bc
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400085e0
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400067f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x14007a0f8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x58], rbx
mov r8d, 0x208
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x60]
call fcn.140009950
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.140009950
test rsi, rsi
je 0x140006a37
test rbp, rbp
je 0x140006a37
lea r8, str.SYSTEMCurrentControlSetServices
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140031258
lea r8, [0x1400664e4]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140032358
mov r8, rsi
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140032358
lea rax, [rsp + 0x58]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
je 0x1400068e4
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, str.Error_opening_registry_key__ws:__lu_n
call fcn.140004860
mov eax, 0x3f3
jmp 0x140006a3c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
lea rdx, str.Parameters
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.DLL_RegCreateKeyExW]
mov esi, eax
test eax, eax
je 0x140006938
mov r8d, eax
lea rdx, str.Parameters
lea rcx, str.Error_creating_registry_key__ws:__lu_n
jmp 0x140006a0f
mov r8, rbp
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.140031258
mov edx, 0x2e
lea rcx, [rsp + 0x270]
call fcn.140009ce4
test rax, rax
je 0x140006967
mov word [rax], bx
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.14002f6cc
mov r9d, 1
lea rdx, str.AppName
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x270]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
test eax, eax
je 0x1400069c1
lea rdx, [rsp + 0x270]
lea rcx, str.Error_setting_application__ws:__lu_n
jmp 0x140006a0c
test rdi, rdi
je 0x140006a19
mov edx, 0x104
mov rcx, rdi
call fcn.14002f6cc
mov r9d, 1
lea rdx, str.Server
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
test eax, eax
je 0x140006a19
mov rdx, rdi
lea rcx, str.Error_setting_server__ws:__lu_n
mov r8d, eax
call fcn.140004860
mov ebx, 0x3f3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
jne 0x140006a33
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
jmp 0x140006a3c
mov eax, 0x8fc
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400085e0
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006ac0
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14007a0f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [0x14007d698], rcx
test rcx, rcx
jne 0x140006afb
mov eax, 0x8fc
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400085e0
add rsp, 0x50
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x68], rsi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140006b36
mov ebx, 0x8fc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___lu_n
call fcn.140004860
jmp 0x140006c0e
mov rdx, qword [0x14007d698]
mov r8d, 0xf01ff
mov rcx, rsi
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140006b77
mov ebx, 0x8fc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_open_service_handle._Status___lu_n
call fcn.140004860
jmp 0x140006c00
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test eax, eax
jne 0x140006baf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x426
je 0x140006baf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_stop_the_service._Status___lu_n
call fcn.140004860
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_DeleteService]
test eax, eax
jne 0x140006be4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x430
je 0x140006be4
mov ebx, 0x3f3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_delete_service._Status___lu_n
call fcn.140004860
jmp 0x140006bf7
mov rdx, qword [0x14007d698]
lea rcx, str._ws_uninstalled_n
call fcn.140004860
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400085e0
add rsp, 0x50
pop rbx
ret
Function at 0x1400072b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1400072ff
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400072ff
bt eax, 0xa
jae 0x1400072ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400072ef
test al, 0x10
je 0x1400072ef
mov rcx, rdi
call fcn.14003110c
jmp 0x1400072f7
mov rcx, rdi
call fcn.140030e80
test eax, eax
jne 0x140007384
mov ecx, 0x18
call fcn.14002e7d0
mov rbx, rax
test rax, rax
je 0x140007384
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
test rdi, rdi
je 0x14000734d
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rbx
lea rdx, [fcn.1400072b0]
mov ecx, 4
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleExA]
test eax, eax
jne 0x14000736d
mov qword [rbx], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x14000787f
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000787f
bt eax, 0xa
jae 0x14000787f
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000786f
test al, 0x10
je 0x14000786f
mov rcx, rdi
call fcn.14003110c
jmp 0x140007877
mov rcx, rdi
call fcn.140030e80
test eax, eax
jne 0x140007904
mov ecx, 0x18
call fcn.14002e7d0
mov rbx, rax
test rax, rax
je 0x140007904
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
test rdi, rdi
je 0x1400078cd
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rbx
lea rdx, [fcn.140007830]
mov ecx, 4
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleExA]
test eax, eax
jne 0x1400078ed
mov qword [rbx], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret