joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f300
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rbp, rdx
mov rdi, rcx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14004f890
test eax, eax
je 0x14004f483
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14004f000
nop
cmp ebx, esi
jae 0x14004f460
xor r14d, r14d
nop dword [rax]
mov word [rsp + 0xc0], r14w
mov dword [rsp + 0xc8], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xc8]
mov r8d, 2
lea rdx, [rsp + 0xc0]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0xc8]
add ebx, eax
movzx ecx, word [rsp + 0xc0]
cmp ecx, 5
jb 0x14004f42a
cmp eax, 2
jne 0x14004f42a
mov r8d, ecx
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400502c0
mov dword [rsp + 0xc8], eax
add ebx, eax
movzx ecx, word [rsp + 0xc0]
cmp ecx, eax
jne 0x14004f40c
lea rcx, [rsp + 0x30]
call fcn.140050090
test al, al
je 0x14004f45e
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.14004f180
cmp ebx, esi
jb 0x14004f370
jmp 0x14004f45e
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a42d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1cd
jmp 0x14004f446
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a4230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1c4
lea r9, [0x1400a3ea0]
lea r8, [0x1400a4280]
mov edx, 1
call fcn.140059d70
cmp ebx, esi
setae bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004f480
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.140006f30
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004f780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, edx
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
xor edi, edi
xor r8d, r8d
xor edx, edx
lea r9d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [0x1400a4018]
mov ebx, eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov dword [rsp + 0x30], edi
add ebp, ebp
nop dword [rax]
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov word [rsp + 0x44], ax
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdx, [0x1400a4018]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14004f83e
inc ebx
cmp dword [rsp + 0x30], edi
ja 0x14004f7e0
jmp 0x14004f840
mov edi, ebx
test r14d, r14d
jne 0x14004f858
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006fd90
lea r11, [rsp + 0x50]
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 0x14004f890
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12d, r8d
movsxd rbx, edx
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, eax
xor esi, esi
lea rax, [0x1400cd080]
mov rcx, qword [rax + rbx*8]
lea r15, [rax + rbx*8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [rax + rax]
lea ecx, [rbp + 2]
call fcn.14007f534
mov r14, rax
test rax, rax
je 0x14004f9ba
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.14004f780
mov ebx, eax
test eax, eax
je 0x14004f9b2
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x68]
mov r8d, ebp
mov dword [rsp + 0x68], esi
mov rdx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov word [r14 + rcx*2], si
mov rcx, r14
mov rdx, qword [r15]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14004f99b
test ebx, ebx
je 0x14004f986
mov rcx, qword [rdi + 0x10]
lea edx, [rbx + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, 1
mov rcx, rdi
call fcn.14004f780
mov ebx, eax
test eax, eax
jne 0x14004f930
jmp 0x14004f9b2
mov rcx, qword [rdi + 0x10]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov rcx, r14
call fcn.140076e88
test r12d, r12d
jne 0x14004f9d2
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14004fa00
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0
mov rsi, r8
mov qword [rsp + 0x20], 0
mov rdi, rdx
lea r9, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8d, 0x40
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rsp + 0x40]
mov rax, 0xffffffffffffffff
lea r10, [0x1400a4020]
nop dword [rax + rax]
movzx edx, word [r9 + rax*2 + 2]
movzx ecx, word [r10 + rax*2 + 2]
sub edx, ecx
jne 0x14004faa8
add rax, 2
cmp rax, 0x13
je 0x14004faa8
movzx edx, word [r9 + rax*2]
movzx ecx, word [r10 + rax*2]
sub edx, ecx
je 0x14004fa80
xorps xmm0, xmm0
mov qword [rsp + 0x20], 0
test edx, edx
lea r9, [rsp + 0x30]
mov r8d, 0x40
lea rdx, [rsp + 0x80]
sete al
mov byte [rdi], al
mov rcx, qword [rbx + 0x10]
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, [rsp + 0x80]
call fcn.14004fc30
mov dword [rsi], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret

Function at 0x14004fb30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
mov r9d, 1
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
xor edx, edx
xor sil, sil
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov rcx, rdi
mov ebp, eax
lea r8d, [rdx + 1]
call fcn.14004f890
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14004f780
sub eax, ebx
cmp eax, 0x20
jae 0x14004fbe7
xorps xmm0, xmm0
lea r9, [rsp + 0x30]
xor ecx, ecx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], ecx
mov r8d, eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, rdi
lea rdx, [0x1400baf20]
lea rcx, [rsp + 0x40]
call fcn.140050960
mov sil, 1
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, sil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14006fd90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004fd40
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, r9d
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fde8
call fcn.1400597f0
mov rcx, rax
mov qword [rsp + 0x30], rsi
lea rax, [0x1400a4320]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1f5
lea r9, [0x1400a3ea0]
lea r8, [0x1400a4370]
lea edx, [r14 + 1]
call fcn.140059d70
xor al, al
jmp 0x14004fe9a
mov r8b, 1
movzx edx, byte [rsp + 0xc0]
mov rcx, rdi
call fcn.140050660
xor edx, edx
mov rcx, rdi
call fcn.1400508a0
mov edx, ebp
mov rcx, rdi
call fcn.1400504a0
mov edx, 4
mov rcx, rdi
call fcn.1400508a0
mov edx, 0x4fca
mov rcx, rdi
call fcn.1400504a0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
test rbx, rbx
je 0x14004fe68
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x14004fe50
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000d6c0
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rdi
call fcn.140050550
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004fe98
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call fcn.140006f30
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400502c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov edi, r8d
mov rbx, rcx
mov qword [rcx + 0x20], rbp
mov qword [rcx + 0x28], rbp
mov rsi, rdx
mov qword [rcx + 0x30], rbp
mov dword [rcx + 0x38], ebp
mov qword [rcx + 0x40], rbp
mov dword [rcx + 0x48], ebp
mov qword [rcx + 0x50], rbp
mov rax, qword [rbx + 8]
mov rcx, qword [rcx]
sub rax, rcx
mov edx, r8d
sar rax, 1
shr rdx, 1
cmp rdx, rax
jbe 0x14005031c
mov rcx, rbx
call fcn.1400503b0
mov rcx, qword [rbx]
mov rdx, rcx
mov dword [rsp + 0x60], ebp
mov rcx, rsi
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
cmp edi, eax
je 0x140050383
call fcn.1400597f0
mov rcx, rax
lea r9, [0x1400a3ea0]
mov eax, dword [rsp + 0x60]
lea r8, [0x1400a40a0]
mov dword [rsp + 0x38], eax
mov edx, 1
lea rax, [0x1400a4050]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x125
call fcn.140059d70
jmp 0x140050395
mov rcx, rax
shr rcx, 1
mov qword [rbx + 0x18], rcx
mov rax, qword [rbx]
mov word [rax + rcx*2 - 2], bp
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140050420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
lea r9, [rsp + 0x40]
mov rdi, rdx
mov dword [rsp + 0x40], 0
add rax, rax
mov qword [rsp + 0x20], 0
mov rbx, rcx
mov qword [rsp + 0x50], rax
mov r8d, 2
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx]
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
cmp eax, 1
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x1400504a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
lea r8, [0x1400baf20]
mov r9d, edx
lea rcx, [rsp + 0x40]
mov edx, 0x40
call fcn.1400070a0
mov edx, 0x20
lea rax, [rsp + 0x40]
mov ecx, edx
cmp word [rax], 0
je 0x1400504f3
add rax, 2
sub rcx, 1
jne 0x1400504e3
xor eax, eax
test rcx, rcx
je 0x140050509
sub rdx, rcx
add rdx, rdx
test rcx, rcx
cmove rdx, rax
jmp 0x14005050c
mov rdx, rax
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, edx
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0x90
pop rbx
ret

Function at 0x140050550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call fcn.1400508a0
xor eax, eax
mov rdx, rbx
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x40], eax
jb 0x140050578
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi]
add r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140050660
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
lea rax, [0x1400a4020]
test dl, dl
lea r9, [0x1400a43e8]
movzx ebx, r8b
mov rdi, rcx
cmovne r9, rax
lea r8, [0x14009f600]
mov edx, 0x20
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140004d10
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x14005072c
lea r9, [0x1400a3ff8]
mov edx, 0x20
lea r8, [0x14009f600]
lea rcx, [rsp + 0x40]
call fcn.140004d10
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x140050750
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r8
lea rax, [rsp + 0x60]
mov r14, rdx
mov qword [rsp + 0x28], rax
xor r15d, r15d
lea r9, [rsp + 0x78]
mov rdi, rcx
mov qword [rsp + 0x20], r15
mov rdx, rbp
mov dword [rsp + 0x60], r15d
mov rcx, r14
mov dword [rsp + 0x78], r15d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdx, qword [rdi + 0x18]
mov r8, qword [rdi]
mov eax, dword [rsp + 0x78]
lea rbx, [r8 + rdx*2]
cmp eax, 4
jne 0x1400507e3
mov rdx, rbp
mov rcx, r14
call fcn.14005aa50
mov ecx, 4
mov word [rbx], cx
mov ecx, eax
shr ecx, 0x10
mov word [rbx + 4], ax
mov al, 1
mov word [rbx + 2], cx
mov dword [rbx + 6], 0xa
add qword [rdi + 0x18], 4
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp eax, 0xb
jne 0x140050814
mov rdx, rbp
mov word [rbx], ax
mov rcx, r14
call fcn.14005aad0
mov qword [rbx + 2], rax
mov al, 1
mov dword [rbx + 0xa], 0xa
add qword [rdi + 0x18], 6
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp eax, 1
jne 0x14005088e
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x68], rsi
sub rcx, r8
mov esi, dword [rsp + 0x60]
shr esi, 1
add esi, 2
sar rcx, 1
mov eax, esi
sub rcx, rdx
cmp rcx, rax
jbe 0x14005087b
mov eax, 1
lea r9, [rsp + 0x78]
mov word [rbx], ax
xor r8d, r8d
lea rax, [rsp + 0x60]
add rbx, 2
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [rsi - 1]
add qword [rdi + 0x18], rcx
lea ecx, [rsi - 2]
mov dword [rbx + rcx*2], 0xa
mov rsi, qword [rsp + 0x68]
mov al, 1
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400508a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
movsxd rbx, edx
mov rdi, rcx
mov dword [rsp + 0x48], esi
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
lea rdx, [0x1400a4018]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r10, [0x1400cd080]
mov r10, qword [r10 + rbx*8]
test r10, r10
je 0x140050916
mov edx, 0x82
mov rax, r10
mov ecx, edx
cmp word [rax], si
je 0x140050902
add rax, 2
sub rcx, 1
jne 0x1400508f3
test rcx, rcx
je 0x140050916
sub rdx, rcx
add rdx, rdx
test rcx, rcx
cmove rdx, rsi
jmp 0x140050919
mov rdx, rsi
mov rcx, qword [rdi]
lea r9, [rsp + 0x48]
mov r8d, edx
mov qword [rsp + 0x20], rsi
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140051250
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.1400725e0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140051333
mov rax, rsi
mov r8d, 0x7ffffffe
shr rax, 1
lea rcx, [rax - 1]
cmp rcx, r8
ja 0x140051306
sub r8, rax
lea r9, [rsp + 0x30]
sub r9, rdi
mov rdx, rdi
lea rcx, [r8 + rax]
test rcx, rcx
je 0x1400512f4
movzx ecx, word [r9 + rdx]
test cx, cx
je 0x1400512f4
mov word [rdx], cx
add rdx, 2
sub rax, 1
jne 0x1400512d4
test rax, rax
lea rcx, [rdx - 2]
cmovne rcx, rdx
xor eax, eax
mov word [rcx], ax
jmp 0x140051310
test rax, rax
je 0x140051310
xor eax, eax
mov word [rdi], ax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140050ae0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140051333
mov eax, 1
jmp 0x140051335
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1400a4608]
mov r8d, 0x23
jmp 0x140051250

Function at 0x140051360
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.1400725e0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140051333
mov rax, rsi
mov r8d, 0x7ffffffe
shr rax, 1
lea rcx, [rax - 1]
cmp rcx, r8
ja 0x140051306
sub r8, rax
lea r9, [rsp + 0x30]
sub r9, rdi
mov rdx, rdi
lea rcx, [r8 + rax]
test rcx, rcx
je 0x1400512f4
movzx ecx, word [r9 + rdx]
test cx, cx
je 0x1400512f4
mov word [rdx], cx
add rdx, 2
sub rax, 1
jne 0x1400512d4
test rax, rax
lea rcx, [rdx - 2]
cmovne rcx, rdx
xor eax, eax
mov word [rcx], ax
jmp 0x140051310
test rax, rax
je 0x140051310
xor eax, eax
mov word [rdi], ax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140050ae0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140051333
mov eax, 1
jmp 0x140051335
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1400a4608]
mov r8d, 0x23
jmp 0x140051250
Function at 0x140054e60
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [0x1400d0818]
lea rdx, [rsp + 0x30]
test eax, eax
mov ecx, 0xffffff
mov r8d, 0xf003f
cmove eax, ecx
xor ebx, ebx
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov qword [rsp + 0x30], rbx
mov dword [0x1400d0818], eax
call fcn.14005a9b0
test eax, eax
jne 0x140054f78
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x68]
mov r9d, 0xf003f
mov qword [rsp + 0x68], rbx
lea rdx, str.Tweak
call fcn.14005a990
test eax, eax
jne 0x140054f6d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a5908]
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140054f1e
mov eax, dword [rsp + 0x50]
test eax, eax
mov ecx, dword [0x1400d0818]
cmovne ecx, eax
mov dword [0x1400d0818], ecx
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a5928]
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov dword [0x1400d081c], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [0x1400d0930], rbx
jne 0x140054faf
lea rax, [0x1400d092c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140054420]
mov edx, 0x7d00
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400d0930], rax
lea rdx, [0x1400a58c8]
lea rcx, str.NVDeskSwitchID
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x140054ff3
cmp ebx, 0x64
jae 0x140054ff3
mov ecx, 0xa
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x1400a58c8]
lea rcx, str.NVDeskSwitchID
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140054fc8
call fcn.140055120
add rsp, 0x40
pop rbx
ret

Function at 0x1400550c0
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
sub rsp, 0x38
cmp qword [0x1400d0930], 0
je 0x1400550dd
xor edx, edx
lea rcx, [0x140055030]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rax, [0x1400d092c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140054420]
mov edx, 0x7d00
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400d0930], rax
add rsp, 0x38
jmp fcn.140055120
Function at 0x140055190
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
cmp dword [0x1400d0928], 0
jne 0x1400551ce
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400d0820]
xor r9d, r9d
xor edx, edx
mov dword [0x1400d0924], eax
lea r8d, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
mov dword [0x1400d0928], 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400d0924], eax
xor edi, edi
lea rbx, [0x1400d0820]
nop dword [rax]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140055220
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140055215
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
inc edi
add rbx, 8
cmp edi, 0x20
jb 0x1400551f0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140055a10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140055aef
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140055a47
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140055af2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140055a96
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x140055aa0
test rax, rax
je 0x140055aef
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140055ae0
cmp rdx, rax
jb 0x140055ac0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret