joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004fe44
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180049628
xor ebx, ebx
mov rdi, rax
cmp qword [0x180094d10], rbx
jne 0x18004ff4a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18005001f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18005001f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180094d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180094d18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180094d20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180094d30], rax
test rax, rax
je 0x18004ff41
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180094d28], rax
jmp 0x18004ff51
mov rax, qword [0x180094d28]
jmp 0x18004ff58
mov rax, qword [0x180094d28]
mov r11, qword [0x180094d30]
cmp rax, rdi
je 0x18004ffc0
cmp r11, rdi
je 0x18004ffc0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180094d30]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18004ffc0
test rax, rax
je 0x18004ffc0
call rsi
test rax, rax
je 0x18004ffba
lea rcx, [rsp + 0x88]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18004ffba
test byte [rsp + 0x38], 1
jne 0x18004ffc0
bts ebp, 0x15
jmp 0x18004fffe
mov rcx, qword [0x180094d18]
cmp rcx, rdi
je 0x18004fffe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18004fffe
call rax
mov rbx, rax
test rax, rax
je 0x18004fffe
mov rcx, qword [0x180094d20]
cmp rcx, rdi
je 0x18004fffe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18004fffe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180094d10]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18005001f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180050021
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000284a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000282e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002822
cmp qword [rbp - 0x10], 0
je 0x140002822
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027e8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000284b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002950
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002978
mov eax, 0
jmp 0x1400029c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400029a1
mov eax, 0
jmp 0x1400029c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400029c1
mov eax, 0
jmp 0x1400029c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400029cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002a4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002a41
mov rax, qword [rbp - 8]
jmp 0x140002a5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002a14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Create process on windows
Reference absolute stream path on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm1, xmm1
lea rdx, str.C:Users_salerDesktopgminer_3_44_windows64miner.exe___algo_kawpow___server_rvn.2miners.com:6060___user_44mhckSNB7RbyqGDnY4LM9fcSS1pFraQk11vihwE2DMB4x75UxkUBWgEm3TjzW5PwpKnfNi36zWrw3CTJZvom29H3bLkk4N____cuda_1
movups xmmword [rsp + 0x74], xmm1
xor eax, eax
xor r9d, r9d
mov dword [r11 - 0x24], eax
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
movups xmmword [r11 - 0x74], xmm1
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x64], xmm1
movups xmmword [r11 - 0x54], xmm1
movups xmmword [r11 - 0x44], xmm1
movups xmmword [r11 - 0x34], xmm1
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x1400010d4
lea rdx, str.Gminer_started_successfully
call fcn.140001110
mov rcx, rax
lea rdx, [0x1400012f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400010f0
lea rdx, str.Failed_to_start_gminer
call fcn.140001110
mov rcx, rax
lea rdx, [0x1400012f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400013b0
add rsp, 0xf8
ret

Function at 0x140001c78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cc4
xor al, al
add rsp, 0x28
ret
Function at 0x1400026f0
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 0x14000273f
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000273f
bt eax, 0xa
jae 0x14000273f
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000272f
test al, 0x10
je 0x14000272f
mov rcx, rdi
call fcn.14003112c
jmp 0x140002737
mov rcx, rdi
call fcn.140030ea0
test eax, eax
jne 0x1400027c4
mov ecx, 0x18
call fcn.14002e7f0
mov rbx, rax
test rax, rax
je 0x1400027c4
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
test rdi, rdi
je 0x14000278d
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.1400026f0]
mov ecx, 4
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleExA]
test eax, eax
jne 0x1400027ad
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 0x1400027e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
lea rcx, [0x14007aee0]
mov dword [0x14007bad8], 1
call fcn.140002280
test eax, eax
jne 0x140002153
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 0x1400027e0
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 0x1400028ab
test rdx, rdx
je 0x1400028ab
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.14002e7f0
mov rsi, rax
test rax, rax
jne 0x140002854
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, [0x140003420]
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 0x14000288e
mov rcx, rsi
call fcn.14002e7dc
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 0x140005c10
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 0x140005d39
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 0x140005c71
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.140004880
jmp 0x140005d31
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 0x140005cad
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_open_service_handle._Status___lu_n
call fcn.140004880
jmp 0x140005d20
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 0x140005d04
lea rcx, str.Error:_Unable_to_update_service_failure_actions._n
call fcn.140004880
mov rdx, qword [0x14007d698]
lea rcx, str._S_service_failure_actions_successfully_updated._n
call fcn.140004880
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, [0x140004c00]
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 0x140005d86
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_start_service._Status___lu_n
call fcn.140004880
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140008600
add rsp, 0x88
ret
Function at 0x1400060f0
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 0x14000629e
test rdx, rdx
je 0x14000629e
lea rcx, [rsp + 0x88]
call fcn.140003960
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
mov rdi, qword [rsp + 0x74]
test rdi, rdi
jne 0x140006178
lea rcx, str.Error:_Unable_to_get_the_executable_file_path._n
call fcn.140004880
mov eax, 0x8fc
jmp 0x1400062b2
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x1400061a6
lea rcx, str.Error:_Unable_to_get_a_handle_to_the_SCM._n
mov ebx, 0x8fc
call fcn.140004880
jmp 0x1400062a3
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 0x14000621c
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.140004880
jmp 0x14000628b
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 0x140006251
lea rcx, str.Error:_Unable_to_update_service_description._n
mov ebx, 0x8fd
call fcn.140004880
jmp 0x140006282
mov r8, r13
mov rdx, r12
mov rcx, r15
call fcn.140006810
mov ebx, eax
test eax, eax
je 0x140006273
lea rcx, str.Error:_Unable_to_store_configuration_in_the_registry._n
call fcn.140004880
jmp 0x140006282
mov rdx, rsi
lea rcx, str._ws_successfully_installed._n
call fcn.140004880
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 0x1400062a3
mov rdi, qword [rsp + 0x74]
test rdi, rdi
je 0x1400062b0
mov rcx, rdi
call fcn.14002e7dc
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140008600
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006810
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.140009970
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.140009970
test rsi, rsi
je 0x140006a57
test rbp, rbp
je 0x140006a57
lea r8, str.SYSTEMCurrentControlSetServices
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140031278
lea r8, [0x140065ff4]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140032378
mov r8, rsi
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140032378
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 0x140006904
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, str.Error_opening_registry_key__ws:__lu_n
call fcn.140004880
mov eax, 0x3f3
jmp 0x140006a5c
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 0x140006958
mov r8d, eax
lea rdx, str.Parameters
lea rcx, str.Error_creating_registry_key__ws:__lu_n
jmp 0x140006a2f
mov r8, rbp
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.140031278
mov edx, 0x2e
lea rcx, [rsp + 0x270]
call fcn.140009d04
test rax, rax
je 0x140006987
mov word [rax], bx
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.14002f6ec
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 0x1400069e1
lea rdx, [rsp + 0x270]
lea rcx, str.Error_setting_application__ws:__lu_n
jmp 0x140006a2c
test rdi, rdi
je 0x140006a39
mov edx, 0x104
mov rcx, rdi
call fcn.14002f6ec
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 0x140006a39
mov rdx, rdi
lea rcx, str.Error_setting_server__ws:__lu_n
mov r8d, eax
call fcn.140004880
mov ebx, 0x3f3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
jne 0x140006a53
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
jmp 0x140006a5c
mov eax, 0x8fc
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140008600
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006ae0
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 0x140006b1b
mov eax, 0x8fc
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008600
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 0x140006b56
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.140004880
jmp 0x140006c2e
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 0x140006b97
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.140004880
jmp 0x140006c20
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test eax, eax
jne 0x140006bcf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x426
je 0x140006bcf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_stop_the_service._Status___lu_n
call fcn.140004880
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_DeleteService]
test eax, eax
jne 0x140006c04
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x430
je 0x140006c04
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.140004880
jmp 0x140006c17
mov rdx, qword [0x14007d698]
lea rcx, str._ws_uninstalled_n
call fcn.140004880
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.140008600
add rsp, 0x50
pop rbx
ret