joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038c40
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rdx
mov rbx, rcx
mov r9, rdx
mov edx, VariantChangeTypeEx
call fcn.14006d6d8
nop
lea rax, vtable.COptionDlg.1.0
mov qword [rbx], rax
lea rax, vtable.COptionDlg.0
mov qword [rbx + 0x130], rax
lea rcx, [rbx + 0x6f0]
lea rax, [fcn.140002f4c]
mov qword [rsp + 0x20], rax
lea r9, [fcn.1400042f0]
mov edx, 8
lea r8d, [rdx + 0x39]
call fcn.1400aa2c8
nop
call fcn.140071a10
mov rcx, rax
xor edi, edi
test rax, rax
je 0x140038e18
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx + 0x8f8], rax
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140038e23
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx + 0x900], rax
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140038e2e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx + 0x908], rax
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140038e39
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx + 0x910], rax
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140038e0d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx + 0x918], rax
call fcn.140080930
mov r8, qword [rax + 8]
lea rcx, [rbx + 0x2cc]
mov r8, qword [r8 + 0x1b0]
mov edx, 0x104
call fcn.1400b4794
lea rcx, [rbx + 0x298]
lea rdx, [rbp + 0x298]
call fcn.1400028e0
lea rcx, [rbx + 0x2a0]
lea rdx, [rbp + 0x2a0]
call fcn.1400028e0
lea r9, [rbp + 0x2cc]
xor r8d, r8d
lea rdx, str.ZoomType
lea rcx, str.Setting
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rbx + 0x4e0], eax
lea rsi, [rbp + 0x798]
mov r14, rbx
sub r14, rbp
mov edx, edi
mov rcx, rbp
call fcn.14002fc24
mov dword [r14 + rsi - 0x2b0], eax
mov eax, dword [rsi]
mov dword [r14 + rsi - 0x1ac], eax
inc edi
lea rsi, [rsi + 4]
cmp edi, 0x40
jle 0x140038dd0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140002f7c
nop
mov ecx, 0x80004005
call fcn.140002f7c
nop
mov ecx, 0x80004005
call fcn.140002f7c
nop
mov ecx, 0x80004005
call fcn.140002f7c
nop
mov ecx, 0x80004005
call fcn.140002f7c
int3
Function at 0x140040044
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetNtVersionNumbers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004025d
lea r8, [0x140126978]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call rax
mov eax, dword [0x140126978]
and eax, 0xfffffff
cmp dword [rsp + 0x40], 0xa
mov dword [0x140126978], eax
jne 0x14004025d
cmp dword [rsp + 0x48], 0
jne 0x14004025d
cmp eax, 0x4563
jb 0x14004025d
xor edx, edx
lea rcx, str.uxtheme.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x14004025d
mov edx, 0x31
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x68
mov rcx, rbx
mov qword [0x140126988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x6a
mov rcx, rbx
mov qword [0x140126998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x85
mov rcx, rbx
mov qword [0x1401269b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x87
mov rcx, rbx
mov qword [0x1401269a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x140126978], 0x47ba
jae 0x14004015b
mov qword [0x1401269a0], rax
jmp 0x140040162
mov qword [0x140126980], rax
mov edx, 0x89
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [0x140126990], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetWindowCompositionAttribute
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140126988], 0
mov qword [0x1401269b8], rax
je 0x14004025d
cmp qword [0x140126998], 0
je 0x14004025d
cmp qword [0x1401269b0], 0
je 0x14004025d
cmp qword [0x1401269a8], 0
je 0x14004025d
mov rdx, qword [0x1401269a0]
mov rax, qword [0x140126980]
test rdx, rdx
jne 0x1400401eb
test rax, rax
je 0x14004025d
cmp qword [0x140126990], 0
je 0x14004025d
mov ebx, 1
mov byte [0x14012697d], bl
test rdx, rdx
je 0x14004020b
mov cl, bl
call rdx
jmp 0x140040214
test rax, rax
je 0x140040214
mov ecx, ebx
call rax
call qword [0x140126998]
call qword [0x1401269b0]
test al, al
je 0x140040253
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor eax, eax
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov qword [rsp + 0x24], rax
mov dword [rsp + 0x2c], eax
lea ecx, [rdx + 0x32]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140040255
test byte [rsp + 0x24], bl
je 0x140040255
xor bl, bl
mov byte [0x14012697c], bl
jmp 0x140040263
mov bl, byte [0x14012697c]
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x14004093c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rsp + 0x50]
mov rdi, rcx
mov qword [rcx + 0x150], rsi
mov ebp, edx
mov dword [rcx + 0x13c], 1
mov qword [rcx + 0x158], r8
mov dword [rcx + 0x14c], r9d
test r9d, r9d
je 0x1400409cd
test rsi, rsi
je 0x1400409cd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd8]
mov edx, dword [rdi + 0x14c]
mov r8d, 1
mov rbx, rax
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rdi + 0x150]
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + 0xe0]
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_DrawMenuBar]
movzx edx, bp
mov r8, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp method.CDialog.virtual_720

Function at 0x140041510
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
and dword [rsp + 0x30], 0
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x14004167b
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x50]
lea r8, [0x1400ea000]
mov rdx, qword [rsi]
mov rcx, qword [rdi]
cmp dword [rbp + 0x1b0], 0
jne 0x1400415e7
mov rax, qword [r14 + 0x240]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x50]
call fcn.1400af134
mov r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002b78
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jne 0x14004161c
lea r9, [rsp + 0x50]
lea r8, [0x1400ea000]
mov rdx, qword [rsi]
mov rcx, qword [rdi]
mov rax, qword [r14 + 0x248]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x50]
call fcn.1400af134
mov r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002b78
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004163d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x14004165b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400a9d90
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002f7c
int3
Function at 0x140041688
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ebx, 1
mov dword [rax - 0x10], ebx
and qword [rax - 0x18], 0
xor r9d, r9d
mov r8, qword [rdx]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jg 0x14004173f
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140041767
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov r8, qword [rdi]
lea rdx, str.url.dll_FileProtocolHandler__s
lea rcx, [rsp + 0x40]
call fcn.1400042cc
mov dword [rsp + 0x28], ebx
and qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x40]
mov r9, rbx
lea r8, str.rundll32.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004173f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004175c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002f7c
int3
Function at 0x140043994
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x160
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
call fcn.140073cbc
nop
lea rax, vtable.CListCtrlFx.0
mov qword [rdi], rax
xor esi, esi
mov qword [rdi + 0xf4], rsi
mov qword [rdi + 0xfc], rsi
mov qword [rdi + 0x104], rsi
lea rbx, [rdi + 0x118]
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.140073cbc
lea rax, vtable.CHeaderCtrlFx.0
mov qword [rbx], rax
mov qword [rbx + 0x128], rsi
lea rcx, vtable.CFont.0
mov qword [rbx + 0x120], rcx
mov qword [rbx + 0xe8], rsi
mov dword [rbx + 0xf0], esi
mov dword [rbx + 0xf8], 0xe0e0e0
mov dword [rbx + 0xf4], 0xffffff
movabs rax, 0x3ff0000000000000
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x108], rax
mov dword [rbx + 0x130], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rbx + 0x138], rsi
mov qword [rbx + 0x140], rsi
mov qword [rbx + 0x114], rsi
lea r14d, [rsi + 1]
mov dword [rbx + 0x110], r14d
mov qword [rdi + 0x288], rsi
mov qword [rdi + 0x280], rcx
lea rcx, [rdi + 0x290]
call fcn.14007fb3c
mov qword [rdi + 0x2b8], rsi
lea rax, vtable.CBitmap.0
mov qword [rdi + 0x2b0], rax
mov qword [rdi + 0x2c8], rsi
mov qword [rdi + 0x2c0], rax
lea rcx, [rdi + 0x2d0]
call fcn.14003b930
mov qword [rdi + 0xe8], rsi
mov eax, dword [0x14011f324]
cmp eax, 0xffffffff
jne 0x140043b1c
mov dword [0x14011f324], esi
mov ebx, 0x11c
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400abab0
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x14011f324]
cmp dword [rsp + 0x34], 6
cmovae eax, r14d
mov dword [0x14011f324], eax
mov dword [rdi + 0xf0], eax
mov qword [rdi + 0x2a0], rsi
mov qword [rdi + 0x10c], 1
mov dword [rdi + 0x114], esi
mov qword [rdi + 0x260], rsi
mov dword [rdi + 0x268], esi
mov dword [rdi + 0x26c], 0xffffff
mov dword [rdi + 0x270], 0xf8f8f8
mov dword [rdi + 0x274], 0xfff8f8
mov dword [rdi + 0x278], 0xe0e0e0
mov dword [rdi + 0x27c], 0xf0f0f0
mov dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin], 0xffffff
mov byte [rdi + 0x2ac], 0x80
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a9d90
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140046414
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx ecx, r8b
mov rsi, r9
mov r9, qword [r9]
mov r8d, ecx
mov eax, ecx
shl r8d, 8
shl eax, 0x10
mov rbx, rdx
mov rdx, qword [rdx]
or r8d, eax
or r8d, ecx
lea rcx, str.Color
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
movzx edi, ax
and edi, 0xffffff00
shr ecx, 0x10
movzx edx, cl
or edi, edx
movzx eax, al
mov rdx, qword [rbx]
shl eax, 0x10
sub rdx, 0x18
or edi, eax
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004648d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
mov ecx, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x1400464ab
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400464c0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
movzx r8d, r8b
mov r9, qword [r9]
lea rcx, str.Alpha
mov rbx, rdx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rdx, qword [rbx]
mov edi, eax
sub rdx, 0x18
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x14004650e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004652b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
mov al, dil
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400472dc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp dword [0x14011f32c], 0xffffffff
jne 0x1400473b0
and dword [0x14011f32c], 0
lea rdx, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
and qword [rbp + 0x28], 0
mov eax, 4
and dword [rbp + 0x10], 0
mov r9d, 0x20019
mov dword [rbp + 0x20], eax
xor r8d, r8d
mov dword [rbp + 0x18], eax
mov rcx, 0xffffffff80000002
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140047361
lea rax, [rbp + 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREWow6432NodeMicrosoftNET_Framework_SetupNDP_v2.0.50727
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400473b0
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x10]
xor r8d, r8d
lea rdx, str.Install
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400473a6
mov eax, dword [0x14011f32c]
mov ecx, 1
cmp dword [rbp + 0x10], ecx
cmove eax, ecx
mov dword [0x14011f32c], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x14011f32c]
add rsp, 0x30
pop rbp
ret

Function at 0x1400473bc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp dword [0x14011f328], 0xffffffff
jne 0x140047490
and dword [0x14011f328], 0
lea rdx, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
and qword [rbp + 0x28], 0
mov eax, 4
and dword [rbp + 0x10], 0
mov r9d, 0x20019
mov dword [rbp + 0x20], eax
xor r8d, r8d
mov dword [rbp + 0x18], eax
mov rcx, 0xffffffff80000002
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140047441
lea rax, [rbp + 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047490
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x10]
xor r8d, r8d
lea rdx, str.Install
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140047486
mov eax, dword [0x14011f328]
mov ecx, 1
cmp dword [rbp + 0x10], ecx
cmove eax, ecx
mov dword [0x14011f328], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x14011f328]
add rsp, 0x30
pop rbp
ret
Function at 0x14004749c
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edi, edi
lea r14d, [rdi + 1]
mov eax, dword [0x14011f320]
cmp eax, 0xffffffff
jne 0x14004751a
and dword [0x14011f320], edi
mov ebx, 0x11c
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400abab0
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x14011f320]
cmp dword [rsp + 0x54], 5
cmove eax, r14d
mov dword [0x14011f320], eax
test eax, eax
je 0x140047625
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 0x100
and qword [rsp + 0x38], rdi
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x14004764d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemeManager_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047608
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.ThemeActive
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400475fc
lea rcx, [rbp + 0x70]
call fcn.1400af134
mov r8d, eax
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140002b78
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
jl 0x1400475fc
lea rdx, [0x1400eb3dc]
mov rcx, rbx
call fcn.1400ac1d8
test rax, rax
je 0x1400475fc
sub rax, rbx
sar rax, 1
test eax, eax
cmove edi, r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140047623
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400a9d90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002f7c
int3

Function at 0x140047658
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, dword [0x14011f31c]
cmp ebx, 0xffffffff
jne 0x1400476cb
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
mov dword [0x14011f31c], ebx
mov r8d, 0x11c
call fcn.1400abab0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 5
jbe 0x1400476c5
cmp dword [rsp + 0x24], 6
jne 0x1400476c0
cmp dword [rsp + 0x28], 2
jbe 0x1400476c5
mov ebx, 1
mov dword [0x14011f31c], ebx
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a9d90
add rsp, 0x150
pop rbx
ret
Function at 0x14004ab7c
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r14d, r14d
mov rsi, rdx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
mov rbx, rcx
mov dword [rsp + 0x34], r14d
mov word [rbp - 0x80], r14w
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [rsp + 0x30], eax
lea rcx, [r14 - 1]
mov edx, eax
lea eax, [r14 + 2]
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.140002968
mov r8d, dword [rsp + 0x30]
mov r9, rax
xor edx, edx
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14004acd6
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [0x1400ea7b4]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rdx, qword [rsp + 0x38]
lea r8d, [r14 + 0x34]
lea rcx, [rsp + 0x48]
call fcn.1400abc70
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rdx, qword [rsp + 0x38]
lea r8d, [r14 + 4]
lea rcx, [rsp + 0x34]
call fcn.1400abc70
mov eax, dword [rsp + 0x34]
lea rdx, str.StringFileInfo_04X_04X_s
movzx r8d, word [rsp + 0x34]
lea rcx, [rbp - 0x80]
shr rax, 0x10
movzx r9d, ax
lea rax, [0x1400fa770]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x80]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov r8, qword [rsp + 0x38]
lea rcx, [rbp - 0x80]
mov ebx, 0x100
mov edx, ebx
call fcn.1400b4794
test rsi, rsi
je 0x14004acd6
mov r8, qword [rsp + 0x38]
mov edx, ebx
mov rcx, rsi
call fcn.1400b4794
mov rcx, rdi
call fcn.14007112c
lea rdx, [0x1400ea000]
lea rcx, [rbp - 0x80]
call fcn.1400b303c
test eax, eax
je 0x14004ad09
lea rcx, [rbp - 0x80]
call fcn.1400bb564
mulsd xmm0, qword [0x140104d98]
cvttsd2si eax, xmm0
jmp 0x14004ad0b
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400a9d90
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret