joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a3340
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x0070e4c0]
cmp byte [rax + 0x159], 0
jne 0x6a33e3
cmp qword [0x0070e4f8], 0
jne 0x6a3386
call sub.kernel32.dll_GetCurrentThreadId_1
mov ecx, 3
mov rdx, qword [0x00701748]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x0070e4f8], rax
cmp qword [0x0070e4f0], 0
jne 0x6a33a8
xor rcx, rcx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x0070e4f0], rax
cmp qword [0x0070e500], 0
jne 0x6a33e3
xor rcx, rcx
mov edx, 0x3e8
mov r8, qword [0x00701740]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread_1
mov qword [0x0070e500], rax
add rsp, 0x48
ret

Function at 0x6a4630
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
cmp qword [rbx + 0x2d0], 0
je 0x6a4716
cmp dword [rbx + 0x128], 0
jne 0x6a470c
mov rax, qword [rbx + 0x2d0]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x006a4510]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0x120]
cmp dword [rax + 0x10], 0
je 0x6a470c
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x40]
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x6a46ba
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0x120]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x6a470b
mov rcx, qword [rbx + 0x120]
mov edx, esi
call fcn.004fbf50
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x6a46cb
nop
lea rax, [rbx + 0x128]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6a4a60
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rax, qword [0x0070e4c0]
cmp qword [rax + 0x2d0], 0
je 0x6a4c3a
test sil, sil
jne 0x6a4b59
cmp dword [rbx + 0x138], 0
jne 0x6a4b4a
mov rcx, rbx
call fcn.006a91a0
lea rcx, [0x006a4900]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0xa8], 0
je 0x6a4b0c
mov rax, qword [0x0070e4c0]
cmp byte [rax + 0x193], 0
je 0x6a4b0c
mov rax, qword [rbx + 0x1a0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x6a4ae5
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6a4b0b
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor rdx, rdx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6a4aed
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6a4b49
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.004fbf50
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6a4b1d
nop
lea rax, [rbx + 0x138]
add dword [rax], 1
jmp 0x6a4c3a
cmp dword [rbx + 0x138], 0
jle 0x6a4c3a
lea rax, [rbx + 0x138]
sub dword [rax], 1
cmp dword [rbx + 0x138], 0
jne 0x6a4c3a
cmp qword [rbx + 0xa8], 0
je 0x6a4bd9
mov rax, qword [0x0070e4c0]
cmp byte [rax + 0x193], 0
je 0x6a4bd9
mov rax, qword [rbx + 0x1a0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x6a4baf
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6a4bd8
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6a4bb7
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6a4c16
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.004fbf50
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6a4bea
nop
mov rax, qword [rbx + 0x130]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x1a0]
mov rdx, qword [0x0068e998]
call fcn.004117c0
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x6a5e40
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x220
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [rbx + 0x158], 0
je 0x6a5eaf
cmp byte [rbx + 0x193], 0
jne 0x6a5eaf
mov rcx, qword [rbx + 0x2d0]
lea rdx, [rbp + 0x20]
mov r8d, pe_nt_image_headers64
call sub.user32.dll_GetWindowTextW
mov rcx, rsi
lea rdx, [rbp + 0x20]
mov r8d, eax
call fcn.0040e8b0
xor rax, rax
cmp qword [rsi], 0
je 0x6a5e9a
mov rax, qword [rsi]
mov eax, dword [rax - 4]
test eax, eax
jne 0x6a5ebe
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.0040ec20
jmp 0x6a5ebe
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.0040ec20
mov rax, rsi
lea rsp, [rbp + 0x220]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6a95a0
Capabilities:
Hide graphical window from taskbar

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
cmp sil, byte [rbx + 0x193]
je 0x6a9771
mov byte [rbx + 0x193], sil
cmp qword [rbx + 0xa8], 0
je 0x6a96d2
mov rcx, qword [rbx + 0xa8]
call fcn.005b5cb0
test al, al
je 0x6a96d2
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 0x10
jne 0x6a96d2
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 2
jne 0x6a96d2
test sil, sil
je 0x6a964f
mov rcx, qword [rbx + 0x2d0]
xor rdx, rdx
xor r8, r8
call fcn.00693150
mov rcx, qword [rbx + 0xa8]
call fcn.005b56b0
mov rcx, rax
mov dl, 1
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.00693150
jmp 0x6a96ba
call sub.user32.dll_GetForegroundWindow
mov rdi, rax
mov rcx, qword [rbx + 0xa8]
call fcn.005b56b0
cmp rdi, rax
sete dil
mov rcx, qword [rbx + 0xa8]
call fcn.005b56b0
mov rcx, rax
xor rdx, rdx
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.00693150
mov rcx, qword [rbx + 0x2d0]
mov dl, 1
mov r8b, 1
call fcn.00693150
test dil, dil
je 0x6a96ba
mov rcx, qword [rbx + 0xa8]
call fcn.005b56b0
mov rcx, rax
call sub.user32.dll_SetForegroundWindow
mov rcx, qword [rbx + 0xa8]
mov edx, 0xb033
xor r8, r8
xor r9, r9
call fcn.005a90c0
test sil, sil
je 0x6a971c
mov rax, qword [rbx + 0x2d0]
mov rsi, qword [rbx + 0x2d0]
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
or rax, 0x80
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rcx, qword [rbx + 0x2d0]
xor rdx, rdx
call sub.user32.dll_SetWindowTextW
jmp 0x6a9771
mov rax, qword [rbx + 0x2d0]
mov rsi, qword [rbx + 0x2d0]
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
and rax, 0xffffffffffffff7f
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rsi, qword [rbx + 0x2d0]
mov rax, qword [rbx + 0x118]
mov rcx, rax
call fcn.0040f960
mov rcx, rsi
mov rdx, rax
call sub.user32.dll_SetWindowTextW
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x6b2650
Capabilities:
Hide graphical window

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rbx + 0xc0], 0
jne 0x6b2706
mov rcx, qword [rbx + 0x10]
call fcn.005b56b0
mov rcx, qword [0x005c8cc8]
mov dl, 1
mov r8, rax
call fcn.005ac380
mov qword [rbx + 0xc0], rax
mov rsi, qword [rbx + 0xc0]
mov rcx, rsi
xor rdx, rdx
call fcn.005cfa20
lea rax, [rsi + 0x4b0]
mov qword [rax + 8], rbx
lea rcx, [0x006b1cc0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xc0]
call fcn.005b56b0
mov rsi, rax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xc0]
call fcn.005b56b0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6b27b1
mov rcx, qword [rbx + 0x10]
call fcn.005b56b0
mov rcx, qword [0x005c8cc8]
mov dl, 1
mov r8, rax
call fcn.005ac380
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov rcx, rsi
mov dl, 1
call fcn.005cfa20
lea rax, [rsi + 0x4b0]
mov qword [rax + 8], rbx
lea rcx, [0x006b1d20]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xe0]
call fcn.005b56b0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005b56b0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xd0], 0
jne 0x6b284d
mov rcx, qword [rbx + 0x10]
call fcn.005b56b0
mov rcx, qword [0x005c9ca0]
mov dl, 1
mov r8, rax
call fcn.005ac380
mov qword [rbx + 0xd0], rax
mov rax, qword [rbx + 0xd0]
mov byte [rax + 0x480], 1
mov rcx, qword [rbx + 0xd0]
call fcn.005b56b0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov edi, eax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005b56b0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x140003030
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
xor ecx, ecx
movzx ebp, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400030bf
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, bp
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000b980
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400030e0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400029e0
mov rdx, qword [rdi + 0x10]
xorps xmm0, xmm0
xor ecx, ecx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003192
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000b980
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x140004c50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140004dfa
cmp byte [rcx + 0x72], 0
je 0x140004dfa
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x140004cae
xor al, al
jmp 0x140004dfc
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400045b0
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x140004d1e
sub eax, 1
jne 0x140004d92
jmp 0x140004d22
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x140004d6f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400156d4
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x140004d9f
cmp byte [rdi + 0x72], 0
je 0x140004da3
test rbx, rbx
jne 0x140004ce0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.1400047d0
jmp 0x140004cd3
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x140004da3
xor bl, bl
jmp 0x140004da5
mov bl, 1
cmp r9, 0x10
jb 0x140004df5
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x140004df0
test byte [rbp - 0x30], 0x1f
je 0x140004dc3
call fcn.14000fdd4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004dd2
call fcn.14000fdd4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004de1
call fcn.14000fdd4
int3
cmp rcx, 0x27
jbe 0x140004ded
call fcn.14000fdd4
int3
mov rcx, rax
call fcn.14000b9e0
movzx eax, bl
jmp 0x140004dfc
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000b980
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140006ae0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub rsp, 0x298
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140006b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140006ea0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b980
add rsp, 0x298
ret
xor edx, edx
mov qword [rsp + 0x2a0], rbx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140006b73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140006ea0
jmp 0x140006c4b
xor ecx, ecx
mov qword [rsp + 0x290], rdi
mov qword [rsp + 0x60], rcx
lea rax, str.NT_AUTHORITYLocalService
mov qword [rsp + 0x58], rax
lea r8, str.Quick_Access_Local_Service
lea rax, [0x14003ece4]
mov qword [rsp + 0x50], rax
lea r9d, [rcx + 2]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
lea rdx, [0x14003fb58]
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140006bff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.140006ea0
jmp 0x140006c3a
lea rdx, [0x14003fb58]
lea rcx, str._s_is_installed._n
call fcn.140006ea0
mov rcx, rdi
call fcn.140006c70
test eax, eax
jne 0x140006c31
lea rdx, [0x14003fb58]
lea rcx, str.Set_trigger_start_is_fail._n
call fcn.140006ea0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b980
add rsp, 0x298
ret

Function at 0x140006c70
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
lea r8, [r11 - 0x28]
mov qword [r11 - 0x44], rax
mov edx, 8
mov qword [r11 - 0x3c], rax
mov qword [r11 - 0x34], rax
mov dword [rsp + 0x3c], eax
lea rax, [0x14003fb48]
mov dword [rsp + 0x20], 0x14
mov dword [rsp + 0x24], 1
mov qword [r11 - 0x40], rax
xor eax, eax
mov qword [r11 - 0x18], rax
lea rax, [r11 - 0x48]
mov dword [rsp + 0x40], 1
mov qword [r11 - 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b980
add rsp, 0x68
ret
Function at 0x140006cf0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140006d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140006ea0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b980
add rsp, 0x50
pop rdi
ret
mov r8d, 0x10024
mov qword [rsp + 0x60], rbx
lea rdx, [0x14003fb58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140006d93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140006ea0
jmp 0x140006e6b
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140006e35
lea rdx, [0x14003fb58]
lea rcx, str.Stopping__s.
call fcn.140006ea0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140006e12
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140006e16
lea rcx, [0x14003fa84]
call fcn.140006ea0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140006de0
mov eax, dword [rsp + 0x24]
lea rdx, [0x14003fb58]
lea rcx, [0x14003fa88]
cmp eax, 1
je 0x140006e30
lea rcx, str._n_s_failed_to_stop._n
call fcn.140006ea0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140006e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140006ea0
jmp 0x140006e6b
lea rdx, [0x14003fb58]
lea rcx, str._s_is_removed._n
call fcn.140006ea0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140006e82
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b980
add rsp, 0x50
pop rdi
ret
Function at 0x140009da0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, r8d
mov esi, 3
lea r15, [rsp + 0x98]
mov ebp, esi
mov edi, edx
mov r13, rcx
test r8d, r8d
je 0x140009e02
lea rcx, [r15 - 8]
mov r8d, ebx
nop word [rax + rax]
mov eax, dword [rcx + 8]
lea rcx, [rcx + 0x10]
add ebp, 4
add ebp, eax
sub r8, 1
jne 0x140009df0
mov ecx, ebp
call fcn.14000bfc8
mov r14, rax
mov word [rax], di
mov byte [rax + 2], bl
test ebx, ebx
je 0x140009e48
lea rdi, [r15 - 8]
mov r15, rbx
nop dword [rax]
mov ebx, dword [rdi + 8]
lea rdi, [rdi + 0x10]
mov ecx, esi
mov r8d, ebx
add esi, 4
mov dword [rcx + r14], ebx
mov rdx, qword [rdi]
mov ecx, esi
add rcx, r14
call fcn.14000e2a0
add esi, ebx
sub r15, 1
jne 0x140009e20
mov rcx, qword [r13 + 0x28]
lea r9, [rsp + 0x30]
xor ebx, ebx
mov r8d, ebp
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009e6e
cmp ebp, dword [rsp + 0x30]
je 0x140009e76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call fcn.14000bfc0
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b980
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d8d4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14001d73a
call fcn.14000ff04
mov dword [rax], 0x16
call fcn.14000fdb4
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001d71c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001d71c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14001d76c
lock or dword [rax + 0x14], 0x10
jmp 0x14001d71c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001d789
mov rcx, qword [rbp + 0x20]
call fcn.14001e224
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x14001d79e
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14001d7a4
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14001d518
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140029018
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14001d7f7
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14001d71c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001d863
mov rcx, qword [rbp + 0x20]
call fcn.14001d518
cmp eax, 0xffffffff
je 0x14001d84a
mov rcx, qword [rbp + 0x20]
call fcn.14001d518
cmp eax, 0xfffffffe
je 0x14001d84a
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14001d518
movsxd rdi, eax
lea r15, [0x140049500]
mov rcx, rbx
sar rdi, 6
call fcn.14001d518
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14001d851
lea rax, [0x1400472c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001d863
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x14001d899
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001d895
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001d895
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14001d8b7
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14001d8c2
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14001d721
jmp 0x14001d6e8