joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031cf0
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x40
mov rsi, rcx
lea rcx, str.E_WECDCM.DLL
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rbx, rax
je 0x140031e6c
lea rdx, str.ECDAuthenticate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r12, rax
je 0x140031e5e
test rsi, rsi
mov rbp, rdi
je 0x140031d50
mov rbp, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x180]
mov eax, dword [rcx]
bt rax, 0xe
jae 0x140031d66
movzx eax, word [rcx + 0x40]
jmp 0x140031d6c
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r10d, ax
mov rax, qword [rsi + 0x180]
mov rdx, qword [rax + 0x70]
test rdx, rdx
je 0x140031da8
cmp dword [rax + 0x20], 0x80000000
je 0x140031da8
mov rcx, qword [rax + 0x20]
test rcx, rcx
js 0x140031da2
cmp rcx, qword [rdx + 0x10]
jge 0x140031da2
mov rax, qword [rdx + 8]
mov rcx, qword [rax + rcx*8]
jmp 0x140031dab
call fcn.1400a0610
int3
mov rcx, rdi
test rcx, rcx
je 0x140031dbd
mov rax, qword [rcx + 0x30]
cmp dword [rax - 0x10], edi
cmove rax, rdi
jmp 0x140031dc0
mov rax, rdi
xor r9d, r9d
mov edx, r10d
mov rcx, rbp
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rax
call r12
test eax, eax
jne 0x140031dea
mov rcx, rbx
lea edi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031eef
mov r9, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x180]
mov qword [rsp + 0x30], rdi
mov r8d, 0x124
mov dx, 0x3ed
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.14000de80
xor r9d, r9d
cmp eax, 7
je 0x140031e4c
mov rcx, qword [rsi + 0x180]
lea r8d, [r9 + 0x30]
mov dx, 0x3ec
mov qword [rsp + 0x20], rdi
call fcn.14000dab0
mov r11, qword [rsi + 0x180]
xor r9d, r9d
mov edx, 0x2b39
mov word [r11 + 0x2a], 3
jmp 0x140031e51
mov edx, 0x2b23
mov rcx, qword [rsi + 0x40]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031eef
mov rbx, qword [rsi + 0x180]
movabs rax, 0x20000000000000
test qword [rbx], rax
jne 0x140031ecd
mov dword [rbx + 8], 0x30
mov word [rbx + 0xc], 0x3ec
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140031eaa
mov rcx, qword [rbx + 0x190]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x10], rdi
mov r8, qword [rbx + 0x18]
test r8, r8
je 0x140031ec9
mov rcx, qword [rbx + 0x190]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rsi + 0x180]
xor r9d, r9d
xor r8d, r8d
mov word [rcx + 0x2a], 3
mov rcx, qword [rsi + 0x40]
mov edx, 0x2b39
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x140048800
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov rdi, qword [rcx + 0x80]
test rdx, rdx
je 0x14004890f
test rdi, rdi
je 0x14004890f
xor ebx, ebx
nop
mov rdx, rsi
mov rcx, rdi
call fcn.1400cdd20
mov r8d, ebx
test eax, eax
sete r8b
mov ecx, 0x7fffffff
mov rax, rdi
mov edx, ebx
nop
cmp word [rax], dx
je 0x140048881
add rax, 2
sub rcx, 1
jne 0x140048870
jmp 0x140048886
test rcx, rcx
jne 0x140048890
mov edx, 0x80070057
mov rax, rbx
jmp 0x140048898
mov eax, 0x7fffffff
sub rax, rcx
test edx, edx
jns 0x1400488a5
mov rax, rbx
test edx, edx
cmovs rax, rbx
cdqe
lea rdi, [rdi + rax*2 + 2]
test r8d, r8d
jne 0x1400488b8
cmp word [rdi], bx
jne 0x140048850
jmp 0x14004890f
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov esi, 1
cmp rax, 0xffffffffffffffff
je 0x14004890b
nop
nop
nop
test byte [rsp + 0x30], 0x10
cmove ebx, esi
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400488fe
test ebx, ebx
je 0x1400488e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x14004890f
mov eax, esi
jmp 0x140048911
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400cd6e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004f480
Capabilities:
Enumerate network shares

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x2058
call fcn.1400ea040
sub rsp, rax
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rdi, qword [rsp + 0x20a0]
lea rax, [rsp + 0x38]
mov ebp, edx
mov qword [rsp + 0x20], rax
xor ebx, ebx
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x14004f5e3
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x2000
call sub.MPR.dll_WNetEnumResourceW
cmp eax, 0x103
je 0x14004f5d9
nop
nop
cmp dword [0x140136fd0], 0
jne 0x14004f5d9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x4c]
test r11b, 2
je 0x14004f53f
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r9, [rsp + 0x40]
mov edx, ebp
lea ecx, [r8 - 0xe]
mov qword [rsp + 0x20], rdi
call fcn.14004f480
mov ebx, eax
jmp 0x14004f5a5
test r11b, 1
je 0x14004f5a5
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14004f5a5
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x40
add eax, 1
movsxd rbx, eax
add rbx, rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, qword [rsp + 0x58]
mov r8, rbx
mov rcx, rax
mov rsi, rax
call fcn.1400cfba0
mov rbx, qword [rdi + 0x10]
test rbx, rbx
js 0x14004f601
lea rdx, [rbx + 1]
or r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.14004f780
mov r11, qword [rdi + 8]
mov qword [r11 + rbx*8], rsi
mov ebx, 1
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x2000
call sub.MPR.dll_WNetEnumResourceW
cmp eax, 0x103
jne 0x14004f500
mov rcx, qword [rsp + 0x38]
call sub.MPR.dll_WNetCloseEnum
mov eax, ebx
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1400cd6e0
add rsp, 0x2058
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400a0610
int3
Function at 0x140056370
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov qword [rsp + 0x20], rdx
lea r9, str.lpszInfPath_s
lea r8, str.UninstallOemInfFiles
lea rdx, str.CPrinterFunc
mov rcx, qword [rcx]
call fcn.140080c70
lea rbp, [0x1400fcfd8]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x1400563ea
mov dword [rsp + 0x48], 0x7e
jmp 0x1400564cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffc
bts eax, 7
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, str.SetupUninstallOEMInfW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14005648f
mov rax, rbx
cmp word [rbx], 0
je 0x140056440
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp word [rax], 0
jne 0x140056426
cmp rbx, rax
ja 0x14005646b
nop
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14005646b
cmp cx, 0x2f
je 0x14005646b
cmp cx, 0x3a
je 0x14005646b
cmp rax, rbx
je 0x140056477
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharPrevW]
cmp rbx, rax
jbe 0x140056440
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x1400564c2
mov rdx, rbx
lea rcx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x68]
mov rdx, rbx
lea rcx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400564e1
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14005f010
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov r12, rcx
mov rcx, qword [rcx]
mov r13, rdx
mov qword [rsp + 0x20], rdx
lea r9, str.lpAddRefInfo_x
lea r8, str.EntryAddReg
lea rdx, str.CRegistryIF
call fcn.140080c70
mov rbx, qword [r13 + 8]
mov rdi, qword [r13]
mov rcx, qword [r12]
lea rax, [rsp + 0xa0]
lea r9, str.hKey_x__lpszSubKey_s__phSubKey_x
mov qword [rsp + 0x30], rax
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov qword [rsp + 0x28], rbx
xor ebp, ebp
mov qword [rsp + 0x20], rdi
call fcn.140081070
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa8]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], 0xf003f
mov esi, ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea r14d, [rbp + 1]
test eax, eax
jne 0x14005f0e0
mov rax, qword [rsp + 0xa8]
mov esi, r14d
mov qword [rsp + 0xa0], rax
mov rcx, qword [r12]
lea r9, [0x1400fb428]
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], esi
call fcn.140081270
test esi, esi
je 0x14005f1b1
mov ebx, dword [r13 + 0x10]
mov rdi, qword [r13 + 0x18]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [r12]
mov dword [rsp + 0x30], ebx
lea r9, str.hKey_x__lpszEntry_s__dwType_u
lea r8, str.MakeEntry
lea rdx, str.CRegistryIF
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call fcn.140081070
mov r9d, ebx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [r12]
test eax, eax
mov ebx, ebp
cmove ebx, r14d
lea r9, [0x1400fb428]
lea r8, str.MakeEntry
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], ebx
call fcn.140081270
test ebx, ebx
je 0x14005f1b1
mov eax, dword [r13 + 0x28]
mov r9, qword [r13 + 0x20]
mov r8, qword [r13 + 0x18]
mov rdx, qword [rsp + 0xa0]
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.140067ac0
mov ebp, eax
mov rcx, qword [r12]
lea r9, [0x1400fb428]
lea r8, str.EntryAddReg
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], ebp
call fcn.140080e70
mov eax, ebp
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400672f0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x8c0], rbx
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0x20], rdx
lea r9, str.hKey_x
lea r8, str.EnumSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [rcx]
call fcn.140081070
xor r15d, r15d
mov rbx, r15
mov dword [rsp + 0x40], 0x400
mov ebp, r15d
lea rdi, method.CPtrArray.virtual_0
nop
nop
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, ebp
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12d, eax
test eax, eax
jne 0x140067491
test rbx, rbx
jne 0x1400673e5
lea ecx, [rax + 0x30]
call fcn.140091360
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400673e2
mov rcx, rax
call fcn.1400aa430
nop
mov qword [rbx], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rbx + 0x28], rax
jmp 0x1400673e5
mov rbx, r15
mov ecx, 0x3fffffff
lea rax, [rsp + 0x60]
nop
cmp word [rax], 0
je 0x140067405
add rax, 2
sub rcx, 1
jne 0x1400673f0
jmp 0x140067491
test rcx, rcx
je 0x140067491
mov eax, 0x3fffffff
sub rax, rcx
lea rdi, [rax + rax + 2]
test rdi, rdi
jle 0x140067481
mov r8, rdi
mov edx, 8
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14006748a
mov r9, rdi
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rax
call fcn.1400cd500
test eax, eax
jne 0x140067469
mov r8, rsi
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400aa678
lea rdi, method.CPtrArray.virtual_0
jmp 0x140067491
mov r8, rsi
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdi, method.CPtrArray.virtual_0
jmp 0x140067491
lea rdi, method.CPtrArray.virtual_0
jmp 0x140067491
lea rdi, method.CPtrArray.virtual_0
mov word [rsp + 0x60], 0
mov dword [rsp + 0x40], 0x400
add ebp, 1
cmp r12d, 0x103
jne 0x140067370
mov qword [rsp + 0x20], rbx
lea r9, [0x1400facf8]
lea r8, str.EnumSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [r14]
call fcn.140081270
mov rax, rbx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400cd6e0
mov rbx, qword [rsp + 0x8c0]
add rsp, 0x870
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400678e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x28], r8
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdx
mov rbp, r8
mov r12, rdx
lea rdx, str.CRegistryIF
lea r9, str.hKey_x__lpszEntry_s
lea r8, str.GetValue
call fcn.140081070
xor edi, edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400679cd
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400679cd
cmp dword [rsp + 0x68], 1
jne 0x140067964
add eax, 2
mov dword [rsp + 0x60], eax
test eax, eax
mov rcx, qword [rsi + 8]
mov r8d, eax
je 0x1400679cd
mov rcx, qword [rcx]
mov edx, 8
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1400679c8
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400679b6
mov rdi, rbx
jmp 0x1400679c8
mov rcx, qword [rsi + 8]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsi]
lea r9, [0x1400facf8]
lea r8, str.GetValue
lea rdx, str.CRegistryIF
mov qword [rsp + 0x20], rdi
call fcn.140081270
mov rbp, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x140067ac0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r12d, dword [rsp + 0x80]
mov r13, rcx
mov rcx, qword [rcx]
mov dword [rax - 0x20], r12d
mov qword [rax - 0x28], r9
mov qword [rax - 0x30], r8
mov qword [rax - 0x38], rdx
mov rbp, r9
mov rdi, r8
mov rsi, rdx
lea rdx, str.CRegistryIF
lea r9, str.hKey_x__lpszEntry_s__lpbyVal_x__nSize_u
lea r8, str.SetValue
call fcn.140081070
xor ebx, ebx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140067b66
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], r12d
cmp r9d, 1
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbp
jne 0x140067b5b
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, qword [r13]
lea r9, [0x1400fb428]
lea r8, str.SetValue
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], ebx
call fcn.140081270
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x140067bb0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x28], r8
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdx
mov rbp, r8
mov r12, rdx
lea rdx, str.CRegistryIF
lea r9, str.hRootKey_x__lpszKeyName_s
lea r8, str.DeleteKey
call fcn.140081070
lea rax, [rsp + 0x98]
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x98], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140067d23
mov rcx, qword [rsi]
mov qword [rsp + 0x80], rbx
mov rbx, qword [rsp + 0x98]
lea r9, str.hKey_x
lea r8, str.GetSubKeyCnt
lea rdx, str.CRegistryIF
mov qword [rsp + 0x20], rbx
call fcn.140081070
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r11d, dword [rsp + 0x90]
mov rcx, qword [rsi]
lea r9, [0x1400fb428]
lea r8, str.GetSubKeyCnt
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], r11d
call fcn.140081270
cmp dword [rsp + 0x90], edi
jne 0x140067ce7
mov rdx, qword [rsp + 0x98]
mov rcx, rsi
call fcn.140067230
test eax, eax
jne 0x140067ce7
lea ebx, [rdi + 1]
jmp 0x140067ce9
mov ebx, edi
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x80]
je 0x140067d11
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
jmp 0x140067d1d
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
sete dil
mov rcx, qword [rsi]
lea r9, [0x1400fb428]
lea r8, str.DeleteKey
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], edi
call fcn.140081270
mov rbp, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x60
pop r12
pop rdi
pop rsi
ret
Function at 0x140068d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx]
mov rbp, rdx
mov qword [rsp + 0x20], rdx
lea r9, str.hKey_x
lea r8, str.GetUninstallSettingRootKey
lea rdx, str.CRegistryIF
call fcn.140081070
lea r12, [0x1400fb278]
mov rdx, rbp
mov rcx, rsi
mov r8, r12
xor ebx, ebx
call fcn.1400678e0
test rax, rax
mov rdi, rax
je 0x140068e54
mov rcx, qword [rsi]
lea r9, str.hKey_x__lpszEntry_s
lea r8, str.GetValueType
lea rdx, str.CRegistryIF
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
call fcn.140081070
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x60]
mov rcx, qword [rsi]
lea r9, [0x1400fb428]
lea r8, str.GetValueType
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], r11d
call fcn.140081270
mov r11d, dword [rsp + 0x60]
sub r11d, 1
je 0x140068e0f
cmp r11d, 3
jne 0x140068e42
mov r9d, 4
lea rcx, [rsp + 0x60]
mov r8, rdi
mov rdx, r9
mov dword [rsp + 0x60], ebx
call fcn.1400cd500
movsxd rbx, dword [rsp + 0x60]
jmp 0x140068e42
lea rdx, [rsp + 0x68]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rdi
call fcn.1400cf260
mov ebx, eax
call fcn.1400cf300
cmp dword [rax], 0x22
je 0x140068e38
call fcn.1400cf300
cmp dword [rax], 0x16
jne 0x140068e3f
mov rbx, 0xffffffff80000000
movsxd rbx, ebx
mov rcx, qword [rsi + 8]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsi]
lea r9, [0x1400facf8]
lea r8, str.GetUninstallSettingRootKey
lea rdx, str.CRegistryIF
mov qword [rsp + 0x20], rbx
call fcn.140081270
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14006ae60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov rdi, r8
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov dword [rcx + 0x28], eax
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x14006af11
lea r8, [0x1400fe410]
mov rdx, rdi
mov rcx, rax
mov dword [rbx], 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14006af11
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rax
test rcx, rcx
je 0x14006af11
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14006af11
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x18], rax
test rcx, rcx
je 0x14006af11
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14006af11
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14006af11
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x28], eax
test rcx, rcx
je 0x14006af11
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14006af11
mov qword [rbx + 0x20], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400796a0
Capabilities:
Identify system language via api

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
movzx edi, dx
mov rsi, rcx
mov dword [rsp + 0x20], edi
lea r9, str.lid_u
lea r8, str.MakeLangOptTbl
lea rdx, str.CScriptFileIF
mov rcx, qword [rcx + 0x40]
call fcn.140081070
add rsi, 0x20
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400796f8
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebx, ebx
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
test di, di
cmove di, ax
call fcn.14009d5e8
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x140079727
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
movzx ebx, di
mov r8d, ebx
lea rdx, str.._04x
lea rcx, [rsp + 0x50]
call fcn.14000a800
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.14005ce20
and ebx, 0x3ff
mov r8d, ebx
lea rdx, str.._04x
lea rcx, [rsp + 0x50]
call fcn.14000a800
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, rsi
call fcn.14005ce20
lea rdx, [0x1400fb278]
mov rcx, rsi
call fcn.14005ce20
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400797b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret