joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401961c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140196221
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1401961e0
mov ecx, dword [r10]
jmp 0x14019630a
cmp ecx, 0x4e0
jb 0x14019630a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140196240
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140196290
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140196400
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
sar rdi, 2
test rdi, rdi
je 0x14019647e
mov qword [rsp + 0x30], rbx
mov rcx, rsi
lea rbx, [rdi*4]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
xor ecx, ecx
test al, al
cmovne rcx, rbx
mov rax, rcx
cqo
and edx, 3
add rax, rdx
sar rax, 2
cmp rax, rdi
je 0x140196479
sub rdi, rax
lea rbx, [rsi + rax*4]
lea rdi, [rbx + rdi*4]
cmp rbx, rdi
je 0x140196479
lea rcx, [rsp + 0x38]
call fcn.1401d5afc
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x140196460
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401964c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x9f0
mov rax, qword [0x1402ad418]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
lea rbx, [rcx + 4]
mov edx, 1
mov dword [rcx], edx
lea r8, [rbx + 8]
mov ecx, 0x1571
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], ecx
nop dword [rax]
mov eax, ecx
lea r8, [r8 + 4]
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc rdx
mov dword [r8 - 4], ecx
cmp rdx, 0x270
jb 0x140196500
lea r8, [rsp + 0x9e0]
mov dword [rbx], 0x270
lea rdx, [rsp + 0x20]
lea rcx, [0x1402aed08]
call fcn.140196400
xor r8d, r8d
lea rax, [rsp + 0x20]
mov r9, rbx
mov edx, r8d
sub r9, rax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rsp + rdx*4 + 0x20]
lea rax, [r9 + rdx*4]
mov dword [rsp + rax + 0x24], ecx
mov eax, ecx
or eax, r8d
shr ecx, 0x1f
test rdx, rdx
cmovne ecx, eax
inc rdx
mov r8d, ecx
cmp rdx, 0x270
jb 0x140196560
test ecx, ecx
jne 0x140196594
mov dword [rbx + 4], 0xffffffff
mov dword [rbx], 0x270
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.1401bc2c0
add rsp, 0x9f0
pop rbx
ret

Function at 0x1401a2b10
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov qword [rsp + 0x30], rbp
mov rdi, rcx
mov qword [rsp + 0x50], 0
lea rbp, [0x1401fd088]
xor r8d, r8d
mov qword [rcx], rbp
lea r9, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x4000
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1401a2bcc
mov rdx, qword [rsp + 0x50]
lea r8d, [rax - 1]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
call fcn.1401877c0
mov rbx, qword [rax]
mov qword [rax], rbp
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1401a2b88
cmp eax, 0xffffffff
je 0x1401a2b96
sub eax, 1
mov dword [rcx], eax
jne 0x1401a2b96
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rcx, qword [rdi]
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1401a2bb3
cmp eax, 0xffffffff
je 0x1401a2bc1
sub eax, 1
mov dword [rcx], eax
jne 0x1401a2bc1
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rdi]
mov rbp, qword [rsp + 0x30]
cmp dword [rax + 4], 0
jne 0x1401a2c49
mov rax, qword [rsi]
cmp rax, qword [0x140289410]
jne 0x1401a2c04
mov rax, qword [rsi + 8]
cmp rax, qword [0x140289418]
jne 0x1401a2c04
mov dword [rsp + 0x20], 0x11
lea rax, str.C:_tempqt_common
jmp 0x1401a2c2c
mov rax, qword [rsi]
cmp rax, qword [0x140289420]
jne 0x1401a2c49
mov rax, qword [rsi + 8]
cmp rax, qword [0x140289428]
jne 0x1401a2c49
mov dword [rsp + 0x20], 0xf
lea rax, str.C:_tempqt_user
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
mov rcx, rdi
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140183280
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1401b6890
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rax, [rsp + 0x60]
mov r9, rdx
mov qword [rsp + 0x20], rax
mov r8, rcx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1401b5280
mov rax, qword gs:[0x58]
mov edx, dword [0x1402b0288]
mov ecx, 8
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1402b01c4], eax
jg 0x1401b6944
mov eax, dword [0x1402b01c0]
test eax, eax
je 0x1401b6901
lea edx, [rax - 1]
mov dword [0x1402b01c0], edx
cmp eax, 1
je 0x1401b6931
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1401b691d
cmp eax, 0xffffffff
je 0x1401b692b
sub eax, 1
mov dword [rcx], eax
jne 0x1401b692b
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, 1
call fcn.1401b52d0
int3
lea rcx, [0x1402b01c4]
call fcn.1401bc50c
cmp dword [0x1402b01c4], 0xffffffff
jne 0x1401b68e9
lea rcx, str.QT_FATAL_WARNINGS
call fcn.1401b40a0
lea rcx, [0x1402b01c4]
mov dword [0x1402b01c0], eax
call fcn.1401bc4ac
jmp 0x1401b68e9

Function at 0x1401c0dd4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401c0c67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c0c67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c0c67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c0c67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c0c67
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c0c67
cmp dword [rcx + 0xf8], 0
je 0x1401c0c67
mov ecx, ebx
call fcn.1401c0d08
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401c0af8
cmp dword [rbp + 0x20], 0
je 0x1401c0cb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401c0cbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401c0c00

Function at 0x1401ddf6c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401ddf49
call fcn.1401c934c
mov dword [rax], 0x16
call fcn.1401c610c
or eax, 0xffffffff
jmp 0x1401ddf66
sub dword [rcx + 0x10], 1
jns 0x1401ddf58
add rsp, 0x28
jmp fcn.1401dca94
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401ddf28
Function at 0x401174
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1a80
call fcn.0042aad0
sub rsp, rax
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x1a70], rax
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x40], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, r12
call fcn.004013e4
lea rsi, [r12 + 8]
mov rcx, rsi
call fcn.00409c24
xor ebx, ebx
cmp eax, ebx
je 0x4013b6
mov edi, 0x400
lea rcx, [rsp + 0x1270]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x4013b6
lea rcx, [rsp + 0x270]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x4013b6
lea rcx, [rsp + 0xa72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0xa70], bx
call fcn.0041cbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0xa70]
mov r8d, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x1270]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, ebx
mov r13, rbx
mov r12d, eax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x4013a2
cmp edi, dword [rsi + 0x20]
jae 0x4013a2
mov rdx, qword [rsi + 0x28]
lea rcx, [rsp + 0x50]
mov r8d, 0x220
add rdx, r13
call fcn.0041d080
lea rdx, [rsp + 0x1270]
lea rcx, [rsp + 0x68]
mov r8, r12
call fcn.0041b330
mov ebp, ebx
cmp eax, ebx
sete bpl
cmp ebp, ebx
je 0x40135d
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rax, [rsp + rbx*2 + 0x68]
sub rax, 2
add ebx, 0xffffffff
je 0x4012e8
mov ecx, 0x5c
cmp cx, word [rax]
je 0x4012e8
mov ecx, 0x2f
cmp cx, word [rax]
jne 0x4012cb
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, 0x400
lea rdx, [rsp + rbx*2 + 0x68]
mov ecx, eax
sub r8d, eax
lea r14, [rsp + rcx*2 + 0x270]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ebx, ebx
lea rcx, [rsp + 0x270]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
xor r9d, r9d
mov edx, 0x80
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x401355
mov rcx, rax
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov word [r14], bx
cmp ebp, ebx
jne 0x401394
lea rdx, [rsp + 0xa70]
lea rcx, [rsp + 0x68]
call fcn.0041b170
cmp eax, ebx
je 0x401394
lea rcx, [rsp + 0x68]
mov rdx, r15
call fcn.0041b170
cmp eax, ebx
je 0x401394
mov r8d, 0x4000
mov edx, edi
mov rcx, rsi
call fcn.00409f2c
inc edi
add r13, 0x220
jmp 0x401265
mov r12, qword [rsp + 0x40]
mov eax, 1
mov dword [r12], 1
jmp 0x4013b8
xor eax, eax
mov rcx, qword [rsp + 0x1a70]
xor rcx, rsp
call fcn.0041af90
mov rbx, qword [rsp + 0x1ad0]
add rsp, 0x1a80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x40283c
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbx, rcx
and dword [rsp + 0x40], 0
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x44]
call fcn.0041cbe0
and dword [rsp + 0x98], 0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x4028ae
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x4028a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a39
mov r8d, 0x1d
mov rdx, qword [rbx]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x40291c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.0040617c
add rax, 0x18
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xa0]
call fcn.004024d0
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402915
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a39
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40298b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.0040617c
add rax, 0x18
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa8]
call fcn.004024d0
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402984
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a39
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x402a06
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.0040617c
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.004024d0
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402a02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a39
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402a37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x402a44
Capabilities:
Query service status
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
xor r13d, r13d
mov rbx, rcx
lea rcx, [rax - 0x44]
lea r8d, [r13 + 0x20]
xor edx, edx
mov dword [rax - 0x48], r13d
call fcn.0041cbe0
mov dword [rsp + 0x88], r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rbx]
mov rdi, rax
cmp rax, r13
jne 0x402ac1
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r13d
jg 0x402aba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402b5f
mov r8d, 0x2d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
cmp rax, r13
jne 0x402ae6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbx]
jmp 0x402a9e
mov r12d, 1
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_ControlService]
lea r11, [rsp + 0x88]
lea r9d, [r12 + 0x23]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
movzx ebp, r13b
cmp eax, r13d
mov rcx, rsi
cmovne ebp, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbx]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
cmp ecx, r13d
jg 0x402b5c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bpl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x402b7c
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
and dword [rax - 0x38], 0
mov rbx, rdx
xor edx, edx
mov rdi, rcx
lea rcx, [rax - 0x34]
lea r8d, [rdx + 0x20]
call fcn.0041cbe0
and dword [rsp + 0x78], 0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov byte [rbx], 0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rdi]
mov rbp, rax
test rax, rax
jne 0x402bee
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402be7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402c7a
mov r8d, 5
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x402c13
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
jmp 0x402bcc
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x402c3b
xor bl, bl
jmp 0x402c47
cmp dword [rsp + 0x34], 4
sete al
mov byte [rbx], al
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x402c78
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x407a80
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.0041cbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x103
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00406688
nop
lea rcx, [rsp + 0x30]
call fcn.00405820
lea rdx, str.GameOptimizer.exe
lea rcx, [rsp + 0x38]
call fcn.00406688
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x004340ec]
mov r8, qword [rsp + 0x38]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, edi
jg 0x407b5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, edi
jg 0x407b7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.0041af90
add rsp, 0x270
pop rdi
ret
Function at 0x407cac
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1040
call fcn.0042aad0
sub rsp, rax
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x1030], rax
cmp qword [rcx + 0x470], 0
mov rdi, rcx
je 0x407ce5
xor eax, eax
jmp 0x407dee
cmp byte [0x00446ea4], 0
je 0x407cde
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x830]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test ebx, ebx
je 0x407de9
lea rax, [rsp + rbx*2 + 0x30]
mov ecx, ebx
sub rax, 2
dec ebx
test ecx, ecx
jle 0x407d45
cmp word [rax], 0x5c
je 0x407d45
cmp word [rax], 0x2f
jne 0x407d2d
lea eax, [rbx + 1]
lea rdx, str.VolumeControl.exe
cdqe
lea rbx, [rsp + rax*2 + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, str.VolumeControl32
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x830]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov qword [rdi + 0x470], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rdx, str.VolumeControl64.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, str.VolumeControl64
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x830]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov qword [rdi + 0x478], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.0041af90
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1040
pop rdi
ret
Function at 0x408268
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6b0
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rax, qword [rcx + 0x420]
xor r14d, r14d
or edi, 0xffffffff
mov r13, rdx
mov rbx, rcx
cmp rax, r14
je 0x4083c5
cmp qword [rcx + 0x428], r14
je 0x4083c5
cmp qword [rcx + 0x430], r14
je 0x4083c5
cmp qword [rcx + 0x438], r14
je 0x4083c5
cmp r14w, word [rdx]
je 0x4083c5
xor edx, edx
mov esi, r14d
lea ecx, [rdx + 2]
call rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x4083c5
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
call fcn.0041cbe0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [rbx + 0x428]
jmp 0x4083ae
mov edx, dword [rsp + 0x28]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x408393
lea rcx, [rsp + 0x264]
xor edx, edx
mov r8d, 0x434
mov dword [rsp + 0x260], 0x438
call fcn.0041cbe0
lea rdx, [rsp + 0x260]
mov rcx, r12
call qword [rbx + 0x438]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x490]
mov rdx, r13
call fcn.0041b170
cmp eax, r14d
jne 0x408393
mov edi, dword [rsp + 0x28]
mov esi, 1
mov dword [rsp + 0x20], 0x238
cmp esi, r14d
jne 0x4083b7
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [rbx + 0x430]
cmp eax, r14d
jne 0x408324
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, r14d
jne 0x4083c8
or edi, 0xffffffff
xor edx, edx
mov r8d, edi
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, r14
je 0x4083f2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.0041af90
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret