joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016de0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
lea rcx, str.KXSVC::SetServiceConfig_n
mov r14, r9
mov rbp, r8
mov rbx, rdx
call fcn.1400213c0
xor edx, edx
mov r8d, 0xf003f
mov rcx, rbx
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140016ec8
mov r8d, 0xf01ff
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140016ea9
mov r8, r14
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x140016e81
lea rcx, str.KXSVC::SetServiceFailureActions___ChangeServiceConfig2_success_n
call fcn.1400213c0
mov rcx, rbx
mov dil, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140016edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::SetServiceFailureActions___ChangeServiceConfig2_failed___ld__n
call fcn.140021160
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140016edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::SetServiceFailureActions___OpenService_error___d_n
call fcn.140021160
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140016edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::SetServiceFailureActions___OpenSCManager_error___d_n
call fcn.140021160
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140017010
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rcx, str.KXSVC::StartService_n
mov rbp, r8
mov rbx, rdx
call fcn.1400213c0
xor edx, edx
mov r8d, 0xf003f
mov rcx, rbx
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x1400170c0
mov r8d, 0xf01ff
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400170a1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14001708d
lea rcx, str.KXSVC::StartService___Control_service_success_n
call fcn.1400213c0
mov dil, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400170d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::StartService___OpenService_error___d_n
call fcn.140021160
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400170d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::StartService___OpenSCManager_error___d_n
call fcn.140021160
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017320
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.KXSVC::UnistallService_n
mov rsi, r8
mov rbx, rdx
call fcn.1400213c0
xor edx, edx
mov r8d, 0xf003f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14001741e
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400173ff
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400173aa
lea rcx, str.KXSVC::UnnstallService___Stop_service_success_n
call fcn.1400213c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400173d7
lea rcx, str.KXSVC::UnnstallService___DeleteService_success_n
call fcn.1400213c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140017432
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::UnnstallService___DeleteService_error___d_n
call fcn.140021160
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140017432
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::UnnstallService___OpenService_error___d_n
call fcn.140021160
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140017432
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.KXSVC::UnnstallService___OpenSCManager_error___d_n
call fcn.140021160
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140027790
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140017be0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14016b140]
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 rdi, rax
test rax, rax
je 0x140017c6d
mov r8d, 0xf01ff
lea rdx, str.spooler
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140017c64
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140017c5b
cmp dword [rsp + 0x24], 4
jne 0x140017c5b
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140017cce
mov r8d, 0xf01ff
lea rdx, str.spooler
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140017cc5
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140027790
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14001e720
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x440
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rsp + 0x430], rax
lea rcx, [rsp + 0x20]
mov rbp, r8
sub rcx, rdx
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x14001e750
mov r8d, 2
mov qword [rsp + 0x470], r15
lea rdx, [0x1401065d0]
xor dil, dil
lea rcx, [rsp + 0x20]
xor bl, bl
call fcn.1400d14f8
test eax, eax
movzx esi, bl
mov r14d, 0x5c
lea rcx, [rsp + 0x20]
mov r12d, 1
mov edx, r14d
cmove esi, r12d
call fcn.1400c05e8
mov rbx, rax
test rax, rax
je 0x14001e886
xor r15d, r15d
nop word [rax + rax]
mov word [rbx], r15w
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14001e7d0
cmp rcx, 2
jbe 0x14001e839
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001e839
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
sub edx, 5
je 0x14001e827
sub edx, 0x76
je 0x14001e820
sub edx, 0x26
je 0x14001e839
cmp edx, 0x16
je 0x14001e839
mov edx, eax
lea rcx, str.KXAPI::CreateDirectory___failed__ld_n
call fcn.140020f50
xor eax, eax
jmp 0x14001e889
test sil, sil
je 0x14001e81c
jmp 0x14001e839
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.1400c05e8
test rax, rax
jne 0x14001e81c
mov word [rbx], r14w
lea rcx, [rbx + 2]
cmp word [rbx + 2], r15w
mov edx, r14d
movzx edi, dil
cmovne edi, r12d
call fcn.1400c05e8
mov rbx, rax
test rax, rax
jne 0x14001e7c0
test dil, dil
je 0x14001e886
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001e886
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001e81c
mov eax, r12d
mov r15, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140027790
mov rbx, qword [rsp + 0x478]
add rsp, 0x440
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001e8c0
Capabilities:
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
lea rcx, str.KXAPI::DeleteFileAfterReboot_____s__n
call fcn.1400213c0
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [rbx + 5], 0
je 0x14001e90c
lea rcx, str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.140020f50
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.140020f50
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x30]
mov eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x14001e940
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ebx, 1
mov rcx, rdi
lea edx, [rbx + 0x7f]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001e9f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001e9a0
lea rcx, str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.140020f50
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 3
jne 0x14001e9c3
lea rcx, str.KXAPI::DeleteFile___Can_not_find_the_file_path._n
call fcn.140020f50
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rsi + 5], 0
je 0x14001e9d7
lea rcx, str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.140020f50
jmp 0x14001e9f2
lea rcx, str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.140020f50
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, 2
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ea90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
lea r8, [rsp + 0x20]
mov rbx, rdx
mov word [rsp + 0x30], di
xor ecx, ecx
lea edx, [rdi + 0x23]
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x14001eae7
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp word [rsp + 0x30], di
je 0x14001eb2b
test rbx, rbx
je 0x14001eb10
lea rcx, [rsp + 0x30]
sub rbx, rcx
lea rax, [rsp + 0x30]
movzx ecx, word [rax]
mov word [rbx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14001eb00
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x14001eb20
jmp 0x14001eb2d
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140027790
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x14001ff00
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes
Get session information

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp fcn.14001fa20
Function at 0x140020f50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
lea rbp, [rsp - 0x1f98]
mov eax, 0x2098
call fcn.140028080
sub rsp, rax
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x1f80], rax
cmp byte [0x140173880], 0
mov rbx, rcx
jne 0x140020fa5
cmp byte [0x140173881], 0
je 0x14002113e
mov qword [rsp + 0x2090], rdi
lea rdi, [rbp + 0x1fb8]
call fcn.140003700
mov qword [rsp + 0x28], rdi
lea rdx, [rbp + 0xf80]
xor edi, edi
mov r9, rbx
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
or rcx, 1
call fcn.1400c6a70
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x74]
lea rbx, [rbp + 0xf80]
movzx edx, word [rsp + 0x72]
movzx r8d, word [rsp + 0x70]
movzx eax, word [rsp + 0x76]
movzx r10d, word [rsp + 0x68]
movzx r11d, word [rsp + 0x6e]
movzx r9d, word [rsp + 0x6a]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], edx
mov edx, 0xffa
mov dword [rsp + 0x30], r8d
lea r8, [0x140107180]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.140021ca0
cmp byte [0x140173880], dil
je 0x140021062
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x140173881], dil
je 0x140021136
cmp byte [0x140173890], dil
je 0x140021136
cmp byte [0x140173ab0], dil
je 0x140021099
lea rcx, [0x140173ab0]
call fcn.140021620
cmp eax, dword [0x14016b070]
jbe 0x1400210f3
movzx eax, word [rsp + 0x72]
movzx ecx, word [rsp + 0x70]
movzx edx, word [rsp + 0x6e]
movzx r8d, word [rsp + 0x6a]
movzx r9d, word [rsp + 0x68]
mov dword [rsp + 0x48], eax
mov eax, dword [0x140173994]
mov dword [rsp + 0x40], ecx
lea rcx, [0x140173ab0]
mov dword [rsp + 0x38], edx
mov edx, 0x208
mov dword [rsp + 0x30], r8d
lea r8, str._sLOG._d._02i._02i._02i._02i._02i.txt
mov dword [rsp + 0x28], r9d
lea r9, [0x140173890]
mov dword [rsp + 0x20], eax
call fcn.140021ca0
cmp byte [0x140173ab0], dil
je 0x140021136
lea r8, [0x1401071d8]
mov qword [rsp + 0x60], rdi
lea rdx, [0x140173ab0]
lea rcx, [rsp + 0x60]
call fcn.1400d1e84
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140021136
lea rcx, [rbp - 0x80]
call fcn.1400d2960
mov rcx, qword [rsp + 0x60]
call fcn.1400d1f60
mov rdi, qword [rsp + 0x2090]
mov rcx, qword [rbp + 0x1f80]
xor rcx, rsp
call fcn.140027790
add rsp, 0x2098
pop rbx
pop rbp
ret
Function at 0x140021160
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x4090
call fcn.140028080
sub rsp, rax
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rsp + 0x4070], rax
cmp byte [0x140173880], 0
mov rbx, rcx
jne 0x1400211ad
cmp byte [0x140173881], 0
je 0x140021398
mov qword [rsp + 0x4088], rdi
lea rdi, [rsp + 0x40a8]
call fcn.140003700
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x2070]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1000
mov rcx, qword [rax]
or rcx, 1
call fcn.1400c6adc
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
lea rbx, [rsp + 0x2070]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x60]
movzx r11d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
mov edx, 0xffa
mov dword [rsp + 0x30], r8d
lea r8, str.__02i__02i__02i__02i:_02i:_02i:_03i___ERROR___s
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.140003710
cmp byte [0x140173880], 0
mov rdi, qword [rsp + 0x4088]
je 0x140021279
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x140173881], 0
je 0x140021398
cmp word [0x140173cc0], 0
je 0x140021398
cmp word [0x1401740e0], 0
je 0x1400212b2
lea rcx, [0x1401740e0]
call fcn.140021690
cmp eax, dword [0x14016b070]
jbe 0x14002131e
movzx ecx, word [rsp + 0x68]
lea r10, [0x14016b078]
movzx edx, word [rsp + 0x66]
movzx r8d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
movzx eax, word [rsp + 0x6a]
cmp qword [reloc.WS2_32.dll_getsockopt], 8
mov dword [rsp + 0x48], eax
cmovae r10, qword [0x14016b078]
mov dword [rsp + 0x40], ecx
lea rcx, [0x1401740e0]
mov dword [rsp + 0x38], edx
mov edx, 0x208
mov dword [rsp + 0x30], r8d
lea r8, str._s_s._02i._02i._02i._02i._02i.txt
mov dword [rsp + 0x28], r9d
lea r9, [0x140173cc0]
mov qword [rsp + 0x20], r10
call fcn.140003710
cmp word [0x1401740e0], 0
je 0x140021398
lea rdx, [0x140107288]
lea rcx, [0x1401740e0]
call fcn.1400d1e70
mov rbx, rax
test rax, rax
je 0x140021398
lea rax, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
nop
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140021350
cmp word [rsp + rcx*2 + 0x6e], 0xa
je 0x140021383
lea rax, [rsp + 0x70]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140021370
mov ecx, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rax], ecx
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400d281c
mov rcx, rbx
call fcn.1400d1f60
mov rcx, qword [rsp + 0x4070]
xor rcx, rsp
call fcn.140027790
add rsp, 0x4090
pop rbx
ret
Function at 0x1400213c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x4090
call fcn.140028080
sub rsp, rax
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rsp + 0x4070], rax
cmp byte [0x140173880], 0
mov rbx, rcx
jne 0x14002140d
cmp byte [0x140173881], 0
je 0x1400215f8
mov qword [rsp + 0x4088], rdi
lea rdi, [rsp + 0x40a8]
call fcn.140003700
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x2070]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1000
mov rcx, qword [rax]
or rcx, 1
call fcn.1400c6adc
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
lea rbx, [rsp + 0x2070]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x60]
movzx r11d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
mov edx, 0xffa
mov dword [rsp + 0x30], r8d
lea r8, str.__02i__02i__02i__02i:_02i:_02i:_03i___INFO___s
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.140003710
cmp byte [0x140173880], 0
mov rdi, qword [rsp + 0x4088]
je 0x1400214d9
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x140173881], 0
je 0x1400215f8
cmp word [0x140173cc0], 0
je 0x1400215f8
cmp word [0x1401740e0], 0
je 0x140021512
lea rcx, [0x1401740e0]
call fcn.140021690
cmp eax, dword [0x14016b070]
jbe 0x14002157e
movzx ecx, word [rsp + 0x68]
lea r10, [0x14016b078]
movzx edx, word [rsp + 0x66]
movzx r8d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
movzx eax, word [rsp + 0x6a]
cmp qword [reloc.WS2_32.dll_getsockopt], 8
mov dword [rsp + 0x48], eax
cmovae r10, qword [0x14016b078]
mov dword [rsp + 0x40], ecx
lea rcx, [0x1401740e0]
mov dword [rsp + 0x38], edx
mov edx, 0x208
mov dword [rsp + 0x30], r8d
lea r8, str._s_s._02i._02i._02i._02i._02i.txt
mov dword [rsp + 0x28], r9d
lea r9, [0x140173cc0]
mov qword [rsp + 0x20], r10
call fcn.140003710
cmp word [0x1401740e0], 0
je 0x1400215f8
lea rdx, [0x140107288]
lea rcx, [0x1401740e0]
call fcn.1400d1e70
mov rbx, rax
test rax, rax
je 0x1400215f8
lea rax, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
nop
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400215b0
cmp word [rsp + rcx*2 + 0x6e], 0xa
je 0x1400215e3
lea rax, [rsp + 0x70]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400215d0
mov ecx, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rax], ecx
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400d281c
mov rcx, rbx
call fcn.1400d1f60
mov rcx, qword [rsp + 0x4070]
xor rcx, rsp
call fcn.140027790
add rsp, 0x4090
pop rbx
ret
Function at 0x140021620
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140021681
xor edx, edx
mov qword [rsp + 0x50], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140021690
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400216f1
xor edx, edx
mov qword [rsp + 0x50], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140021d70
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rdi, rdx
mov qword [rsp + 0x30], rbp
mov rbx, rcx
test rcx, rcx
je 0x140021ed1
cmp word [rcx], bp
je 0x140021ed1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test eax, eax
je 0x140021eb2
mov r8d, eax
lea rcx, str.RegConnectRegistry_failed_____s___ld__n
mov rdx, rbx
call fcn.1400213c0
mov qword [rsp + 0x30], rbp
cmp esi, 0x35
jne 0x140021ecc
lea rcx, str.__Try_to_start_Remote_Registry_service_n
call fcn.1400213c0
xor edx, edx
mov r8d, 0xf003f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140021e6c
mov r8d, 0xf01ff
lea rdx, str.RemoteRegistry
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140021e4d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140021e39
lea rcx, str.StartService___Control_service_success_n
call fcn.140020f50
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140021e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.StartService___OpenService_error___d_n
call fcn.140020f50
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140021e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.StartService___OpenSCManager_error___d_n
call fcn.140020f50
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x140021eb2
mov r8d, eax
lea rcx, str.RegConnectRegistry_failed_____s___ld__n
mov rdx, rbx
call fcn.1400213c0
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rax, rbp
jmp 0x140021eb7
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret