joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002da30
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x38], 0
lea rdx, [0x14003f4a0]
or r8d, 0xffffffff
mov r14, rcx
call fcn.14003a61c
mov ebx, eax
test eax, eax
js 0x14002dc2a
lea rcx, [rbp - 0x10]
call fcn.14003a4e4
lea rcx, [rbp - 0x30]
mov dword [rbp + 0x30], 0x7fff
call fcn.14003a4e4
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14003a5a8
mov ebx, eax
test eax, eax
jns 0x14002daa7
lea rcx, [rbp - 0x30]
call fcn.14003aa74
lea rcx, [rbp - 0x10]
call fcn.14003aa74
jmp 0x14002dc2a
mov rdx, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x14002dade
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002da90
mov ebx, 0x44
mov edx, ebx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14002dafd
mov ebx, 0x8007000e
jmp 0x14002da90
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x38]
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rax, [rbp + 0x28]
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14002db53
cmp eax, 0x7a
je 0x14002db53
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002dc0f
lea rcx, [rbp - 0x20]
call fcn.14003a4e4
mov edx, dword [rbp + 0x28]
lea rcx, [rbp - 0x20]
inc edx
call fcn.14003a5a8
mov ebx, eax
test eax, eax
js 0x14002dc06
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
mov r8, rdi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14002dbbe
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002dc06
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x14002dbe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
jmp 0x14002dbae
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
or r8d, 0xffffffff
call fcn.14003a61c
mov ebx, eax
test eax, eax
js 0x14002dc06
mov rdx, qword [rbp - 0x10]
mov rcx, r14
call fcn.14003a8e8
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.14003aa74
lea rcx, [rbp - 0x30]
call fcn.14003aa74
lea rcx, [rbp - 0x10]
call fcn.14003aa74
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14002dc39
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
Function at 0x14002dc58
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002dce4
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Migrated_NSS_Version
mov dword [rbp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dcd6
cmp dword [rbp + 0x18], 4
je 0x14002dcda
and dword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x10]
add rsp, 0x30
pop rbp
ret

Function at 0x14002dcf4
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140017e7c
test eax, eax
je 0x14002dd67
lea r8, str.WMPNSCFG.exe
mov edx, 0x208
lea rcx, [rsp + 0x30]
call fcn.14000165c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002dd67
test al, 0x10
jne 0x14002dd67
and dword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c810
add rsp, 0x258
ret

Function at 0x14002dd88
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, 1
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.140017e7c
xor edi, edi
test eax, eax
je 0x14002de58
lea r8, str.WMPNSCFG.exe
mov qword [rsp + 0x30], rdi
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.14000165c
lea rax, [rsp + 0x30]
mov r9d, 0x20106
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002de58
mov ebx, edi
lea rax, [rsp + 0x40]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], di
jne 0x14002de19
lea edx, [rdx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], edx
lea rax, [rsp + 0x40]
lea rdx, str.WMPNSCFG
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14002f9bc
Capabilities:
Check if file exists
Create directory
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor r15d, r15d
mov r14d, edx
mov qword [rsp + 0x38], r15
mov rsi, rcx
mov ebx, 0x80004005
test rcx, rcx
jne 0x14002fa0e
lea eax, [rbx - 2]
jmp 0x14002fbf5
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002fbf3
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r13d, 0x208
mov dword [rsp + 0x30], 1
mov eax, r14d
lea rdx, str.CommonFilesDir
cmp r14d, r13d
cmova eax, r13d
xor r8d, r8d
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x14002fb93
cmp dword [rsp + 0x30], 1
jne 0x14002fb93
mov ebx, 0x104
lea r8, [rbp + 0x150]
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140001470
test eax, eax
js 0x14002fb16
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fac4
test rax, rax
je 0x14002fafa
cmp word [rsp + rax*2 + 0x3e], 0x5c
jne 0x14002fafa
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fae3
test rax, rax
je 0x14002fafa
mov word [rsp + rax*2 + 0x3e], r15w
jmp 0x14002fabc
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fb16
test al, 0x10
je 0x14002fb16
mov ebx, r15d
jmp 0x14002fba8
xor edx, edx
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp + 0x150]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001470
test eax, eax
js 0x14002fb93
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fb45
test rax, rax
je 0x14002fb7b
cmp word [rsp + rax*2 + 0x3e], 0x5c
jne 0x14002fb7b
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fb64
test rax, rax
je 0x14002fb7b
mov word [rsp + rax*2 + 0x3e], r15w
jmp 0x14002fb3d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fb93
test al, 0x10
jne 0x14002fb0e
mov edx, r13d
lea rcx, [rbp + 0x150]
call fcn.14002f614
mov ebx, eax
test eax, eax
jne 0x14002fbe8
mov rdx, r14
lea rax, [rbp + 0x150]
shr rdx, 1
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14002fbb5
inc rdi
cmp rdx, rdi
jbe 0x14002fbd8
lea r8, [rbp + 0x150]
mov rcx, rsi
call fcn.140001470
jmp 0x14002fbe8
mov ecx, 0x8007007a
mov ebx, 0x8007007a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14002fc28
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r15d, r15d
mov r14d, edx
mov rsi, rcx
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x20]
xor ecx, ecx
lea edx, [r15 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov r12d, 0x104
lea r13d, [r15 + 1]
mov ebx, eax
test eax, eax
js 0x14002fce8
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x28], r15
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, r15d
lea rcx, [rsp + 0x28]
test eax, eax
cmovne edi, r13d
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14002fce4
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14002fce4
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rax + 0x28]
call qword [0x14003f118]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003f118]
test edi, edi
jne 0x14002fd1b
mov edx, r12d
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14002fd16
lea r8, str.All_UsersApplication_Data
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.140001584
test eax, eax
jns 0x14002fd1b
mov ebx, 0x80070057
or rdi, 0xffffffffffffffff
test ebx, ebx
js 0x14002fe17
lea r8, [rbp + 0x140]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140001470
or r13d, 0xffffffff
test eax, eax
js 0x14002fd9a
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fd4b
test rax, rax
je 0x14002fd81
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14002fd81
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fd6a
test rax, rax
je 0x14002fd81
mov word [rsp + rax*2 + 0x2e], r15w
jmp 0x14002fd43
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x14002fd9a
test al, 0x10
je 0x14002fd9a
mov ebx, r15d
jmp 0x14002fe19
xor edx, edx
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp + 0x140]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140001470
test eax, eax
js 0x14002fe15
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fdc9
test rax, rax
je 0x14002fdff
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14002fdff
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fde8
test rax, rax
je 0x14002fdff
mov word [rsp + rax*2 + 0x2e], r15w
jmp 0x14002fdc1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x14002fe15
test al, 0x10
cmovne ebx, r15d
test ebx, ebx
jne 0x14002fe4e
mov rdx, r14
lea rax, [rbp + 0x140]
shr rdx, 1
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14002fe26
inc rdi
cmp rdx, rdi
jbe 0x14002fe49
lea r8, [rbp + 0x140]
mov rcx, rsi
call fcn.140001470
jmp 0x14002fe4e
mov ebx, 0x8007007a
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400304b8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
jne 0x1400304fb
mov eax, 0x8007000e
jmp 0x1400306d7
mov word [rcx], bx
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rdi, rax
test rax, rax
jne 0x140030519
mov rdi, rsi
jmp 0x14003051d
add rdi, 2
mov r15d, 0x104
lea rcx, [rsp + 0x70]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140030559
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0x57
test ecx, ecx
cmove ecx, eax
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400306d7
lea r8, str.CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE_
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140001584
mov r8, rdi
lea rcx, [rsp + 0x70]
mov rdx, r15
call fcn.140001584
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, 4
cmp eax, 0xffffffff
je 0x1400306a7
test al, 0x10
jne 0x1400306a7
mov r8, rsi
mov qword [rsp + 0x58], rbx
lea rdx, str.____Another_version_of_catalog_file__S_was_previously_installed._r_n
mov dword [rsp + 0x50], 1
mov ecx, r15d
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x60], r15d
call fcn.1400168a8
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupCatalogIteration
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 3
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140030677
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030649
cmp dword [rsp + 0x54], r15d
jne 0x140030649
cmp dword [rsp + 0x50], 1
mov eax, ebx
setne al
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r15d
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], ebx
je 0x1400306a7
test rdi, rdi
je 0x1400306be
mov esi, 0x103
lea r8, [0x140047ca0]
mov edx, esi
mov rcx, r14
call fcn.140001470
mov r8, rdi
mov edx, esi
mov rcx, r14
call fcn.140001584
jmp 0x1400306c3
test rdi, rdi
je 0x1400306be
mov r8, rdi
mov edx, 0x103
mov rcx, r14
call fcn.140001470
jmp 0x1400306c3
mov ebx, 0x80004005
mov r8d, ebx
lea rdx, str.GetNameForCatalogOnSystem_returned_0x_x._r_n
mov ecx, r15d
call fcn.1400168a8
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003121c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
lea rax, [rbp - 0x20]
mov qword [r11 - 0x58], r12
lea r9, [rbp - 0x28]
mov qword [r11 - 0x60], r12
mov rdi, r8
mov qword [r11 - 0x68], r12
lea r8, [rbp - 0x18]
mov qword [r11 - 0x70], rax
mov ebx, r12d
lea rax, [rbp - 0x10]
mov qword [rbp - 0x18], r12
mov qword [r11 - 0x78], rax
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x20], r12
call fcn.140030b00
mov rcx, qword [rbp - 0x18]
lea r13d, [r12 + 1]
mov qword [rbp - 8], r12
test rcx, rcx
je 0x140031328
cmp qword [rbp - 0x28], r12
je 0x140031328
mov rdx, qword [rbp - 0x28]
lea rax, [rbp - 8]
lea r9d, [r12 + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031328
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 8]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rbp - 0x30], r13d
mov dword [rbp - 0x18], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400312f1
cmp dword [rbp - 0x30], r13d
cmove ebx, r13d
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140031328
test rdi, rdi
je 0x14003130e
mov rcx, rdi
call fcn.1400173dc
jmp 0x140031311
mov eax, r12d
test eax, eax
je 0x140031328
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140031319
test rax, rax
jne 0x140031342
cmp qword [rbp - 0x20], r12
je 0x140031342
mov r8, qword [rbp - 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.140001470
mov ebx, r13d
cmp qword [rbp - 0x28], r12
je 0x140031351
mov rcx, qword [rbp - 0x28]
call fcn.14003c408
cmp qword [rbp - 0x10], r12
je 0x140031360
mov rcx, qword [rbp - 0x10]
call fcn.14003c408
cmp qword [rbp - 0x20], r12
je 0x14003136f
mov rcx, qword [rbp - 0x20]
call fcn.14003c408
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x14003221c
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x50
mov r14, r8
mov dword [rsp + 0x28], 1
lea rax, str.SMARTREBOOT
xor esi, esi
test rdx, rdx
mov qword [r11 - 0x38], rax
lea r9, str.DEFAULTINSTALL
cmovne r9, rdx
lea r8, [r11 - 0x28]
lea rdx, [r11 + 8]
xor ecx, ecx
call fcn.140030854
test eax, eax
je 0x1400323a6
lea edx, [rsi + 1]
lea rcx, [rsp + 0x30]
call fcn.14003079c
mov rdi, rax
test rax, rax
je 0x1400323a6
mov rdx, rax
lea rcx, [0x1400481e0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14003239e
mov rdx, rdi
lea rcx, [0x1400481e4]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14003239e
mov rdx, rdi
lea rcx, [0x1400481e8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov rcx, qword [0x140050310]
test eax, eax
jne 0x140032335
cmp rcx, 0xffffffffffffffff
jne 0x1400322ed
lea edx, [rsi + 2]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140032317
cmp dword [0x1400516e0], 2
jl 0x140032317
and dword [rsp + 0x68], esi
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], rsi
lea rdx, str.__An_INF_will_be_installing_a_driver.__May_require_a_reboot._r_n
mov r8d, 0x3e
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, 0xd2af8
test r14, r14
je 0x14003239e
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14003079c
mov qword [r14], rax
jmp 0x14003239e
cmp rcx, 0xffffffffffffffff
jne 0x140032350
lea edx, [rcx + 3]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14003237a
cmp dword [0x1400516e0], 2
jl 0x14003237a
and dword [rsp + 0x68], esi
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], rsi
lea rdx, str.__An_INF_requested_a_reboot_via_the_SmartReboot_section._r_n
mov r8d, 0x3a
call qword [sym.imp.KERNEL32.dll_WriteFile]
or dword [0x140050558], 8
lea r8, str.INF_set_SmartRebootA
lea rdx, str.__Reboot_requested_due_to__S_file_copy._r_n
mov ecx, 2
call fcn.1400168a8
mov esi, 0xd2af9
mov rcx, rdi
call fcn.14003c408
mov rdi, qword [rsp + 0x78]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140033008
Capabilities:
Delete directory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x38], rdx
mov r14d, 1
cmp rdx, 0xffffffffffffffff
je 0x140033174
test r8, r8
mov dword [r11 - 0x40], r14d
lea rax, str.DELDIRS
lea r9, str.DEFAULTINSTALL
mov qword [r11 - 0x48], rax
cmovne r9, r8
lea rdx, [r11 - 0x38]
lea r8, [r11 - 0x30]
xor ecx, ecx
call fcn.140030854
test eax, eax
je 0x140033174
mov ecx, 0x26d7
xor r14d, r14d
call fcn.140015bb4
lea rcx, [rsp + 0x38]
call fcn.140030704
mov rdi, rax
test rax, rax
je 0x140033174
mov rcx, rax
jmp 0x140033153
mov r8, rbx
lea rdx, str._Parsing_DelDirs_section:_S._r_n
mov ecx, 4
call fcn.1400168a8
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400330ce
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call fcn.14001b0b0
test eax, eax
je 0x140033151
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov esi, 1
call fcn.14001af24
mov ecx, eax
mov ebp, eax
call fcn.140015a28
cmp ebp, esi
jb 0x140033151
mov ecx, esi
call fcn.140015b2c
lea rcx, [rsp + 0x38]
inc esi
call fcn.140030704
mov rbx, rax
test rax, rax
je 0x140033139
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, rbx
call fcn.1400173dc
mov r8, rbx
lea rdx, str._Attempted_to_delete:__S._r_n
mov ecx, 4
call fcn.1400168a8
mov rcx, rbx
call fcn.14003c408
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140033151
cmp esi, ebp
jbe 0x1400330f1
xor ecx, ecx
lea rdx, [0x140043808]
call qword [sym.imp.msvcrt.dll_wcstok]
mov rbx, rax
test rax, rax
jne 0x14003308e
mov rcx, rdi
call fcn.14003c408
lea r11, [rsp + 0x50]
mov eax, r14d
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140038354
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp - 0x10]
and dword [r8], ebx
mov rsi, r8
and qword [rbp - 0x10], rbx
mov r14, rdx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.http_shellopencommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140038436
mov rdi, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
and dword [rbp + 0x30], ebx
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rcx, rdi
and qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140038408
mov ecx, dword [rbp + 0x30]
call fcn.14003c460
mov rbx, rax
test rax, rax
je 0x140038408
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test rbx, rbx
je 0x140038436
cmp dword [rbp + 0x38], 1
jne 0x140038436
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strlwr]
mov rcx, rax
mov rdx, r14
mov rbx, rax
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
je 0x140038436
mov dword [rsi], 1
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140038445
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140038452
mov rcx, rbx
call fcn.14003c408
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret