joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d4160
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5240
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4b62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4bfa
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4bde
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 0x2fc4d4bd2
cmp qword [rbp - 0x10], 0
je 0x2fc4d4bd2
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 0x2fc4d4b98
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4bfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4d00
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 0x2fc4d4d28
mov eax, 0
jmp 0x2fc4d4d76
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 0x2fc4d4d51
mov eax, 0
jmp 0x2fc4d4d76
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 0x2fc4d4d71
mov eax, 0
jmp 0x2fc4d4d76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4d7c
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 0x2fc4d4dfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4df1
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 0x2fc4d4df1
mov rax, qword [rbp - 8]
jmp 0x2fc4d4e0f
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 0x2fc4d4dc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf1b0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d0290
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cfbb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cfc4a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cfc2e
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 0x2fc4cfc22
cmp qword [rbp - 0x10], 0
je 0x2fc4cfc22
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 0x2fc4cfbe8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cfc4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfd50
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 0x2fc4cfd78
mov eax, 0
jmp 0x2fc4cfdc6
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 0x2fc4cfda1
mov eax, 0
jmp 0x2fc4cfdc6
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 0x2fc4cfdc1
mov eax, 0
jmp 0x2fc4cfdc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cfdcc
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 0x2fc4cfe4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cfe41
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 0x2fc4cfe41
mov rax, qword [rbp - 8]
jmp 0x2fc4cfe5f
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 0x2fc4cfe14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140008bd0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
xor eax, eax
lock cmpxchg dword [0x140201210], ebx
je 0x140008d41
mov eax, ebx
xchg dword [0x140201210], eax
mov eax, 1
xchg dword [0x1402012e4], eax
call fcn.14000daa0
lea ecx, [rbx + 0x67]
call fcn.140015160
cmp dword [0x1402014ec], ebx
je 0x140008c3c
cmp dword [0x1402014f0], ebx
mov qword [rsp + 0x38], rdi
mov edi, ebx
jbe 0x140008c37
nop
xor ecx, ecx
mov r8d, edi
lea edx, [rcx + 3]
call fcn.140014d10
inc edi
cmp edi, dword [0x1402014f0]
jb 0x140008c20
mov rdi, qword [rsp + 0x38]
call fcn.14000ac80
mov ecx, 1
call fcn.14000d610
cmp dword [0x1402012b0], ebx
je 0x140008c66
lea rcx, [0x140201288]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x1402012b0], ebx
mov qword [0x140201280], rbx
lea rcx, [0x140201240]
mov edx, 0x10
nop dword [rax]
lea rcx, [rcx + 4]
mov eax, ebx
xchg dword [rcx - 4], eax
sub rdx, 1
jne 0x140008c80
mov eax, ebx
xchg dword [0x140201230], eax
test byte [0x1402011e0], 1
je 0x140008cc2
lea ecx, [rdx + 0x66]
call fcn.140015160
mov rcx, qword [0x1401f3d20]
mov qword [0x1401f3d20], rbx
mov dword [0x1401f3d00], ebx
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rcx, [0x14034b998]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock and dword [0x140201500], 0xfffffffe
lock and dword [0x140201500], 0xffffffef
mov eax, ebx
lea rcx, [0x14034b998]
xchg dword [0x14034a530], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
xchg dword [0x140201218], eax
test eax, eax
jne 0x140008d0d
lea rcx, str.dbgEngineStore:___Has_not_started_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xchg qword [0x14034b9d0], rbx
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140008d2e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
lea rcx, [0x1402011e8]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x140008d50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, ecx
xor eax, eax
lock cmpxchg dword [0x140201210], ebx
test al, 1
jne 0x140008d84
lea rcx, str.RfeStopINetInterface:__Filtering_Engine_has_not_been_started
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x1402012b0], ebx
je 0x140008e31
cmp qword [0x140201280], rbx
je 0x140008e31
lea rcx, [0x140201288]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [0x140201240]
mov rdx, rdi
xchg dword [rax + rdi*4], ebx
test ebx, ebx
je 0x140008e24
cmp edi, 0xf
ja 0x140008e24
mov rax, qword [0x140201280]
lea rcx, [0x140201288]
shl rdx, 6
mov dword [rdx + rax + 0x20], 0xb2d05e0
mov rax, qword [0x140201280]
mov dword [rdx + rax + 0x24], 0xb2d05e0
lock dec dword [0x140201230]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r9d, r9d
mov dword [rsp + 0x28], 0xb2d05e0
mov edx, edi
mov dword [rsp + 0x20], 0xb2d05e0
mov ecx, 0x120404
lea r8d, [r9 + 2]
call fcn.14000d790
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x140201288]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140013690
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov dword [rsp + 0x68], 0x3480
lea rbx, [0x140201c00]
xor edx, edx
mov rcx, rbx
mov r8d, 0x3480
mov edi, r15d
mov ebp, r15d
mov r14d, r15d
call fcn.14014ba20
lea r12, [0x1403450d0]
xor edx, edx
mov rcx, r12
mov r8d, 0x5460
call fcn.14014ba20
lea rcx, [0x1402013b0]
mov dword [0x140201504], r15d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
lea rcx, [0x1402013b0]
xchg dword [0x14034509c], eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140013737
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x420
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax]
lea rax, [rsp + 0x68]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x884
xor ecx, ecx
inc edi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
je 0x140013817
cmp edi, 1
jl 0x140013740
lea rdi, [0x1403450e8]
mov qword [rsp + 0x70], rsi
nop dword [rax]
cmp qword [rbx + 0x40], r15
je 0x1400137cc
movsxd rax, ebp
mov r8d, ebp
imul rsi, rax, 0x2d0
mov rcx, rbx
add rsi, r12
mov rdx, rsi
call fcn.140012360
test eax, eax
je 0x1400137b3
inc dword [0x140201504]
mov rcx, rsi
call fcn.140010690
inc r14d
cmp dword [rdi + 0x248], r15d
je 0x1400137cc
mov rdx, rsi
mov rcx, rbx
call fcn.140010420
mov dword [rdi], eax
mov rax, qword [rbx + 8]
inc ebp
add rdi, 0x2d0
mov rbx, rax
test rax, rax
jne 0x140013780
mov edx, r14d
call fcn.140013b00
lea rcx, [0x1402013b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, r15d
lea rcx, [0x1402013b0]
xchg dword [0x14034509c], eax
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x70]
jmp 0x14001381d
mov r15d, 0x6f
mov rbx, qword [rsp + 0x78]
mov eax, r15d
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140014080
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x50
xor ebx, ebx
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
xor r8d, r8d
mov dword [rsp + 0x60], ebx
lea rdx, str.SYSTEMCurrentControlSetServicesKiller_Network_ServiceSLibCFG
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140014108
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesKiller_Network_ServiceSLibCFG
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140014149
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 4
lea rdx, str.Redir
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
test rcx, rcx
je 0x140014147
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400194d0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, str.SetupAPI.dll
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14034bc60], rax
test rax, rax
je 0x140019687
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14034be60], rax
test rax, rax
je 0x140019664
mov rcx, qword [0x14034bc60]
lea rdx, [0x1401b80e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14034be50], rax
test rax, rax
je 0x140019641
mov rcx, qword [0x14034bc60]
lea rdx, [0x1401b8140]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14034be38], rax
test rax, rax
je 0x14001961e
mov rcx, qword [0x14034bc60]
lea rdx, [0x1401b81c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14034be40], rax
test rax, rax
je 0x1400195f8
mov rcx, qword [0x14034bc60]
lea rdx, str.SetupDiEnumDeviceInterfaces
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14034be48], rax
test rax, rax
jne 0x1400195b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s:_GetProcAddress_for_SetupDiEmumDeivceInterfaces_failed_Error_d
jmp 0x1400195dd
mov rcx, qword [0x14034bc60]
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14034be58], rax
test rax, rax
jne 0x1400195f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s:_GetProcAddress_for_SetupDiGetDeviceInterfaceDetailW_failed_Error_d
mov r9d, eax
lea r8, str.enum_loadlib
mov ecx, 2
call fcn.140016160
mov al, 1
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.enum_loadlib
mov ecx, 2
mov r9d, eax
lea rdx, str._s:_GetProcAddress_for_SetupDiDestroyDeviceInfoList_failed_Error_d
call fcn.140016160
jmp 0x14001969f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.enum_loadlib
mov ecx, 2
mov r9d, eax
lea rdx, str._s:_GetProcAddress_for_SetupDiGetDeviceRegistryPropertyW_failed_Error_d
call fcn.140016160
jmp 0x14001969f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.enum_loadlib
mov ecx, 2
mov r9d, eax
lea rdx, str._s:_GetProcAddress_for_SetupDiEnumDeviceInfo_failed_Error_d
call fcn.140016160
jmp 0x14001969f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.enum_loadlib
mov ecx, 2
mov r9d, eax
lea rdx, str._s:_GetProcAddress_for_SetupDiGetClassDevsW_failed_Error_d
call fcn.140016160
jmp 0x14001969f
lea r8, str.enum_loadlib
mov ecx, 2
lea rdx, str._s:_LoadLib_for_SetupApi.dll_failed
call fcn.140016160
mov rcx, qword [0x14034bc60]
test rcx, rcx
je 0x1400196bc
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14034bc60], 0
xor al, al
add rsp, 0x28
ret
Function at 0x14002c150
Capabilities:
Start service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov qword [rbp - 0x39], rdx
xor sil, sil
mov rcx, qword [rcx + 8]
xor r14d, r14d
test rcx, rcx
je 0x14002c2b4
cmp qword [rdx + 0x18], 8
jb 0x14002c195
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x21], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 9], xmm1
movdqa xmmword [rbp + 7], xmm0
mov r8, r14
mov qword [rbp - 0x51], r14
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r14
je 0x14002c1e8
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov qword [rbp - 0x51], r8
lea rax, [rsp + 0x20]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x29], rdi
lea rax, [rbp - 0x21]
mov qword [rbp - 0x49], rax
mov rcx, r14
mov qword [rbp + 0x17], rcx
test r8, r8
je 0x14002c227
mov rax, qword [r8]
lea rdx, [rbp - 0x21]
mov rcx, r8
mov rax, qword [rax]
call qword [case.0x140026a06.0]
mov rcx, rax
mov qword [rbp + 0x17], rax
mov r8, qword [rbp - 0x51]
test r8, r8
je 0x14002c24b
mov rax, qword [r8]
lea rcx, [rsp + 0x20]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
mov rcx, qword [rbp + 0x17]
test rdi, rdi
je 0x14002c268
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne sil
mov rcx, qword [rbp + 0x17]
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x14002c297
mov qword [rbp - 0x41], rax
test rcx, rcx
je 0x14002c31d
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
mov rax, qword [rax + 0x10]
call qword [case.0x140026a06.0]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14002c2b4
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002c2ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002c2ea
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c323
mov rcx, r8
call fcn.140149194
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movzx eax, sil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140149500
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140120f40
nop
call fcn.1401501d4
int3
Function at 0x14002c330
Capabilities:
Stop service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov qword [rbp - 0x59], rdx
xor sil, sil
mov rcx, qword [rcx + 8]
xor r14d, r14d
test rcx, rcx
je 0x14002c4a6
cmp qword [rdx + 0x18], 8
jb 0x14002c375
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x41], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmmword [rbp - 0x19], xmm0
mov r8, r14
mov qword [rbp - 0x71], r14
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r14
je 0x14002c3c8
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov qword [rbp - 0x71], r8
lea rax, [rsp + 0x20]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x49], rdi
lea rax, [rbp - 0x41]
mov qword [rbp - 0x69], rax
mov rcx, r14
mov qword [rbp - 9], rcx
test r8, r8
je 0x14002c407
mov rax, qword [r8]
lea rdx, [rbp - 0x41]
mov rcx, r8
mov rax, qword [rax]
call qword [case.0x140026a06.0]
mov rcx, rax
mov qword [rbp - 9], rax
mov r8, qword [rbp - 0x71]
test r8, r8
je 0x14002c42b
mov rax, qword [r8]
lea rcx, [rsp + 0x20]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
mov rcx, qword [rbp - 9]
test rdi, rdi
je 0x14002c45a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], eax
lea r8, [rbp + 7]
lea edx, [rax + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne sil
mov rcx, qword [rbp - 9]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x14002c489
mov qword [rbp - 0x61], rax
test rcx, rcx
je 0x14002c50f
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
mov rax, qword [rax + 0x10]
call qword [case.0x140026a06.0]
mov qword [rbp - 0x49], r14
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14002c4a6
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002c4e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002c4dc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c515
mov rcx, r8
call fcn.140149194
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movzx eax, sil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140149500
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140120f40
nop
call fcn.1401501d4
int3