joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013f0e0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx ebx, dl
mov rdi, rcx
lea rcx, [rsp + 0x28]
call fcn.14001cac0
nop
test bl, bl
je 0x14013f159
lea rdx, str.Global_
lea rcx, [rsp + 0x50]
call fcn.14001c950
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14001d690
nop
lea rcx, [rsp + 0x50]
call fcn.14001d440
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14001d850
jmp 0x14013f166
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14001d690
lea rcx, [rsp + 0x28]
call fcn.14002aa20
mov r8, rax
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x14013f194
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14013f19d
xor bl, bl
jmp 0x14013f19f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.14001d440
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret

Function at 0x14013f1d0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movzx ebx, dl
mov rdi, rcx
lea rcx, [rsp + 0x68]
call fcn.14001cac0
nop
test bl, bl
je 0x14013f255
lea rdx, str.Global_
lea rcx, [rsp + 0x90]
call fcn.14001c950
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x68]
call fcn.14001d690
nop
lea rcx, [rsp + 0x90]
call fcn.14001d440
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14001d850
jmp 0x14013f262
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14001d690
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140059c10
lea rcx, [rsp + 0x68]
call fcn.14002aa20
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14013f2af
cmp eax, 0xb7
jne 0x14013f2dc
test rbx, rbx
je 0x14013f2af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
lea rcx, [rsp + 0x68]
call fcn.14001d440
test rbx, rbx
je 0x14013f2b9
mov al, 1
jmp 0x14013f2bb
Function at 0x14014e1e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
call fcn.14001f170
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14014e221
mov eax, 0xffffffff
jmp 0x14014e28c
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14014e234
mov eax, 0xfffffffe
jmp 0x14014e28c
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x14014e284
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14014e284
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14001c950
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001d690
nop
lea rcx, [rsp + 0x28]
call fcn.14001d440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14014e2b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14014e2ec
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140283120
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140022e40
mov rdx, qword [rsp + 0x30]
mov ecx, 2
add rdx, 0xa
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x14014e32b
call qword [sym.imp.USER32.dll_CloseClipboard]
mov ebx, 0xfffffffe
jmp 0x14014e374
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp qword [rsp + 0x38], 0x10
lea rdx, [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, rax
cmovae rdx, qword [rsp + 0x20]
inc r8
call fcn.140284ff0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor ebx, ebx
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14014e3ad
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014e3a8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014e3c2
call fcn.140283144
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140283120
add rsp, 0x50
pop rbx
ret
call fcn.140287d84
int3
Function at 0x14014e3d0
Capabilities:
Get memory capacity

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
mov rbx, rcx
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea rcx, [r11 - 0x58]
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rbx], rcx
sub rcx, rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140283120
add rsp, 0x70
pop rbx
ret

Function at 0x14014e480
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0xc0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.14001c0d0
nop
lea rdx, [0x1402d1978]
lea rcx, [rsp + 0x60]
call fcn.14001c950
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14002a720
nop
lea rcx, [rsp + 0x60]
call fcn.14001d440
lea rcx, [rsp + 0x38]
call fcn.14001f680
test al, al
jne 0x14014e570
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001d960
movzx edx, word [rax]
lea rcx, [rsp + 0x88]
call fcn.14001c510
nop
lea rdx, [0x1402d29e0]
lea rcx, [rsp + 0x60]
call fcn.14001c950
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.14001d850
nop
lea rcx, [rsp + 0x60]
call fcn.14001d440
lea rcx, [rsp + 0x88]
call fcn.14002aa20
mov rcx, rax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14014e57e
lea rcx, [rsp + 0x88]
call fcn.14001d440
nop
lea rcx, [rsp + 0x38]
call fcn.14001d440
xor eax, eax
jmp 0x14014e5bd
mov rax, qword [rsp + 0x20]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and edx, 0x3ff
lea rbx, [rdx + rax]
sar rbx, 0xa
lea rcx, [rsp + 0x88]
call fcn.14001d440
nop
lea rcx, [rsp + 0x38]
call fcn.14001d440
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140283120
add rsp, 0xc0
pop rbx
ret
Function at 0x140152460
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rdx
mov dword [rsp + 0x30], 0xffffffff
mov rdx, rcx
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
mov dword [rsp + 0x38], 0xf01ff
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x30]
test ebx, ebx
jne 0x1401524ed
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1401524dd
lea ebx, [rax - 4]
jmp 0x1401524ed
cmp dword [rsp + 0x5c], 4
mov ebx, 0xfffffffb
jne 0x1401524ed
mov ebx, dword [rsp + 0x74]
cmp qword [rsp + 0x48], 0
je 0x140152500
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140152510
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140283120
add rsp, 0x90
pop rbx
ret

Function at 0x140152530
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rdx
mov dword [rsp + 0x30], 0xffffffff
mov rdx, rcx
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
mov dword [rsp + 0x38], reloc.WS2_32.dll_listen
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x30]
test ebx, ebx
jne 0x1401525b1
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, 0xfffffffc
test eax, eax
je 0x1401525b1
mov ebx, dword [rsp + 0x5c]
cmp qword [rsp + 0x48], 0
je 0x1401525c4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401525d4
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140283120
add rsp, 0x90
pop rbx
ret
Function at 0x1401526d0
Capabilities:
Create service

Disassembly:
push r14
push r15
sub rsp, 0x88
mov r15, rcx
call fcn.14002aa20
mov rcx, rax
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x14015270c
lea eax, [r14 - 1]
add rsp, 0x88
pop r15
pop r14
ret
mov qword [rsp + 0xa0], rbx
lea rcx, [r15 + 0xc8]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r13
call fcn.14002aa20
lea rcx, [r15 + 0xa0]
mov rsi, rax
call fcn.14002aa20
lea rcx, [r15 + 0x28]
mov rdi, rax
call fcn.14002aa20
lea rcx, [r15 + 0x78]
mov rbx, rax
call fcn.14002aa20
lea rcx, [r15 + 0x50]
mov rbp, rax
call fcn.14002aa20
mov ecx, dword [r15 + 0xf8]
mov rdx, rax
xor eax, eax
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
mov r8, rbp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rax
mov eax, dword [r15 + 0xf0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ecx
mov ecx, dword [r15 + 0xf4]
mov dword [rsp + 0x28], ecx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
test rax, rax
jne 0x140152800
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xfffffffe
jmp 0x140152821
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [r15 + 0x28]
lea rcx, [r15 + 0x50]
call fcn.140152840
xor eax, eax
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
add rsp, 0x88
pop r15
pop r14
ret
Function at 0x140152840
Capabilities:
Manipulate safe mode programs

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, rdx
mov rsi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootMinimal_
lea rcx, [rbp - 0x78]
call fcn.14001c950
nop
lea rcx, [rbp - 0x50]
call fcn.140052ed0
nop
mov r8, rsi
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x38]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 0x2001f
mov r9, 0xffffffff80000002
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400535a0
movzx ebx, al
lea rcx, [rsp + 0x38]
call fcn.14001d440
test bl, bl
je 0x1401528da
lea rcx, [rbp - 0x50]
call fcn.140052f60
lea rdx, [0x1402e4928]
lea rcx, [rsp + 0x38]
call fcn.14001c950
nop
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140022fc0
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140026070
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.14001d440
nop
lea rcx, [rsp + 0x38]
call fcn.14001d440
test bl, bl
je 0x14015298a
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400223f0
nop
mov r8, rax
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 0x2001f
mov r9, 0xffffffff80000002
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400535a0
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.14001d440
nop
lea rcx, [rsp + 0x38]
call fcn.14001d440
test bl, bl
je 0x14015298a
lea rcx, [rbp - 0x50]
call fcn.140052f60
nop
lea rcx, [rbp - 0x50]
call fcn.140052f10
nop
lea rcx, [rbp - 0x78]
call fcn.14001d440
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea rcx, [rbp - 0x78]
call fcn.14001c950
nop
lea rcx, [rbp - 0x50]
call fcn.140052ed0
nop
mov r8, rsi
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 0x2001f
mov r9, 0xffffffff80000002
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400535a0
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.14001d440
test bl, bl
je 0x140152a02
lea rcx, [rbp - 0x50]
call fcn.140052f60
lea rdx, [0x1402e4928]
lea rcx, [rsp + 0x38]
call fcn.14001c950
nop
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140022fc0
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140026070
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.14001d440
nop
lea rcx, [rsp + 0x38]
call fcn.14001d440
test bl, bl
je 0x140152ab2
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400223f0
nop
mov r8, rax
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 0x2001f
mov r9, 0xffffffff80000002
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400535a0
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.14001d440
nop
lea rcx, [rsp + 0x38]
call fcn.14001d440
test bl, bl
je 0x140152ab2
lea rcx, [rbp - 0x50]
call fcn.140052f60
nop
lea rcx, [rbp - 0x50]
call fcn.140052f10
nop
lea rcx, [rbp - 0x78]
call fcn.14001d440
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x140152b50
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8, rdx
mov dword [rsp + 0x20], 0xffffffff
mov rdx, rcx
mov dword [rsp + 0x24], 0
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0xf01ff
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x140152c37
lea r8, [rsp + 0x40]
mov rcx, rdi
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140152c21
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140152c0d
nop dword [rax]
mov eax, dword [rsp + 0x44]
cmp eax, 3
jne 0x140152c11
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1e
jge 0x140152c0d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140152be0
mov eax, dword [rsp + 0x44]
cmp eax, 1
jne 0x140152c1a
xor ebx, ebx
jmp 0x140152c37
mov ebx, 0xfffffffd
jmp 0x140152c37
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140152c32
xor ebx, ebx
jmp 0x140152c37
mov ebx, 0xffffffff
test rdi, rdi
je 0x140152c45
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140152c55
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140152c80
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140152530
cmp eax, 1
jne 0x140152d47
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0xffffffff
mov r8, rdi
mov dword [rsp + 0x44], 0
mov rdx, rbx
mov dword [rsp + 0x48], 0xf01ff
lea rcx, [rsp + 0x40]
movdqu xmmword [rsp + 0x50], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x140152d0d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140152cf6
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140152d40
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140152e28
mov rbx, qword [rsp + 0x58]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test rbx, rbx
je 0x140152d2e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140152d3e
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov eax, ebx
jmp 0x140152e28
cmp eax, 4
jne 0x140152e23
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0xffffffff
mov r8, rdi
mov dword [rsp + 0x24], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0xf01ff
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x140152dfd
lea r8, [rsp + 0x40]
mov rcx, rdi
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140152ded
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140152ded
cmp dword [rsp + 0x44], 1
mov eax, ebx
je 0x140152ded
inc ebx
cmp eax, 0xa
jge 0x140152ded
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140152dc0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor ebx, ebx
test rdi, rdi
je 0x140152e0b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140152d40
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140152e28
mov eax, 0xfffffc0e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140152e50
Capabilities:
Query service status
Start service

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x70
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8, rdx
mov qword [r11 + 0x18], rbx
mov rdx, rcx
mov qword [r11 + 0x20], rdi
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0xffffffff
xor esi, esi
mov dword [rsp + 0x28], 0xf01ff
lea rcx, [r11 - 0x58]
mov dword [rsp + 0x24], esi
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401525f0
mov eax, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x38]
test eax, eax
jne 0x140152f19
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140152f14
lea ecx, [rsi + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140152f1b
nop dword [rax]
mov eax, dword [rsp + 0x44]
mov ecx, ebx
cmp eax, 2
jne 0x140152f0f
inc ebx
cmp ecx, 0x14
jge 0x140152f1b
lea ecx, [rax + 0x62]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140152ee0
jmp 0x140152f1b
cmp eax, 4
je 0x140152f1b
mov eax, 0xffffff88
mov esi, eax
mov rbx, qword [rsp + 0x90]
test rdi, rdi
je 0x140152f31
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x98]
test rcx, rcx
je 0x140152f49
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140283120
add rsp, 0x70
pop rsi
ret

Function at 0x140152f60
Capabilities:
Start service

Disassembly:
push rbx
sub rsp, 0x40
mov r8, rdx
mov dword [rsp + 0x20], 0xffffffff
mov rdx, rcx
mov dword [rsp + 0x24], 0
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0xf01ff
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x20]
test ebx, ebx
jne 0x140152faf
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp qword [rsp + 0x38], 0
je 0x140152fc2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140152fd2
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140152fe0
Capabilities:
Stop service

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8, rdx
mov dword [rsp + 0x20], 0xffffffff
mov rdx, rcx
mov dword [rsp + 0x24], 0
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0xf01ff
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401525f0
mov ebx, dword [rsp + 0x20]
test ebx, ebx
jne 0x14015304c
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14015304a
lea ebx, [rax - 4]
jmp 0x14015304c
xor ebx, ebx
cmp qword [rsp + 0x38], 0
je 0x14015305f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14015306f
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140283120
add rsp, 0x70
pop rbx
ret

Function at 0x1401543e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140154455
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140154455
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140154445
nop
cmp rbx, rcx
jae 0x140154455
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140154430
cmp rbx, rcx
jae 0x140154455
cmp word [rbx], 0
je 0x140154455
mov rax, rbx
jmp 0x140154457
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14016c7d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov qword [rcx + 0x60], 4
mov qword [rcx + 0x40], rax
lea r8, [rcx + 0x8c]
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x3c], 0x20
mov qword [rcx + 0x70], 1
nop dword [rax + rax]
mov edx, eax
lea r8, [r8 + 4]
and edx, 1
mov ecx, eax
shr ecx, 1
neg edx
and edx, 0xedb88320
inc eax
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x14016c800
ret