joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019090
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
mov ecx, 1
call fcn.140018720
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1400190cc
lea rcx, str.Couldnt_open_service_manager
call fcn.140021d50
jmp 0x1400192c4
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
jne 0x140019129
lea rcx, [0x140033640]
call fcn.140004a40
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r11, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
jne 0x140019129
lea rcx, str.Couldnt_open_service
call fcn.140021d50
jmp 0x1400192c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x28]
mov edx, 4
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400192a2
cmp dword [rsp + 0x2c], 4
jne 0x14001921d
lea rcx, str.Service_state_is_SERVICE_RUNNING.
call fcn.140021de0
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400191b2
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
mov edx, dword [rsp + 0x4c]
lea rcx, [0x140028de8]
call fcn.140021d50
jmp 0x1400192c4
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400191f9
lea rcx, [0x140028e10]
call fcn.140021de0
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x48]
mov dword [rsp + 0x20], r11d
jmp 0x1400192c4
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x48]
mov dword [rsp + 0x20], r11d
jmp 0x1400192c4
cmp dword [rsp + 0x2c], 1
jne 0x14001928c
lea rcx, str.Service_state_is_SERVICE_STOPPED.
call fcn.140021de0
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140019271
lea rcx, str.Uninstall_service_successfully.
call fcn.140021de0
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x50]
mov dword [rsp + 0x20], r11d
jmp 0x1400192c4
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x50]
mov dword [rsp + 0x20], r11d
jmp 0x1400192c4
lea rcx, str.Service_state_isnt_SERVICE_RUNNING_or_SERVICE_STOPPED_it_is_other_state_.we_dont_delete_it
call fcn.140021de0
mov dword [rsp + 0x20], 1
jmp 0x1400192c4
mov dword [rsp + 0x54], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
lea rcx, str.Notify_SERVICE_CONTROL_INTERROGATE_failed.Error_Code:_d.
call fcn.140021d50
mov rcx, qword [rsp + 0x70]
call fcn.1400184b0
cmp dword [rsp + 0x20], 0
je 0x1400192dc
mov byte [rsp + 0x58], 1
jmp 0x1400192e1
mov byte [rsp + 0x58], 0
mov al, byte [rsp + 0x58]
add rsp, 0x68
ret
Function at 0x1400192f0
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
jne 0x140019358
lea rcx, [0x140033640]
call fcn.140004a40
mov r8d, 0x10020
mov rdx, rax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
jne 0x140019358
lea rcx, [0x140028a38]
call fcn.140021d50
xor al, al
jmp 0x1400193e0
mov edx, 0x1000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140019385
lea rcx, str.Allocate_failed.
call fcn.140021d50
xor al, al
jmp 0x1400193e0
lea r9, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1400193b8
lea rcx, str.QueryServiceConfig_failed.
call fcn.140021d50
xor al, al
jmp 0x1400193e0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str.QueryServiceConfig_successfully.
call fcn.140021de0
mov al, 1
add rsp, 0x38
ret
Function at 0x14001a330
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14001a365
mov edx, dword [rsp + 0x20]
and edx, 0xfffffffe
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001a378
xor al, al
jmp 0x14001a37a
mov al, 1
add rsp, 0x38
ret

Function at 0x14001a390
Capabilities:
Get common file path
Get file size

Disassembly:
push rdi
sub rsp, 0x1e0
mov qword [rsp + 0x1c0], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x14001a3f0
jmp 0x14001a538
lea rcx, [rsp + 0x168]
call fcn.140004760
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x168]
call fcn.1400048b0
lea r8, str.HandSetServicelogAutoRunCheckModeLog.tmp
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x198]
call fcn.140008880
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x168]
call fcn.140004880
nop
lea rcx, [rsp + 0x198]
call fcn.140004860
lea rcx, [rsp + 0x168]
call fcn.140004a40
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x190], eax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x190], 0
ja 0x14001a4f2
lea rcx, [rsp + 0x168]
call fcn.140004860
jmp 0x14001a538
cmp dword [rsp + 0x40], 0
ja 0x14001a515
cmp dword [rsp + 0x190], 0x7d000
jae 0x14001a515
lea rcx, [rsp + 0x168]
call fcn.140004860
jmp 0x14001a538
lea rcx, [rsp + 0x168]
call fcn.140004a40
mov rcx, rax
call fcn.14001a330
nop
lea rcx, [rsp + 0x168]
call fcn.140004860
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140009950
add rsp, 0x1e0
pop rdi
ret
Function at 0x14001a560
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x3f0
mov qword [rsp + 0x3c8], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov byte [rsp + 0x290], 0
lea rdi, [rsp + 0x291]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0xd0], 0
lea rdi, [rsp + 0xd1]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x14001a5f5
jmp 0x14001a7d8
lea rcx, [rsp + 0x260]
call fcn.140004760
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x260]
call fcn.1400048b0
lea r8, [0x140029c60]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x3a0]
call fcn.140008880
mov qword [rsp + 0x3d0], rax
mov rax, qword [rsp + 0x3d0]
mov qword [rsp + 0x3d8], rax
mov rdx, qword [rsp + 0x3d8]
lea rcx, [rsp + 0x260]
call fcn.140004880
nop
lea rcx, [rsp + 0x3a0]
call fcn.140004860
lea rax, [rsp + 0x408]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x400]
lea rcx, [rsp + 0x290]
call fcn.14000a9b4
mov qword [rsp + 0xc0], 0
mov byte [rsp + 0x1e0], 0
lea rdi, [rsp + 0x1e1]
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov byte [rsp + 0x40], 0x20
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
call fcn.14000ae60
lea rcx, [rsp + 0x1e0]
call fcn.14000ae84
lea rcx, [rsp + 0x41]
call fcn.14000af88
lea rcx, [rsp + 0x260]
call fcn.140004a40
lea rdx, [0x140028914]
mov rcx, rax
call fcn.14000b1ac
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x14001a731
lea rcx, [rsp + 0x260]
call fcn.140004860
jmp 0x14001a7d8
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
lea rdx, [0x140028974]
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
lea rdx, str.SCSI
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
lea rdx, [0x140028b6c]
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
lea rdx, [0x140028ba4]
mov rcx, qword [rsp + 0xc8]
call fcn.14000b1b8
mov rcx, qword [rsp + 0xc8]
call fcn.14000b3bc
nop
lea rcx, [rsp + 0x260]
call fcn.140004860
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140009950
add rsp, 0x3f0
pop rdi
ret
Function at 0x14001bec0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov qword [rsp + 0x248], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x50], 0x130
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x180]
call sub.KERNEL32.dll_Process32First
mov dword [rsp + 0x210], eax
mov byte [rsp + 0x190], 0
lea rdi, [rsp + 0x191]
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x270]
lea rcx, [rsp + 0x190]
call fcn.14000a6f0
lea rcx, [rsp + 0x190]
call fcn.14000bc38
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400047b0
nop
cmp dword [rsp + 0x210], 0
je 0x14001c049
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.14000a120
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x190]
call fcn.14000a6f0
lea rcx, [rsp + 0x190]
call fcn.14000bc38
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.1400047b0
lea rcx, [rsp + 0x218]
call fcn.140004a40
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.140004a40
mov rdx, rdi
mov rcx, rax
call fcn.140017c24
test eax, eax
jne 0x14001c01e
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x240], 1
lea rcx, [rsp + 0x218]
call fcn.140004860
nop
lea rcx, [rsp + 0x28]
call fcn.140004860
mov eax, dword [rsp + 0x240]
jmp 0x14001c073
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x180]
call sub.KERNEL32.dll_Process32Next
mov dword [rsp + 0x210], eax
lea rcx, [rsp + 0x218]
call fcn.140004860
jmp 0x14001bf69
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x244], 0
lea rcx, [rsp + 0x28]
call fcn.140004860
mov eax, dword [rsp + 0x244]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140009950
add rsp, 0x260
pop rdi
ret
Function at 0x14001c140
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r8d, 0x64
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14000a120
lea rdx, [rsp + 0x40]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [rsp + 0x28], eax
lea rdx, [0x140027626]
lea rcx, [rsp + 0xb0]
call fcn.1400047b0
nop
mov byte [rsp + 0x2c], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
jmp 0x14001c1d2
mov rcx, qword [rsp + 0x20]
call fcn.14000a060
mov r11, rax
mov rax, qword [rsp + 0x20]
lea rax, [rax + r11 + 1]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x14001c2bc
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0xd8], eax
cmp dword [rsp + 0xd8], 5
jne 0x14001c2b7
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.1400048b0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call fcn.140004810
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.14001c0a0
movzx eax, al
test eax, eax
je 0x14001c26d
jmp 0x14001c1b6
lea rdx, [0x14002ae40]
lea rcx, [rsp + 0xb0]
call fcn.140004910
lea rcx, [rsp + 0xb0]
call fcn.140004a40
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14001c2b7
mov byte [rsp + 0x2c], 1
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x150]
call fcn.1400048b0
jmp 0x14001c2bc
jmp 0x14001c1b6
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x14001c2e3
mov byte [rsp + 0x118], 1
lea rcx, [rsp + 0xb0]
call fcn.140004860
mov al, byte [rsp + 0x118]
jmp 0x14001c313
lea rdx, [0x140027627]
mov rcx, qword [rsp + 0x150]
call fcn.1400048b0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xb0]
call fcn.140004860
mov al, byte [rsp + 0x119]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140009950
add rsp, 0x148
ret
Function at 0x14001c340
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov qword [rsp + 0x268], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x50], 0x130
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x180]
call sub.KERNEL32.dll_Process32First
mov dword [rsp + 0x210], eax
mov byte [rsp + 0x190], 0
lea rdi, [rsp + 0x191]
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x190]
call fcn.14000a6f0
lea rcx, [rsp + 0x190]
call fcn.14000bc38
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400047b0
nop
cmp dword [rsp + 0x210], 0
je 0x14001c578
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.14000a120
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x190]
call fcn.14000a6f0
lea rcx, [rsp + 0x190]
call fcn.14000bc38
mov rdx, rax
lea rcx, [rsp + 0x218]
call fcn.1400047b0
nop
lea rdx, [rsp + 0x218]
lea rcx, [rsp + 0x28]
call fcn.140007340
movzx eax, al
test eax, eax
je 0x14001c54d
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x240], rax
cmp qword [rsp + 0x240], 0
jne 0x14001c48a
lea rcx, str.The_process_handle_is_NULL...
call fcn.140021de0
mov qword [rsp + 0x248], 0
lea r8, [rsp + 0x248]
mov edx, 0x2000b
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001c50d
mov r8d, 0x65f
lea rdx, str...CommonCommon.cpp
lea rcx, str.OpenProcessToken___Fail._File:_s_LINE:_d
call fcn.140021de0
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x250], 0
lea rcx, [rsp + 0x218]
call fcn.140004860
nop
lea rcx, [rsp + 0x28]
call fcn.140004860
mov rax, qword [rsp + 0x250]
jmp 0x14001c5a4
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x248]
mov qword [rsp + 0x258], rax
lea rcx, [rsp + 0x218]
call fcn.140004860
nop
lea rcx, [rsp + 0x28]
call fcn.140004860
mov rax, qword [rsp + 0x258]
jmp 0x14001c5a4
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x180]
call sub.KERNEL32.dll_Process32Next
mov dword [rsp + 0x210], eax
lea rcx, [rsp + 0x218]
call fcn.140004860
jmp 0x14001c3e9
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x260], 0
lea rcx, [rsp + 0x28]
call fcn.140004860
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140009950
add rsp, 0x280
pop rdi
ret
Function at 0x14001c5d0
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x178
mov qword [rsp + 0x150], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x160], rax
movzx eax, byte [rsp + 0x180]
test eax, eax
je 0x14001c61d
lea rcx, str.IsAddNewCDPath_need_clear_device_vector
call fcn.140021de0
lea rcx, [0x140033610]
call fcn.140004d10
mov byte [rsp + 0xb0], 0
mov r8d, 0x64
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14000a120
lea rdx, [rsp + 0x40]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [rsp + 0x28], eax
lea rdx, [0x14002765a]
lea rcx, [rsp + 0xb8]
call fcn.1400047b0
nop
mov byte [rsp + 0x2c], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
jmp 0x14001c68d
mov rcx, qword [rsp + 0x20]
call fcn.14000a060
mov r11, rax
mov rax, qword [rsp + 0x20]
lea rax, [rax + r11 + 1]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x14001c7c3
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0xe0], 5
jne 0x14001c7be
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xb8]
call fcn.1400048b0
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x118], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x118]
call fcn.140004810
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.14001c0a0
movzx eax, al
test eax, eax
je 0x14001c728
jmp 0x14001c671
lea rdx, [0x14002ae80]
lea rcx, [rsp + 0xb8]
call fcn.140004910
lea rcx, [rsp + 0xb8]
call fcn.140004a40
mov rdx, rax
lea rcx, str.IsAddNewCDPath_DriveValue__s
call fcn.140021de0
lea rcx, [rsp + 0xb8]
call fcn.140004a40
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14001c7be
lea rcx, str.IsAddNewCDPath_PathFileExists_is_add_new_device
call fcn.140021de0
mov byte [rsp + 0xb0], 1
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x120]
call fcn.1400047b0
nop
lea rdx, [rsp + 0x120]
lea rcx, [0x140033610]
call fcn.140004c30
nop
lea rcx, [rsp + 0x120]
call fcn.140004860
jmp 0x14001c671
movzx eax, byte [rsp + 0xb0]
mov byte [rsp + 0x148], al
lea rcx, [rsp + 0xb8]
call fcn.140004860
mov al, byte [rsp + 0x148]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140009950
add rsp, 0x178
ret

Function at 0x14001c810
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14001c83e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001c84e
lea rcx, str.CreatePCFolder_successfully.
call fcn.140021de0
mov al, 1
jmp 0x14001c85c
lea rcx, str.CreatePCFolder_failed.
call fcn.140021d50
xor al, al
add rsp, 0x38
ret
Function at 0x14001c870
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x80]
lea rcx, str.Delete_file__s.
call fcn.140021de0
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.14001bcd0
nop
lea rcx, [rsp + 0x28]
call fcn.140004eb0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001c8fa
lea rcx, str.This_file_didnt_exists__delete_file_function_exit.
call fcn.140021de0
mov byte [rsp + 0x58], 1
lea rcx, [rsp + 0x28]
call fcn.140004e90
mov al, byte [rsp + 0x58]
jmp 0x14001c999
lea rcx, [rsp + 0x28]
call fcn.140004eb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
and eax, 1
test eax, eax
je 0x14001c938
mov ebx, dword [rsp + 0x50]
and ebx, 0xfffffffe
lea rcx, [rsp + 0x28]
call fcn.140004eb0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x28]
call fcn.140004eb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001c986
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
lea rcx, str.DeleteFile_error__d
call fcn.140021d50
mov byte [rsp + 0x59], 0
lea rcx, [rsp + 0x28]
call fcn.140004e90
mov al, byte [rsp + 0x59]
jmp 0x14001c999
mov byte [rsp + 0x5a], 1
lea rcx, [rsp + 0x28]
call fcn.140004e90
mov al, byte [rsp + 0x5a]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009950
add rsp, 0x70
pop rbx
ret
Function at 0x14001ded0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400283f8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14001df40
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea rcx, str.ERR:_Open_Key___s__error.
call fcn.14001a560
xor eax, eax
jmp 0x14001e07a
mov dword [rsp + 0x38], 0x104
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140028478]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14001dfb0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.CurrentVersion
lea rcx, str.ERR:_Get_Key___s___vaule_error.
call fcn.14001a560
xor eax, eax
jmp 0x14001e07a
lea rdx, [rsp + 0x50]
lea rcx, str.current_system_version__s
call fcn.14001a560
movzx eax, byte [rsp + 0x50]
cmp eax, 0x35
jne 0x14001dfe8
movzx eax, byte [rsp + 0x52]
cmp eax, 0x30
jne 0x14001dfe8
mov rax, qword [rsp + 0x188]
mov dword [rax], 1
jmp 0x14001e06a
movzx eax, byte [rsp + 0x50]
cmp eax, 0x35
jne 0x14001e002
mov rax, qword [rsp + 0x188]
mov dword [rax], 2
jmp 0x14001e06a
movzx eax, byte [rsp + 0x50]
cmp eax, 0x36
jne 0x14001e026
movzx eax, byte [rsp + 0x52]
cmp eax, 0x30
jne 0x14001e026
mov rax, qword [rsp + 0x188]
mov dword [rax], 3
jmp 0x14001e06a
movzx eax, byte [rsp + 0x50]
cmp eax, 0x36
jl 0x14001e04a
movzx eax, byte [rsp + 0x52]
cmp eax, 0x30
jle 0x14001e04a
mov rax, qword [rsp + 0x188]
mov dword [rax], 5
jmp 0x14001e06a
lea rdx, [rsp + 0x50]
lea rcx, str.unknow_system_version__s
call fcn.14001a560
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14001e07a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140009950
add rsp, 0x170
pop rdi
ret
Function at 0x14001e0a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x1400311e8]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140028140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14001e108
lea rdx, str.SOFTWAREMicrosoftMediaPlayer11.0Registration_
lea rcx, [0x1400281b0]
call fcn.14001a560
xor eax, eax
jmp 0x14001e186
mov dword [rsp + 0x38], 0x104
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400281d0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14001e175
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.UDBVersion
lea rcx, [0x1400281f0]
call fcn.14001a560
xor eax, eax
jmp 0x14001e186
lea rcx, str.WMP11_Installed_
call fcn.14001a560
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140009950
add rsp, 0x170
pop rdi
ret