joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052b40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsd xmm0, qword [str.__s_]
mov rsi, rdx
movzx eax, word [0x1400a7260]
mov rbp, rcx
xor ebx, ebx
movsd qword [rsp + 0x38], xmm0
xor edx, edx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x50]
mov word [rsp + 0x40], ax
mov r8d, 0x208
mov edi, ebx
call sub.msvcrt.dll_memset
lea rax, [rbp - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140052c32
test rsi, rsi
je 0x140052c32
mov r9, rsi
lea r8, [rsp + 0x38]
mov esi, 0x104
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.1400011bc
mov r8d, esi
lea rax, [rsp + 0x50]
cmp word [rax], bx
je 0x140052be2
add rax, 2
sub r8, 1
jne 0x140052bd3
sub esi, r8d
mov qword [rsp + 0x20], rbx
mov rax, r8
lea r9, [rsp + 0x30]
neg rax
mov rcx, rbp
sbb edx, edx
and edx, esi
neg r8
sbb r8d, r8d
and r8d, edx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], r8d
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140052c37
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140052c37
mov edi, 0x57
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret

Function at 0x140052c78
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsd xmm0, qword [str.___s_]
mov rsi, rdx
mov eax, dword [0x1400a7270]
mov rbp, rcx
xor ebx, ebx
movsd qword [rsp + 0x38], xmm0
xor edx, edx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov r8d, 0x208
mov edi, ebx
call sub.msvcrt.dll_memset
lea rax, [rbp - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140052d68
test rsi, rsi
je 0x140052d68
mov r9, rsi
lea r8, [rsp + 0x38]
mov esi, 0x104
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.1400011bc
mov r8d, esi
lea rax, [rsp + 0x50]
cmp word [rax], bx
je 0x140052d18
add rax, 2
sub r8, 1
jne 0x140052d09
sub esi, r8d
mov qword [rsp + 0x20], rbx
mov rax, r8
lea r9, [rsp + 0x30]
neg rax
mov rcx, rbp
sbb edx, edx
and edx, esi
neg r8
sbb r8d, r8d
and r8d, edx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], r8d
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140052d6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140052d6d
mov edi, 0x57
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052db0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x260], rax
movups xmm0, xmmword [str.__s__s___s_]
mov rbp, r8
mov rsi, rdx
movsd xmm1, qword [0x1400a7288]
mov r14, rcx
xor ebx, ebx
movsd qword [rsp + 0x48], xmm1
xor edx, edx
mov dword [rsp + 0x30], ebx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x38], xmm0
mov edi, ebx
call sub.msvcrt.dll_memset
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140052eb7
test rsi, rsi
je 0x140052eb7
test rbp, rbp
je 0x140052eb7
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x38]
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov esi, 0x104
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.1400011bc
mov r8d, esi
lea rax, [rsp + 0x50]
cmp word [rax], bx
je 0x140052e67
add rax, 2
sub r8, 1
jne 0x140052e58
sub esi, r8d
mov qword [rsp + 0x20], rbx
mov rax, r8
lea r9, [rsp + 0x30]
neg rax
mov rcx, r14
sbb edx, edx
and edx, esi
neg r8
sbb r8d, r8d
and r8d, edx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], r8d
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140052ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140052ebc
mov edi, 0x57
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140096bd0
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140052ef8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov eax, dword [0x1400a72a8]
mov rdi, rdx
movups xmm0, xmmword [str.ControlSet___]
lea rdx, str.Select
and qword [rbp - 0x38], 0
movsd xmm1, qword [0x1400a72a0]
xor ebx, ebx
and qword [rbp - 0x48], 0
mov r9d, 0x20019
and dword [rbp - 0x40], 0
xor r8d, r8d
and dword [rbp - 0x4c], ebx
mov rsi, rcx
and dword [rbp - 0x50], ebx
mov dword [rbp - 0x18], eax
lea rax, [rbp - 0x38]
movups xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x20], rax
movsd qword [rbp - 0x20], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053013
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x40]
lea rax, [rbp - 0x4c]
mov dword [rbp - 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Current
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053013
mov r9d, dword [rbp - 0x4c]
lea r8, str.ControlSet_03u
lea edx, [rbx + 0xe]
lea rcx, [rbp - 0x30]
call fcn.1400011bc
test eax, eax
js 0x140053013
lea rax, [rbp - 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053013
mov rax, qword [rbp - 0x48]
xor ecx, ecx
mov qword [rdi], rax
mov qword [rbp - 0x48], rcx
lea ebx, [rcx + 1]
jmp 0x140053017
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140053028
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14005303d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140053068
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x68], rbx
test rcx, rcx
je 0x140053208
test rdx, rdx
je 0x140053208
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MicrosoftWindowsCurrentVersionSetupImageServicingData
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400530dd
mov ecx, eax
jmp 0x14005320d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x1400530d6
cmp dword [rsp + 0x60], ebx
je 0x1400530d6
lea rdx, str.SERVICINGDATA
mov rcx, rdi
call fcn.140052b40
test eax, eax
je 0x140053219
mov esi, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x1400531f7
xor edx, edx
mov dword [rsp + 0x74], 0x104
mov r8d, 0x208
mov dword [rsp + 0x70], 0x208
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x74]
lea rax, [rbp - 0x80]
mov edx, esi
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x190]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400530d6
cmp dword [rsp + 0x78], 1
jne 0x1400531eb
lea rcx, [rbp + 0x190]
call qword [sym.imp.msvcrt.dll__wcsupr]
nop dword [rax + rax]
lea r8, [rbp - 0x80]
mov rcx, rdi
lea rdx, [rbp + 0x190]
call fcn.140052db0
test eax, eax
je 0x140053219
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x140053150
lea rdx, str.SERVICINGDATA
mov rcx, rdi
call fcn.140052c78
jmp 0x140053219
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005322f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005326c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x58], 0
mov r14, rdx
and dword [rsp + 0x50], 0
lea rdx, str.ControlClass4D36E966_E325_11CE_BFC1_08002BE10318
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400533ff
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edi, edi
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
mov edx, edi
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
inc edi
mov ebx, eax
test eax, eax
jne 0x1400533e2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400533e2
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x4c], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MatchingDeviceId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400533d1
xor edx, edx
mov r8d, 0x208
mov rcx, r14
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, r14
call fcn.140001008
lea esi, [rbx + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp ebx, 0x103
jne 0x1400532f2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140053430
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rdi, rdx
and qword [rax - 0x18], 0
xor ebx, ebx
and dword [rax + 0x18], ebx
mov r9d, 0x20019
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ControlNlsLanguage
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400534f5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.InstallLanguage
mov dword [rsp + 0x60], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400534f5
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_wcstoul]
nop dword [rax + rax]
movzx ecx, ax
xor r9d, r9d
mov r8d, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
nop dword [rax + rax]
test eax, eax
lea ecx, [rbx + 1]
cmovne ebx, ecx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005350b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140053b14
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
xor edi, edi
mov r9d, 0x20019
mov qword [r11 - 0x18], rdi
xor r8d, r8d
mov qword [r11 - 0x28], rax
lea rdx, str.ControlWindows
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053bb0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x68], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CSDVersion
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140053bb0
mov edi, dword [rsp + 0x58]
shr edi, 8
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x140053bc4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea rax, [r11 - 0x18]
xor ebx, ebx
mov qword [r11 - 0x28], rax
lea rdx, str.MicrosoftWindows_NTCurrentVersion
mov qword [r11 - 0x18], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140053c55
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.CurrentMajorVersionNumber
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140053c74
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea rax, [r11 - 0x18]
xor ebx, ebx
mov qword [r11 - 0x28], rax
lea rdx, str.MicrosoftWindows_NTCurrentVersion
mov qword [r11 - 0x18], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140053d05
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.CurrentMinorVersionNumber
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140053d24
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
lea rax, [rbp - 0x28]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.MicrosoftWindows_NTCurrentVersion
mov qword [rbp - 0x28], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140053de3
mov rcx, qword [rbp - 0x28]
lea r9, [rbp - 0x2c]
xor eax, eax
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x10], eax
lea rdx, str.CurrentBuildNumber
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], reloc.Cabinet.dll_FDICreate
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140053dd3
lea rcx, [rbp - 0x20]
call qword [sym.imp.msvcrt.dll__wtoi]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140053e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea rax, [r11 - 0x18]
xor ebx, ebx
mov qword [r11 - 0x28], rax
lea rdx, str.MicrosoftWindows_NTCurrentVersion
mov qword [r11 - 0x18], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140053ea1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x1400a7640]
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140053ec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edi, edi
mov dword [rsp + 0x30], 0x2e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], edi
lea rdx, str.MicrosoftWindows_NTCurrentVersion
mov qword [rsp + 0x48], rdi
mov rcx, rbx
mov r14d, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140053fdc
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.BuildLab
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140053fde
lea rcx, [rsp + 0x50]
jmp 0x140053fb9
inc r14d
cmp r14d, 2
je 0x14005400c
xor ecx, ecx
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcstok_s]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
jne 0x140053fae
mov ebx, 0xd
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov edx, 0x82
sub rcx, rsi
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x140054036
movzx eax, word [rcx + rsi]
test ax, ax
je 0x140054036
mov word [rsi], ax
add rsi, 2
sub rdx, 1
jne 0x140054014
test rdx, rdx
lea rax, [rsi - 2]
cmovne rax, rsi
mov word [rax], di
jmp 0x140053fdc
Function at 0x14005404c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
and dword [rsp + 0x40], 0
xor edx, edx
mov rbx, rcx
mov edi, 0xffff
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x108
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140054203
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x40
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x1400541f4
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x1400541f4
mov edx, dword [rsp + 0x8c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400541f4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x108
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x1400541f4
movzx ecx, word [rsp + 0x94]
mov eax, 0x1f0
cmp ecx, eax
ja 0x1400541ba
je 0x1400541b3
sub ecx, 0x14c
je 0x1400541af
sub ecx, 0x16
je 0x1400541a8
sub ecx, 4
je 0x1400541a8
sub ecx, 0x1e
je 0x1400541a1
cmp ecx, 0x40
jne 0x1400541f4
lea edi, [rcx - 0x3b]
jmp 0x1400541f4
mov edi, 2
jmp 0x1400541f4
mov edi, 1
jmp 0x1400541f4
xor edi, edi
jmp 0x1400541f4
mov edi, 3
jmp 0x1400541f4
cmp ecx, 0x200
je 0x1400541ef
cmp ecx, 0x284
je 0x1400541e8
cmp ecx, 0x8664
je 0x1400541e1
cmp ecx, 0xaa64
jne 0x1400541f4
mov edi, 0xc
jmp 0x1400541f4
mov edi, 9
jmp 0x1400541f4
mov edi, 7
jmp 0x1400541f4
mov edi, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x1b0
pop rdi
ret
Function at 0x140057cc4
Capabilities:
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r12, r9
and qword [rbp - 0x48], rsi
mov edi, r8d
mov dword [rbp - 0x50], esi
mov r15, rdx
mov r14, rcx
test rcx, rcx
je 0x140057e27
cmp dword [rcx + 0x4c], esi
jne 0x140057e27
test rdx, rdx
je 0x140057e27
test r9, r9
je 0x140057e27
test r8d, r8d
jne 0x140057d49
mov rdx, qword [rcx + 0x50]
lea r8, [rbp - 0x50]
mov rcx, r15
call fcn.140050fec
mov ebx, eax
test eax, eax
jns 0x140057d46
mov r8d, 0x2b4
jmp 0x140057e32
mov esi, dword [rbp - 0x50]
mov rdx, qword [r14 + 0x50]
mov eax, edi
neg eax
mov r9d, 0x200000
lea rax, [rbp - 0x48]
mov rcx, r15
sbb r8d, r8d
mov qword [rsp + 0x20], rax
and r8d, 0xbefe0000
add r8d, 0xc1020000
call fcn.1400518f4
mov ebx, eax
test eax, eax
jns 0x140057d8a
mov r8d, 0x2c1
jmp 0x140057e32
test edi, edi
jne 0x140057e1d
mov rcx, qword [rbp - 0x48]
lea r9d, [rdi + 0x28]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 4
xor eax, eax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x40]
and esi, 0xfffffb6f
xor ebx, ebx
mov dword [rbp - 0x10], esi
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x140057de2
mov r8d, 0x63e
jmp 0x140057def
mov eax, dword [rbp - 0x40]
test eax, eax
jns 0x140057e11
mov r8d, 0x63f
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibutility_fileio.c
mov ebx, eax
lea rcx, str.FIOSetAttributesByHandle
bts ebx, 0x1c
mov r9d, ebx
call fcn.140046874
test ebx, ebx
jns 0x140057e1d
mov r8d, 0x2cf
jmp 0x140057e32
mov rax, qword [rbp - 0x48]
mov qword [r12], rax
jmp 0x140057e63
mov ebx, 0x80070057
mov r8d, 0x2a8
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimage.c
mov r9d, ebx
lea rcx, str.ImageOpenFile
call fcn.140046874
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140057e63
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140096bd0
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret