joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003be00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140043240
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140044170
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea r13, [0x140031470]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003c005
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r15d, 0xffffffff
lea rbx, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x14003bed0
cmp dword [rbp + 0xfec], 0
jne 0x14003c00b
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x14003c00b
cmp eax, 0x1000
ja 0x14003c056
xor edi, edi
nop
cmp rdi, rax
ja 0x14003c03b
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r12, rax
mov r8, rax
sub r8, rdi
cmp r8, r15
cmovae r8, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14003c005
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x14003bf80
cmp dword [rbp + 0xfec], 0
jne 0x14003c00b
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rax, r12
cmp rdi, r12
jne 0x14003bf10
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003bed0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x141078db0]
mov rcx, rdi
mov qword [rbp + 0xfe0], rax
mov rdx, rax
call fcn.140051090
jmp 0x14003c071
lea r8, [0x141078db0]
mov edx, 0x1000
mov qword [rbp + 0xfe0], rax
mov rcx, rax
call fcn.140050e80
ud2
Function at 0x14003c110
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003c14f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002a150]
mov qword [rbp - 0x28], rax
lea rax, [0x141078f18]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, [0x141078f50]
lea rcx, [rbp - 0x60]
call fcn.140050db0
ud2

Function at 0x14003de60
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003df6d
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14003de97
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003df32
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003df50
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003deee
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003df0b
jmp 0x14003df00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003df06
cmp eax, 0x6d
jne 0x14003df22
mov byte [rsi + 1], 0
jmp 0x14003df16
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003df18
mov r8d, 0x10
mov rcx, rbx
call fcn.140050c20
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003dea4
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140050c20
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14003dea4
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140051f30
ud2

Function at 0x1400477ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047618
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.0042ab50
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.0041cbf0
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.0041d120
lea rdx, [rsp + 0x1270]
lea rcx, [rsp + 0x68]
mov r8, r12
call fcn.0041b3d0
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.0041b210
cmp eax, ebx
je 0x401394
lea rcx, [rsp + 0x68]
mov rdx, r15
call fcn.0041b210
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.0041b030
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 0x402864
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.0041cbf0
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 0x4028d6
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x4028cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a61
mov r8d, 0x1d
mov rdx, qword [rbx]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x402944
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.004061a4
add rax, 0x18
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xa0]
call fcn.004024f8
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x40293d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a61
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4029b3
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.004061a4
add rax, 0x18
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa8]
call fcn.004024f8
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x4029ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a61
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 0x402a2e
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.004061a4
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.004024f8
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402a2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402a61
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 0x402a5f
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 0x402a6c
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.0041cbf0
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 0x402ae9
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r13d
jg 0x402ae2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402b87
mov r8d, 0x2d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
cmp rax, r13
jne 0x402b0e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbx]
jmp 0x402ac6
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 0x402b84
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 0x402ba4
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.0041cbf0
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 0x402c16
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x402c0f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x402ca2
mov r8d, 5
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x402c3b
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
jmp 0x402bf4
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 0x402c63
xor bl, bl
jmp 0x402c6f
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 0x402ca0
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.0041cbf0
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.00405848
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, [0x0043411c]
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.0041b030
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.0042ab50
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 [0x00446eb4], 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.0041b030
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.0041cbf0
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.0041cbf0
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.0041b210
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.0041b030
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
Function at 0x409448
Capabilities:
Create process on windows
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20f0
call fcn.0042ab50
sub rsp, rax
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x20e0], rax
mov rdi, rcx
add rcx, 0x418
lea rdx, [rdi + 0x494]
call fcn.00401174
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x458]
call qword [sym.imp.USER32.dll_SwitchDesktop]
cmp qword [rdi + 0x20], 0
jne 0x4094cd
mov r8, qword [rdi + 0x30]
xor r9d, r9d
lea rdx, [0x0040980c]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rdi + 0x20], rax
and qword [rsp + 0x78], 0
xor edx, edx
lea rax, str.GameOptimizerDesktop
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x80], rax
call fcn.0041cbf0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea r11, [rdi + 0x64a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
and qword [rsp + 0x30], 0
mov ebx, 0x4000000
lea rdx, [rdi + 0x494]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40957d
lea rdx, [rdi + 0x494]
lea rcx, [rdi + 0x2494]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, [rdi + 0x2494]
lea rdx, [0x004361f4]
lea rcx, [0x0044f508]
call fcn.00409bd8
jmp 0x409650
lea rcx, [rsp + 0xe4]
xor edx, edx
mov r8d, 0x1ffc
mov dword [rsp + 0xe0], 0x22
call fcn.0041cbf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0xe2]
mov r8d, 0xfff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409666
inc eax
movsxd rcx, eax
lea rdx, [rsp + rcx*2 + 0xe0]
test eax, eax
je 0x4095ef
sub rdx, 2
mov ecx, 0x5c
dec eax
cmp cx, word [rdx]
je 0x4095ef
mov ecx, 0x2f
cmp cx, word [rdx]
jne 0x4095d1
inc eax
lea r8, [rdi + 0x494]
lea rdx, str.launcher.exe____s_
lea rcx, [rsp + rax*2 + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409666
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
mov edx, 0x7d2
mov r8d, 0x1000
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
jne 0x40968a
mov byte [rdi + 0x84a0], 1
xor eax, eax
mov rcx, qword [rsp + 0x20e0]
xor rcx, rsp
call fcn.0041b030
lea r11, [rsp + 0x20f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x4096b4
Capabilities:
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4480
call fcn.0042ab50
sub rsp, rax
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x4470], rax
mov ebx, 0x1000
lea rcx, [rsp + 0x2470]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x470]
mov r8d, ebx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
jmp 0x4097cc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [rsp + 0x20]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x4097c9
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x434
mov dword [rsp + 0x30], 0x438
call fcn.0041cbf0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Module32FirstW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x260]
call fcn.0041b210
test eax, eax
je 0x4097c9
lea rdx, [rsp + 0x2470]
lea rcx, [rsp + 0x260]
mov r8, rsi
call fcn.0041b3d0
test eax, eax
je 0x4097c9
mov r8d, dword [rsp + 0x20]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x4097c9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
test rax, rax
jne 0x40970f
mov rcx, qword [rsp + 0x4470]
xor rcx, rsp
call fcn.0041b030
lea r11, [rsp + 0x4480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret