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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rdi, r9
mov r15, rdx
mov qword [rsp + 0x60], r8
lea r14, [r8 + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [0x140429a18]
test al, 1
jne 0x140111397
or eax, 1
mov dword [0x140429a18], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1404299f0], rax
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
lea rdx, [0x14034ce18]
lea rcx, [0x1404299f0]
call fcn.1400ea630
mov rbx, rax
test rax, rax
je 0x140111441
mov rsi, qword [rdi + 8]
test esi, esi
jne 0x1401113d5
mov rdx, qword [r15]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140111433
shl esi, 5
movsxd rcx, esi
call fcn.1402b2274
mov rbp, rax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
cmp rdx, rcx
je 0x14011140c
mov rcx, rax
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
lea rcx, [rcx + 0x20]
mov rdx, qword [rdx]
cmp rdx, qword [rdi]
jne 0x1401113f1
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
call fcn.1402b712c
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140111be0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor eax, eax
lea rcx, [rsp + 0x48]
mov rbx, rdx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x84]
xor edx, edx
mov r8d, 0x118
call fcn.1402bfa30
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [rsp + 0x68]
movzx r8d, word [rsp + 0x194]
cmp word [rsp + 0x48], 9
mov r9d, dword [rsp + 0x88]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x8c]
lea rax, [0x140350408]
lea rdx, [0x140350460]
cmove rdx, rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
mov r8d, dword [rsp + 0x84]
lea rdx, str._u._u._u._u._s__u
mov rcx, rbx
call fcn.1401fcfe0
mov rax, rbx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x1b0
pop rbx
ret
Function at 0x140111e90
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x78], 0
mov word [rsp + 0x7c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140111f57
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140111f53
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x90
pop rbx
ret

Function at 0x140111f80
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [0x140429540]
test eax, eax
je 0x140111fb8
setns al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x88
ret
lea rax, [rsp + 0x68]
mov qword [rsp + 0x80], rbx
xor ebx, ebx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x12]
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140112042
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x80]
or edx, 0xffffffff
test eax, eax
mov ecx, 1
cmove ecx, edx
cmp eax, 1
sete al
mov dword [0x140429540], ecx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x88
ret
Function at 0x140113c80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x390], rax
lea rcx, [rbp + 0x180]
xor edi, edi
mov edx, 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140113e03
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
mov word [rbp + 0x184], di
call qword [sym.imp.pdh.dll_PdhOpenQueryW]
test eax, eax
jne 0x140113e03
lea rax, str.LogicalDisk
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x180]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, str.Avg._Disk_Queue_Length
xor r9d, r9d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0xffffffff
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 0x100
call qword [sym.imp.pdh.dll_PdhMakeCounterPathW]
mov rcx, qword [rsp + 0x20]
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
xor r8d, r8d
call qword [sym.imp.pdh.dll_PdhAddCounterW]
test eax, eax
jne 0x140113df8
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x4c0], rbx
movaps xmmword [rsp + 0x4a0], xmm6
call qword [sym.imp.pdh.dll_PdhCollectQueryData]
mov ebx, eax
movsd xmm6, qword [0x140371fc8]
nop
test ebx, ebx
jne 0x140113de8
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.pdh.dll_PdhCollectQueryData]
mov ebx, eax
test eax, eax
jne 0x140113de1
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x1200
call qword [sym.imp.pdh.dll_PdhGetFormattedCounterValue]
mov ebx, eax
test eax, eax
jne 0x140113de1
movsd xmm2, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
lea rcx, str._s___3.1f_r_n
movq r8, xmm2
call fcn.1402b9694
comisd xmm6, xmmword [rsp + 0x40]
ja 0x140113de8
inc edi
cmp edi, 0x1e
jb 0x140113d80
mov rbx, qword [rsp + 0x4c0]
movaps xmm6, xmmword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.pdh.dll_PdhCloseQuery]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1402b6d40
mov rdi, qword [rsp + 0x4c8]
add rsp, 0x4b0
pop rbp
ret
Function at 0x140113e30
Capabilities:
Query service status

Disassembly:
push r13
push r15
sub rsp, 0x68
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13d, 1
xor edx, edx
xor ecx, ecx
mov r8d, r13d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x140113fa1
lea r8d, [r13 + 4]
lea rdx, str.wscsvc
mov rcx, rax
mov qword [rsp + 0x50], r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x140113f93
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], rsi
mov edi, r12d
mov ebp, r12d
nop word [rax + rax]
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140113edd
cmp dword [rsp + 0x2c], 4
je 0x140113f68
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
jne 0x140113f5a
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x140113f5a
mov ecx, esi
call fcn.1402b7390
mov rdi, rax
test rax, rax
je 0x140113f5a
lea r9, [rsp + 0x20]
mov r8d, esi
mov rdx, rax
mov rcx, r14
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140113f4e
mov eax, dword [rdi + 4]
cmp eax, 4
jne 0x140113f44
movzx ebx, r13b
jmp 0x140113f4e
movzx ebx, bl
cmp eax, 3
cmove ebx, r13d
mov rcx, rdi
call fcn.1402b7350
test bl, bl
jne 0x140113f68
inc ebp
cmp ebp, 0x12c
jb 0x140113ec0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x68
pop r15
pop r13
ret
Function at 0x140113fc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rsi, rcx
xor r14b, r14b
call fcn.1400fe750
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x1401141c2
mov eax, dword [0x140345f88]
movsd xmm0, qword [0x140345f80]
lea rcx, [rbp + 0x2b0]
mov dword [rbp + 0x158], eax
movzx eax, word [0x140345f8c]
mov edx, 0x104
movsd qword [rbp + 0x150], xmm0
mov word [rbp + 0x15c], ax
xor eax, eax
mov qword [rsp + 0x5f8], r15
mov qword [rbp + 0x162], rax
mov qword [rbp + 0x16a], rax
mov qword [rbp + 0x172], rax
mov qword [rbp + 0x17a], rax
mov qword [rbp + 0x182], rax
mov qword [rbp + 0x18a], rax
mov qword [rbp + 0x192], rax
mov qword [rbp + 0x19a], rax
mov qword [rbp + 0x1a2], rax
mov dword [rbp + 0x1aa], eax
mov word [rbp + 0x1ae], ax
mov word [rbp + 0x160], bx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [rbp + 0x2b0]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
lea rcx, [rbp + 0x150]
xor r9d, r9d
mov edx, 0x100081
mov dword [rsp + 0x28], ebx
mov word [rbp + 0x158], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1401141b1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b0]
xor r8d, r8d
mov edx, 0x560000
mov rcx, r15
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401141a8
cmp dword [rsp + 0x44], 0x20
jb 0x1401141a8
mov r9d, dword [rbp + 0x1b8]
lea r8, str.DosDevicesPhysicalDrive_d
lea edx, [rbx + 0x28]
lea rcx, [rbp + 0x160]
call fcn.1402ba928
lea r8, [rbp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0xff
call fcn.1402b6e28
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x1fe
mov edx, 0x22e04c
mov rcx, rdi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401141a8
cmp byte [rsp + 0x40], bl
mov r14b, 1
setne al
mov byte [rsi], al
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x5f8]
cmp byte [rsi], bl
movzx eax, r14b
setne bl
mov dword [0x140416c18], ebx
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140114300
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140114423
mov qword [rsp + 0x38], rsi
lea edx, [rsi + 0xe]
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 0xe]
lea r8, [0x140350940]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
lea edx, [rsi + 0xe]
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140114396
mov qword [rsp + 0x28], rsi
test ebx, ebx
jne 0x1401143b7
lea rax, [0x140346ce0]
mov qword [rsp + 0x20], rax
jmp 0x1401143de
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401fde50
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x28], 0
jle 0x140114410
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x140114432
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
jmp 0x140114432
mov rdx, qword [0x140416ee8]
mov rcx, rdi
call fcn.1401faae0
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140114460
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
xor bl, bl
lea rcx, [rax - 0x30]
call fcn.140114300
nop
mov edx, 0x131
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1401145d6
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1401145d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r15d, 1
test rax, rax
je 0x14011456e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140114532
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14011456e
movzx ebx, r15b
jmp 0x14011456e
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140114565
movzx ebx, bl
cmp dword [rsp + 0x80], r14d
cmove ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test bl, bl
je 0x1401145d6
xor dil, dil
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1401145d4
lea rdx, [0x140419468]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401145b2
call rax
movzx edi, dil
test eax, eax
cmovns edi, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test dil, dil
je 0x1401145d4
movzx ecx, r15b
call fcn.1401bbc10
test al, al
je 0x1401145e2
call fcn.14010f730
jmp 0x1401145e2
xor bl, bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [rsp + 0x50], 0
jle 0x1401145f3
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140114610
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [rsp + 0x20]
call fcn.140114300
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401146cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1401146c9
lea rdx, [0x140419480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14011469f
call rax
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovns ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x1401146c9
mov cl, 1
call fcn.1401bbc10
test al, al
je 0x1401146bc
call fcn.14010f730
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1401146cd
xor bl, bl
jmp 0x1401146cf
mov bl, 1
cmp dword [rsp + 0x28], 0
jle 0x1401146e0
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x1401165d0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movzx ebx, cl
call fcn.140116b50
test al, al
je 0x140116725
lea rcx, [rsp + 0x48]
call fcn.1401169e0
nop
xor edi, edi
test bl, bl
jne 0x140116682
mov edx, 0x134
xor ecx, ecx
lea r8d, [rdi + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140116682
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [rdi + 3]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140116682
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
jne 0x140116682
mov bl, 1
jmp 0x140116711
xor sil, sil
nop word [rax + rax]
lea r8, [0x140350ac0]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x1401166d3
mov sil, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x140116690
mov edx, 0x133
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14011670f
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1401168e0
test al, al
je 0x14011670f
test sil, sil
je 0x14011667b
mov cl, 1
call fcn.140116740
movzx ebx, al
jmp 0x140116711
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x140116722
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140116740
Capabilities:
Start service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x50
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor bl, bl
xor dil, dil
movzx ebp, cl
test cl, cl
je 0x14011677d
call fcn.140116b50
test al, al
jne 0x14011677a
mov cl, 1
call fcn.140116bc0
jmp 0x14011677d
mov dil, 1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x1401168b9
lea rdx, [0x140350b78]
mov r8d, 0x30
mov rcx, rax
mov qword [rsp + 0x80], r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x1401168a8
mov bl, 1
test bpl, bpl
je 0x1401167d3
test dil, dil
je 0x140116863
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r12
xor r12d, r12d
mov esi, r12d
nop dword [rax]
nop word [rax + rax]
lea r8, [0x140350ac0]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
je 0x140116830
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x1401167f0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rsi, qword [rsp + 0x70]
test eax, eax
jne 0x14011685e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bl
cmp eax, 0x426
cmovne ebx, r12d
mov r12, qword [rsp + 0x78]
test bpl, bpl
je 0x14011689f
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14011689f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14011689f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__d_r_n
mov edx, eax
call fcn.1402b7a88
xor bl, bl
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x80]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x1401168e0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1401169c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400d2fc0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1401ff680
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140116975
test al, 0x10
je 0x140116975
cmp dword [rsp + 0x30], 0
jle 0x140116996
mov rcx, qword [rsp + 0x28]
call fcn.1402b7350
jmp 0x140116996
cmp dword [rsp + 0x30], 0
jle 0x140116986
mov rcx, qword [rsp + 0x28]
call fcn.1402b7350
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.140206200
movzx ebx, al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x1401169c2
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret