joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057ac0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
jne 0x140057b23
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016ab50
add rsp, 0x160
pop rbx
ret
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140191ec0
mov r9d, ebx
lea r8, str.IS_Registry::SetIntValue:_RegSetValueEx_failed___d
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140051350
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3

Function at 0x140057b70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140057b92
mov rcx, qword [rcx]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
jne 0x140057bd6
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016ab50
add rsp, 0x160
pop rbx
ret
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140191ec0
mov r9d, ebx
lea r8, str.IS_Registry::SetStrValue:_RegSetValueEx_failed___d
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140051350
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x30]
call fcn.14016bd70
int3
Function at 0x14005a140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14005a15a
test al, 0x10
jne 0x14005a15a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x14005aa30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14005ab41
mov edx, 1
mov r8d, select
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x14005ab41
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005ab41
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14005ab41
mov ecx, 0x20
call fcn.14016aa7c
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
je 0x14005ab26
xorps xmm0, xmm0
mov qword [rsp + 0x68], rbp
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
lea r9, [rsp + 0x60]
mov dword [rax + 0xc], 1
lea r8, [rsp + 0x68]
lea rax, vtable.std::_Ref_count_obj2_class_FileVersionInfo_.0
mov rcx, rsi
mov qword [rdi], rax
lea rdx, [rsp + 0x58]
mov eax, 0x5c
mov qword [rdi + 0x10], rsi
mov word [rsp + 0x58], ax
call sub.VERSION.dll_VerQueryValueA
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x18], rax
lea rax, [rdi + 0x10]
mov qword [rbx], rax
mov rax, rbx
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rax, [rbp + 0x10]
mov qword [rbx + 8], rbp
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
mov rax, rbx
movups xmmword [rbx], xmm0
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005b920
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r12d, r9d
mov r13, r8
mov r14, rdx
mov rbp, rcx
mov r15, qword [rsp + 0xd0]
mov rdx, r15
mov ecx, 0xb0
call fcn.140010e70
mov rbx, rax
mov rax, qword [r14 + 0x18]
xor r8d, r8d
mov esi, r8d
mov ecx, r8d
test rax, rax
je 0x14005b980
mov rcx, qword [r14 + 0x10]
mov rsi, rax
lock inc dword [rax + 0xc]
movzx eax, byte [r14 + 8]
mov qword [rbx + 0x20], r8
lea rdx, [0x14005f5e0]
mov qword [rbx + 0x28], rdx
mov qword [rbx], r8
mov qword [rbx + 8], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
mov dword [rbx + 0x30], r8d
mov byte [rbx + 0x38], al
mov qword [rbx + 0x40], r8
mov qword [rbx + 0x48], r8
test rsi, rsi
je 0x14005b9c3
mov qword [rbx + 0x40], rcx
mov qword [rbx + 0x48], rsi
lock inc dword [rsi + 0xc]
movups xmm0, xmmword [r13]
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [r15]
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], r8
mov qword [rbx + 0x70], r8
mov rax, qword [r15 + 8]
mov qword [rbx + 0x68], rax
mov rax, qword [r15 + 0x10]
mov qword [rbx + 0x70], rax
mov qword [r15 + 8], r8
mov qword [r15 + 0x10], r8
lea rcx, [rbx + 0x78]
mov r9, qword [rsp + 0xd8]
xor edx, edx
call fcn.140025270
test rsi, rsi
je 0x14005ba23
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14005ba23
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x40], xmm0
movq qword [rsp + 0x58], xmm0
movq xmm0, qword [r13 + 8]
movd dword [rsp + 0x50], xmm0
mov rax, qword [r13 + 8]
mov qword [rsp + 0x60], rax
test byte [r14 + 8], 0x10
je 0x14005ba73
test rax, rax
jne 0x14005ba73
mov rax, qword [rbp + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp + 8]
call fcn.140022470
jmp 0x14005bb34
lea rdi, [rbp + 8]
mov rax, qword [rdi]
lock inc dword [rax + 0x30]
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x14005baa0
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.140022470
jmp 0x14005bb34
xor eax, eax
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xb0], r12d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
mov r8d, 1
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14005baf5
mov eax, 0x2746
jmp 0x14005bb05
cmp eax, 0x4d2
jne 0x14005bb05
mov eax, 0x274d
lea rdi, [rbp + 8]
test esi, esi
je 0x14005bb28
cmp eax, 0x3e5
je 0x14005bb28
mov r9d, dword [rsp + 0xd0]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.140022470
jmp 0x14005bb34
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.140022520
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005bd70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r12, r9
mov r13, r8
mov r14, rdx
mov rbp, rcx
mov r15, qword [rsp + 0xe8]
mov rdx, r15
mov ecx, 0xa8
call fcn.140010e70
mov rdi, rax
mov rax, qword [r14 + 0x18]
xor edx, edx
mov esi, edx
mov ecx, edx
test rax, rax
je 0x14005bdcd
mov rcx, qword [r14 + 0x10]
mov rsi, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], rdx
lea rax, [0x14005f790]
mov qword [rdi + 0x28], rax
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], rdx
mov dword [rdi + 0x30], edx
mov qword [rdi + 0x38], rdx
mov qword [rdi + 0x40], rdx
test rsi, rsi
je 0x14005be07
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], rsi
lock inc dword [rsi + 0xc]
movups xmm0, xmmword [r13]
movups xmmword [rdi + 0x48], xmm0
mov rax, qword [r15]
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], rdx
mov qword [rdi + 0x68], rdx
mov rax, qword [r15 + 8]
mov qword [rdi + 0x60], rax
mov rax, qword [r15 + 0x10]
mov qword [rdi + 0x68], rax
mov qword [r15 + 8], rdx
mov qword [r15 + 0x10], rdx
lea rcx, [rdi + 0x70]
mov r9, qword [rsp + 0xf0]
xor r8d, r8d
call fcn.140025270
test rsi, rsi
je 0x14005be68
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14005be68
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x50], xmm0
movq qword [rsp + 0x68], xmm0
movq xmm0, qword [r13 + 8]
movd dword [rsp + 0x60], xmm0
mov rax, qword [r13 + 8]
mov qword [rsp + 0x70], rax
movzx edx, word [r12]
mov rax, qword [rbp + 0x30]
lock inc dword [rax + 0x30]
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x14005bebd
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call fcn.140022470
jmp 0x14005bf58
xor r9d, r9d
mov dword [rsp + 0xe8], r9d
mov eax, select
mov r8d, 0x1c
cmp dx, 2
cmovne eax, r8d
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xe8]
mov r8d, 1
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x14005bf4b
cmp eax, 0x3e5
je 0x14005bf4b
mov r9d, dword [rsp + 0xe8]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call fcn.140022470
jmp 0x14005bf58
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call fcn.140022520
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400637c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400637e4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140063872
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140063840
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140063840
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140191740
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14006385d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140063865
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140063801
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140063950
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140063889
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006388b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400638bd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140191740
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14006394d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400638f8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14006392e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1401767e4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14006394d
cmp rsi, rax
ja 0x140063901
test rsi, rsi
je 0x14006394d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1401767e4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x1400656e0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
call fcn.140065ba0
mov rcx, qword [rbx + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov r8d, 4
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x14006575d
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14016ab50
add rsp, 0x190
pop rbx
ret
xor edx, edx
mov byte [rsp + 0x80], 0
mov r8d, 0xff
lea rcx, [rsp + 0x81]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::disable
lea rax, str.ChangeServiceConfig_failed
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x80]
call fcn.140040fd0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x60]
call fcn.14016bd70
int3

Function at 0x1400657e0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
call fcn.140065ba0
mov rcx, qword [rbx + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov r8d, 2
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x14006585d
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14016ab50
add rsp, 0x190
pop rbx
ret
xor edx, edx
mov byte [rsp + 0x80], 0
mov r8d, 0xff
lea rcx, [rsp + 0x81]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::enableAutoStart
lea rax, str.ChangeServiceConfig_failed
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x80]
call fcn.140040fd0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x60]
call fcn.14016bd70
int3
Function at 0x1400658e0
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
call fcn.140065ba0
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x30]
xor edi, edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x140065943
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140065a03
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x10]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov rcx, rdi
test eax, eax
je 0x140065992
cmp dword [rdi + 4], 4
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, bl
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov byte [rsp + 0x50], 0
mov r8d, 0xff
lea rcx, [rsp + 0x51]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::isDisable
lea rax, str.QueryServiceConfig_failed
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.140040fd0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3
xor edx, edx
mov byte [rsp + 0x50], dil
mov r8d, 0xff
lea rcx, [rsp + 0x51]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::isDisable
lea rax, str.QueryServiceConfig_failed
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.140040fd0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3

Function at 0x140065aa0
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
call fcn.140065ba0
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x50]
xor eax, eax
xorps xmm0, xmm0
mov dword [rsp + 0x70], eax
mov r9d, 0x24
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140065b1c
cmp dword [rsp + 0x54], 1
sete al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14016ab50
add rsp, 0x190
pop rbx
ret
xor edx, edx
mov byte [rsp + 0x80], 0
mov r8d, 0xff
lea rcx, [rsp + 0x81]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::isStop
lea rax, [0x1401a4670]
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x80]
call fcn.140040fd0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3
Function at 0x140065c70
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
mov rsi, rcx
xor ebp, ebp
call fcn.140065ba0
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor edx, edx
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x140065cdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140065d57
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rcx, qword [rsi + 0x10]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x140065dc2
mov rdx, qword [rdi + 0x10]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rbp
inc r8
cmp byte [rdx + r8], bpl
jne 0x140065d17
mov rcx, rbx
call fcn.1400056b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov byte [rsp + 0x60], dil
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::queryBinaryPath
lea rax, str.QueryServiceConfig_failed
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.140040fd0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov byte [rsp + 0x60], bpl
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::queryBinaryPath
lea rax, str.QueryServiceConfig_failed
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.140040fd0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
Function at 0x140066640
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x44]
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
jne 0x1400666ce
call fcn.140067ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.NrUtils::GetFileVersion:_GetFileVersionInfoSize_failed___d
mov rcx, rbx
call fcn.140067c40
jmp 0x1400667f6
mov rcx, rsi
call fcn.1401747a4
mov rbx, rax
test rax, rax
jne 0x1400666f7
call fcn.140067ee0
lea rdx, str.NrUtils::GetFileVersion:_Out_of_memory
mov rcx, rax
call fcn.140067c40
jmp 0x1400667f6
mov r9, rbx
mov r8d, esi
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
jne 0x140066738
call fcn.140174820
call fcn.140067ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.NrUtils::GetFileVersion:_GetFileVersionInfo_failed___d
mov rcx, rbx
call fcn.140067c40
jmp 0x1400667f6
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [0x1401a2834]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x14006677c
mov rcx, rbx
call fcn.140174820
call fcn.140067ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.NrUtils::GetFileVersion:_VerQueryValue_failed___d
mov rcx, rbx
call fcn.140067c40
jmp 0x1400667f6
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.140191ec0
mov r9, qword [rsp + 0x50]
movzx eax, word [r9 + 0xc]
movzx ecx, word [r9 + 0xe]
movzx r8d, word [r9 + 8]
movzx r9d, word [r9 + 0xa]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
lea r8, [0x1401a2868]
mov edx, 0x200
lea rcx, [rsp + 0x60]
call fcn.140006bc0
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400667d6
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140004540
mov rcx, rbx
call fcn.140174820
nop
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x140066840
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xe0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
mov dword [r11 - 0x14], eax
movzx ebx, dl
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rax, [rsp + 0x50]
mov rdx, rcx
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [r11 - 0x78]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
movups xmmword [r11 - 0x64], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [r11 - 0x54], xmm0
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
movups xmmword [r11 - 0x24], xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140066918
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140067ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str.IS_Utils::RunAndWait:_CreateProcess__s_Failed___d
mov r9d, eax
mov rcx, rbx
call fcn.140067c40
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
test bl, bl
je 0x14006692c
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret