joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114b00
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14041da10]
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 0x140114bc7
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 0x140114bc3
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.1402bcad0
add rsp, 0x90
pop rbx
ret

Function at 0x140114bf0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [0x140431608]
test eax, eax
je 0x140114c28
setns al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402bcad0
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 0x140114cb2
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 [0x140431608], ecx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0x88
ret
Function at 0x1401168f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14041da10]
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 0x140116a73
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 0x140116a73
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 0x140116a68
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 [0x1403793a8]
nop
test ebx, ebx
jne 0x140116a58
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 0x140116a51
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 0x140116a51
movsd xmm2, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
lea rcx, str._s___3.1f_r_n
movq r8, xmm2
call fcn.1402bf424
comisd xmm6, xmmword [rsp + 0x40]
ja 0x140116a58
inc edi
cmp edi, 0x1e
jb 0x1401169f0
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.1402bcad0
mov rdi, qword [rsp + 0x4c8]
add rsp, 0x4b0
pop rbp
ret
Function at 0x140116aa0
Capabilities:
Query service status

Disassembly:
push r13
push r15
sub rsp, 0x68
mov rax, qword [0x14041da10]
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 0x140116c11
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 0x140116c03
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 0x140116b4d
cmp dword [rsp + 0x2c], 4
je 0x140116bd8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
jne 0x140116bca
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 0x140116bca
mov ecx, esi
call fcn.1402bd120
mov rdi, rax
test rax, rax
je 0x140116bca
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 0x140116bbe
mov eax, dword [rdi + 4]
cmp eax, 4
jne 0x140116bb4
movzx ebx, r13b
jmp 0x140116bbe
movzx ebx, bl
cmp eax, 3
cmove ebx, r13d
mov rcx, rdi
call fcn.1402bd0e0
test bl, bl
jne 0x140116bd8
inc ebp
cmp ebp, 0x12c
jb 0x140116b30
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.1402bcad0
add rsp, 0x68
pop r15
pop r13
ret
Function at 0x140116c30
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 [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rsi, rcx
xor r14b, r14b
call fcn.140100e80
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140116e32
mov eax, dword [0x14034c078]
movsd xmm0, qword [0x14034c070]
lea rcx, [rbp + 0x2b0]
mov dword [rbp + 0x158], eax
movzx eax, word [0x14034c07c]
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 0x140116e21
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 0x140116e18
cmp dword [rsp + 0x44], 0x20
jb 0x140116e18
mov r9d, dword [rbp + 0x1b8]
lea r8, str.DosDevicesPhysicalDrive_d
lea edx, [rbx + 0x28]
lea rcx, [rbp + 0x160]
call fcn.1402c06b8
lea r8, [rbp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0xff
call fcn.1402bcbb8
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 0x140116e18
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 [0x14041ec1c], ebx
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1402bcad0
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 0x140116f70
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 [0x14041da10]
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 0x140117093
mov qword [rsp + 0x38], rsi
lea edx, [rsi + 0xe]
lea rcx, [rsp + 0x30]
call fcn.1402028a0
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 0xe]
lea r8, [0x1403567b0]
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
lea edx, [rsi + 0xe]
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140117006
mov qword [rsp + 0x28], rsi
test ebx, ebx
jne 0x140117027
lea rax, [0x14034d1a0]
mov qword [rsp + 0x20], rax
jmp 0x14011704e
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140203bb0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400d4050
nop
cmp dword [rsp + 0x28], 0
jle 0x140117080
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401170a2
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
jmp 0x1401170a2
mov rdx, qword [0x14041eee8]
mov rcx, rdi
call fcn.140200840
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401170d0
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.140116f70
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 0x140117246
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 0x140117246
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r15d, 1
test rax, rax
je 0x1401171de
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 0x1401171a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1401171de
movzx ebx, r15b
jmp 0x1401171de
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 0x1401171d5
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 0x140117246
xor dil, dil
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140117244
lea rdx, [0x140421480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140117222
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 0x140117244
movzx ecx, r15b
call fcn.1401bf430
test al, al
je 0x140117252
call fcn.1401123a0
jmp 0x140117252
xor bl, bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [rsp + 0x50], 0
jle 0x140117263
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
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 0x140117280
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [rsp + 0x20]
call fcn.140116f70
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14011733d
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 0x140117339
lea rdx, [0x140421468]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14011730f
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 0x140117339
mov cl, 1
call fcn.1401bf430
test al, al
je 0x14011732c
call fcn.1401123a0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14011733d
xor bl, bl
jmp 0x14011733f
mov bl, 1
cmp dword [rsp + 0x28], 0
jle 0x140117350
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x140119240
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.1401197c0
test al, al
je 0x140119395
lea rcx, [rsp + 0x48]
call fcn.140119650
nop
xor edi, edi
test bl, bl
jne 0x1401192f2
mov edx, 0x134
xor ecx, ecx
lea r8d, [rdi + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1401192f2
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 0x1401192f2
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 0x1401192f2
mov bl, 1
jmp 0x140119381
xor sil, sil
nop word [rax + rax]
lea r8, [0x140356a10]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x140119343
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 0x140119300
mov edx, 0x133
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14011937f
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140119550
test al, al
je 0x14011937f
test sil, sil
je 0x1401192eb
mov cl, 1
call fcn.1401193b0
movzx ebx, al
jmp 0x140119381
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x140119392
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
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 0x1401193b0
Capabilities:
Start service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x50
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor bl, bl
xor dil, dil
movzx ebp, cl
test cl, cl
je 0x1401193ed
call fcn.1401197c0
test al, al
jne 0x1401193ea
mov cl, 1
call fcn.140119830
jmp 0x1401193ed
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 0x140119529
lea rdx, [0x1403569e8]
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 0x140119518
mov bl, 1
test bpl, bpl
je 0x140119443
test dil, dil
je 0x1401194d3
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, [0x140356a10]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
je 0x1401194a0
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 0x140119460
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 0x1401194ce
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 0x14011950f
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14011950f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14011950f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__d_r_n
mov edx, eax
call fcn.1402bd818
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.1402bcad0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x140119550
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 0x140119635
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400d4470
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1402053e0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401195e5
test al, 0x10
je 0x1401195e5
cmp dword [rsp + 0x30], 0
jle 0x140119606
mov rcx, qword [rsp + 0x28]
call fcn.1402bd0e0
jmp 0x140119606
cmp dword [rsp + 0x30], 0
jle 0x1401195f6
mov rcx, qword [rsp + 0x28]
call fcn.1402bd0e0
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.14020c810
movzx ebx, al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x140119632
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140119c50
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x290], rax
movzx edi, cl
lea rcx, [rsp + 0x20]
call fcn.140119d70
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140119d31
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140119ce0
lea rdx, [0x140356c18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140119cd7
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test dil, dil
je 0x140119d31
xor edx, edx
lea rcx, [0x140112800]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140119d31
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140119d31
mov cl, 1
call fcn.1401bf430
mov ecx, 0xd05
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1401123a0
nop
cmp dword [rsp + 0x28], 0
jle 0x140119d42
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret

Function at 0x140119da0
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
movzx ebx, cl
call fcn.140119ab0
test al, al
jne 0x140119dcc
mov al, 1
jmp 0x140119e72
lea rcx, [rsp + 0x48]
call fcn.140119d70
nop
test bl, bl
jne 0x140119e4f
mov edx, 0x134
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140119e4f
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [rax + 3]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140119e4f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x140119e4f
mov bl, 1
jmp 0x140119e5e
mov cl, 1
call fcn.140119c50
call fcn.140119b60
movzx ebx, al
cmp dword [rsp + 0x50], 0
jle 0x140119e6f
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret