joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027c84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1800010e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001108
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140001960
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp], rax
xor ebx, ebx
call fcn.140001310
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
mov qword [rbp - 0x10], rax
mov word [rsp + 0x30], bx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea ecx, [rbx + 0x18]
call fcn.140002100
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rax + 0x10], xmm1
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400020a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001a91
cmp dword [rsp + 0x48], ebx
jne 0x140001a32
lea ecx, [rbx + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x48], eax
jne 0x140001a4a
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x140001a72
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400020e0
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rbp
ret
mov dword [rsp + 0x48], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140002b8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002bd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002bd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002bd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002bd6
cmp dword [rcx + 0x84], 0xe
jbe 0x140002bd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002bd8
xor al, al
add rsp, 0x28
ret
Function at 0x4040c0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x148
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rsi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov qword [r11 - 8], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0041c544]
mov rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
movzx eax, byte [rbx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x404130
lea rdx, [0x0041c540]
lea rcx, [rsp + 0x20]
call fcn.0040a5d0
mov rdi, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x160]
mov qword [rsi + 0x220], rax
mov rsi, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x148
ret

Function at 0x4041a0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
sub rsp, 0x68
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareSynapticsTempResults
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4042a7
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x78]
lea rdx, str.InstallResult
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [rsp + 0x80], 0
je 0x404262
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x80]
lea rdx, str.InstallError
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [rsp + 0x88], 0xffffffff
je 0x40429c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x88]
lea rdx, str.InstallStage
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x68
ret

Function at 0x4046f0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rdx
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov rdi, rbx
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [str.inf_]
mov dword [rdi - 1], eax
movzx eax, word [0x0041c664]
mov word [rdi + 3], ax
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x404750
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rdx
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov rdi, rbx
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.System32_]
mov qword [rdi - 1], rax
movzx eax, word [0x0041c670]
mov word [rdi + 7], ax
movzx eax, byte [0x0041c672]
mov byte [rdi + 9], al
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret

Function at 0x4047b0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov ecx, 0x104
mov qword [rsp + 0x48], rdi
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
mov rdi, rbx
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0041c544]
mov word [rdi - 1], ax
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret

Function at 0x4049f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x320
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x40], 0x104
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0xf0]
call fcn.0040b660
xor r9d, r9d
lea r8, [0x00424008]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.00408ce0
nop
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xf0]
lea rdx, str.ProgDir
lea rcx, [rsp + 0x50]
call fcn.00408ee0
test eax, eax
jne 0x404a8a
lea rcx, [rsp + 0x48]
call fcn.00408d40
jmp 0x404bb3
lea rax, [0x004240b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x200]
call fcn.0040a8d0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x404af6
lea rcx, [rsp + 0x48]
call fcn.00408d40
jmp 0x404bb3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x80]
call fcn.0040b660
mov dword [rsp + 0x80], 0x70
mov dword [rsp + 0x84], 0x40
mov qword [rsp + 0x88], rbx
lea rax, str.open
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x200]
mov qword [rsp + 0x98], rax
lea rax, str._uninstall
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], ebx
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x404ba9
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.00408d40
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x320
pop rbx
ret
Function at 0x404bf0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.0040b660
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ebx, eax
jne 0x404c5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
add rsp, 0xe0
pop rbx
ret

Function at 0x404c70
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x130]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
xor edx, edx
movzx eax, byte [rsp + rdx + 0x130]
add rdx, 1
test al, al
mov byte [rsp + rdx + 0x1f], al
jne 0x404ca0
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str._regsvr32.exe__s_u]
mov rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
mov rax, qword [0x0041c718]
lea r8, [rsp + 0x130]
mov qword [rdi + 7], rax
mov eax, dword [0x0041c720]
mov dword [rdi + 0xf], eax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
xor edx, edx
nop
movzx eax, byte [r8 + rdx]
add rdx, 1
test al, al
mov byte [rdi + rdx - 2], al
jne 0x404d00
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [0x0041c700]
lea rcx, [rsp + 0x20]
mov qword [rdi - 1], rax
mov rax, qword [0x0041c708]
mov qword [rdi + 7], rax
call fcn.00404bf0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x250
pop rdi
ret
Function at 0x404d60
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x328
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [r11 + 0x20], rbx
mov rbx, rdx
mov qword [r11 - 8], rsi
lea rdx, [r11 - 0x248]
mov esi, r8d
call fcn.00404690
xor ecx, ecx
nop
nop
movzx eax, byte [rsp + rcx + 0xe0]
add rcx, 1
test al, al
mov byte [rsp + rcx + 0x1ef], al
jne 0x404da0
mov qword [rsp + 0x318], rdi
xor eax, eax
lea rdi, [rsp + 0x1f0]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rbx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x404de0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.0040b660
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x1f0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rbx, qword [rsp + 0x348]
test eax, eax
mov edi, eax
je 0x404e75
mov rcx, qword [rsp + 0x50]
mov edx, esi
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, edi
mov rdi, qword [rsp + 0x318]
mov rsi, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x328
ret

Function at 0x4051d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
lea r9, [rsp + 0x34]
lea rdx, str.CoInstallers32
mov rbx, rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40528e
mov edx, dword [rsp + 0x30]
lea r8, str.SynTPCo9.dll_PS2DeviceInstall
lea rcx, [rsp + 0x40]
call fcn.00404f90
lea rdx, str.CoInstallers32
test eax, eax
je 0x405285
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, 7
mov qword [rsp + 0x20], rcx
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40528e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x150
pop rbx
ret
Function at 0x406160
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov r11, rsp
sub rsp, 0x2a8
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [r11 + 0x18], rbx
lea rbx, [r11 - 0x138]
mov qword [r11 + 0x20], rbp
mov rbp, rdx
mov qword [rsp + 0x28], rcx
sub rbx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rbx + rdx - 1], al
jne 0x4061a0
xor eax, eax
mov qword [rsp + 0x298], rdi
lea rdi, [rsp + 0x170]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
repne scasb al, byte [rdi]
mov eax, dword [0x0041c9cc]
lea rcx, [rsp + 0x170]
mov dword [rdi - 1], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
je 0x406374
mov qword [rsp + 0x2a0], rsi
nop
lea rsi, [rsp + 0x5c]
lea rdi, [0x0041c9c8]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x40633f
lea rsi, [rsp + 0x5c]
lea rdi, [0x0041c9c4]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x40633f
test byte [rsp + 0x30], 0x10
je 0x4062d2
mov rcx, rbp
movzx eax, byte [rcx]
add rcx, 1
test al, al
mov byte [rbx + rcx - 1], al
jne 0x406240
xor eax, eax
lea rdi, [rsp + 0x170]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x5c]
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x406270
xor eax, eax
lea rdi, [rsp + 0x170]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0041c544]
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x170]
mov word [rdi - 1], ax
call fcn.00406160
lea rcx, [rsp + 0x170]
mov edx, 0x80
call fcn.0040c1d0
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40633f
mov rcx, rbp
nop
nop
nop
movzx eax, byte [rcx]
add rcx, 1
test al, al
mov byte [rbx + rcx - 1], al
jne 0x4062e0
xor eax, eax
lea rdi, [rsp + 0x170]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x5c]
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x406310
lea rcx, [rsp + 0x170]
mov edx, 0x80
call fcn.0040c1d0
lea rcx, [rsp + 0x170]
call fcn.0040c1a0
mov rdi, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406200
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x298]
mov rbp, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x2a8
ret
Function at 0x4063b0
Capabilities:
Check os version
Enumerate files on windows
Set file attributes

Disassembly:
mov r11, rsp
sub rsp, 0x968
mov rax, qword [0x004242f8]
xor rax, rsp
mov qword [rsp + 0x940], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
lea rdx, [r11 - 0x638]
mov rsi, rcx
mov qword [r11 - 0x10], r12
mov ebx, 1
call fcn.004046f0
xor eax, eax
lea rdi, [rsp + 0x330]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.oem.inf]
lea rdx, [rsp + 0xe0]
mov qword [rdi - 1], rax
movzx eax, byte [0x0041ca20]
lea rcx, [rsp + 0x330]
mov byte [rdi + 7], al
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x90
mov rbp, rax
call fcn.0040b660
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor r12d, r12d
test eax, eax
je 0x406486
cmp dword [rsp + 0x50], 2
jne 0x406489
mov eax, dword [rsp + 0x44]
cmp eax, 4
ja 0x406476
mov ebx, r12d
jmp 0x406489
cmp eax, 5
jne 0x406489
cmp dword [rsp + 0x48], ebx
jae 0x406489
mov ebx, r12d
jmp 0x406489
mov ebx, r12d
cmp rbp, 0xffffffffffffffff
movsxd rbx, ebx
je 0x4065f8
nop
nop
nop
lea rdx, [rsp + 0x220]
mov rcx, rsi
call fcn.004046f0
xor eax, eax
lea rdi, [rsp + 0x220]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x10c]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x4064d0
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x540]
lea rcx, [rsp + 0x220]
mov r9d, 0x400
mov edx, 2
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupGetInfInformationA]
test eax, eax
je 0x40664a
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x540]
lea r8, str.Provider
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x540]
xor edx, edx
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.SETUPAPI.dll_SetupQueryInfVersionInformationA]
test eax, eax
je 0x40664a
cmp dword [rsp + 0x30], 0x400
jae 0x40664a
lea rdx, str.Synaptics
lea rcx, [rsp + 0x540]
call fcn.0040b930
test eax, eax
jne 0x40664a
lea rcx, [rsp + 0x220]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test rbx, rbx
je 0x40663d
mov rax, qword [rsi + 0x230]
test rax, rax
je 0x4065bc
xor r8d, r8d
lea rcx, [rsp + 0x10c]
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x40664a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x0041ca04]
lea rcx, [rsp + 0x440]
mov r8d, eax
call fcn.0040a820
lea r9, [rsp + 0x10c]
lea r8, [rsp + 0x440]
lea rdx, str.Deleting_inf_files._Error_code___s__file___s__n
mov rcx, rsi
call fcn.00404190
mov r12, qword [rsp + 0x958]
mov rdi, qword [rsp + 0x960]
mov rsi, qword [rsp + 0x988]
mov rbp, qword [rsp + 0x980]
mov rbx, qword [rsp + 0x978]
mov eax, 1
mov rcx, qword [rsp + 0x940]
xor rcx, rsp
call fcn.0040a5f0
add rsp, 0x968
ret
lea rcx, [rsp + 0x220]
call fcn.004060f0
lea rdx, [rsp + 0xe0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4064a0
jmp 0x4065f8
Function at 0x408ee0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [r11 - 8], rbx
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
xor edi, edi
test rdx, rdx
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov rsi, r9
mov rbx, r8
mov r13d, edi
mov r12, rdx
je 0x4090ac
test r8, r8
je 0x4090ac
test r9, r9
je 0x4090ac
mov rcx, qword [rcx + 0x10]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x38], r14
test rcx, rcx
lea r14, [rdi - 1]
je 0x409064
mov rbp, qword [rsp + 0xa8]
mov r13d, dword [r9]
mov qword [r11 - 0x48], rcx
test rbp, rbp
je 0x408f78
lea rax, [r11 - 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409064
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test rbp, rbp
mov r12d, eax
je 0x408fa9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x88]
cmp ecx, 2
jne 0x409021
mov eax, 2
mul r13
cmovo rax, r14
mov rcx, rax
call fcn.00409ee0
test rax, rax
mov rbp, rax
je 0x40901a
mov r8d, r13d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, rbx
mov rdx, rbp
sub rcx, rbp
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x408ff0
mov rcx, rbx
call fcn.0040ca20
mov rcx, rbp
mov dword [rsi], eax
call fcn.0040a210
mov ecx, dword [rsp + 0x88]
jmp 0x409021
mov ecx, dword [rsp + 0x88]
test r12d, r12d
jne 0x409064
cmp ecx, 1
je 0x409035
cmp ecx, 7
je 0x409035
cmp ecx, 2
jne 0x40903a
mov edi, 1
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x4090a8
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
cmp ecx, r13d
ja 0x40903c
sub rbx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rbx + rdx - 1], al
jne 0x409090
mov dword [rsi], ecx
mov eax, 1
jmp 0x40903c
xor eax, eax
jmp 0x40903c
xor eax, eax
jmp 0x409046