joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fd8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor esi, esi
sub edi, edi
mov r14, rcx
mov rbx, rdx
sub r14, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000366c
inc esi
mov edx, 0x104
push rbx
pop rcx
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005051
mov al, byte [r14 + rcx]
test al, al
je 0x140005051
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005032
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [rsp + 0x20]
mov edx, 0x104
cmovne rax, rcx
push rbx
pop rcx
nop
mov byte [rax], dil
call fcn.14000887c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005110
cmp esi, 0x190
jl 0x14000500f
mov r9, rbx
lea rdx, [0x1400099ec]
xor r8d, r8d
push rbp
pop rcx
nop
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
or eax, eax
je 0x1400050e5
push rbx
nop
pop rcx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
sub edx, edx
nop
push rbx
pop rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
sub edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
or eax, eax
je 0x1400050a0
mov dword [0x14000cd00], 1
mov edi, 1
jmp 0x1400050e5

Function at 0x140005140
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
push rdx
pop rsi
nop
mov ebp, r8d
mov rdx, rcx
push rcx
pop rdi
nop
sub ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
sub ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
cmp eax, ebp
ja 0x1400051f9
or rsi, rsi
je 0x1400051f9
or eax, eax
je 0x140005211
mov r8d, 0xa
push rdi
nop
pop rdx
sub ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
push rax
nop
pop rdx
sub ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
push rax
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005211
mov r9d, ebx
mov edx, ebp
mov r8, rax
push rsi
nop
pop rcx
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
push rdi
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
sub eax, eax
jmp 0x1400051fb
Function at 0x140005ed8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
push rcx
pop rbp
nop
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x140005ef3
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
push rax
pop rsi
nop
test rax, rax
jne 0x140005f5d
and dword [rsp + 0x28], eax
sub r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
sub ecx, ecx
call fcn.1400061e8
call fcn.140006590
mov dword [0x14000d544], eax
sub eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
or edi, edi
je 0x140005fa5
cmp rbx, 0x7fffffff
ja 0x140005fa2
mov edx, 0x7ffffffe
mov r8, rbp
sub rdx, rbx
push rsi
pop rcx
nop
sub r8, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140005f97
mov al, byte [r8 + rcx]
test al, al
je 0x140005f97
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140005f7b
or rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
nop
push rsi
pop rcx
call fcn.14000887c
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
nop
push rsi
pop rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
nop
push rsi
pop rcx
push rax
nop
pop rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140005f3a
push rbx
pop rcx
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
push rbp
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005f3a
test al, 0x10
je 0x140005f3a
and dword [0x14000d544], 0
mov eax, 1
jmp 0x140005f47

Function at 0x1400064b0
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, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
or rax, rax
je 0x14000654b
mov rdx, rax
push rbx
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
nop
push rax
pop rdi
or rax, rax
je 0x14000654b
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
nop
push rbx
pop rcx
or rax, rax
jne 0x140006522
and qword [rsp + 0x20], rax
jmp 0x140006527
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
push rax
pop rbx
nop
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x14000656f
and dword [rsp + 0x28], 0
sub r9d, r9d
sub r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.1400061e8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400065b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14000660c
mov al, byte [r9 + rcx]
test al, al
je 0x14000660c
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400065ed
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.14000887c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000665e
test al, 0x10
jne 0x14000665e
sub edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x140006671
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400013e0
add rsp, 0x148
ret
Function at 0x140007010
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
push rcx
pop rbx
nop
mov edi, 1
test rcx, rcx
jne 0x14000704f
xor eax, eax
jmp 0x1400071ee
sub eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rdx
nop
push rbx
pop rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop dword [rax + rax]
or eax, eax
je 0x140007181
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x14000cd08], 0
mov ebx, dword [rsp + 0x50]
jne 0x140007101
mov ecx, dword [0x14000de5c]
test dil, cl
je 0x140007101
test cl, 2
jne 0x140007101
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, ebx
mov dword [0x14000de5c], ecx
test dword [0x14000de64], 0x800
je 0x140007115
mov dword [0x14000d544], ebx
jmp 0x14000714a
call fcn.140002540
cmp eax, 2
je 0x140007140
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x140007132
test dil, bl
jne 0x140007140
test dword [0x14000de64], 0x200
je 0x14000714a
jmp 0x14000710d
mov dword [0x14000d544], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test dword [0x14000de64], 0x400
je 0x1400071ec
cmp dword [rsp + 0x50], 0
jge 0x1400071ec
jmp 0x1400071ea
call fcn.140006590
mov dword [0x14000d544], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
sub r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
sub edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c4
xor ecx, ecx
call fcn.1400061e8
xor edi, edi
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140007bb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
nop
push rcx
pop rbp
sub r9d, r9d
mov edi, 1
jmp 0x140007c5f
push rax
pop rdx
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
push rax
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
push rax
pop rbx
nop
test rax, rax
je 0x140007ca9
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007c1e
lea r9, [rax + 1]
add r9, r8
movabs r10, 0x9cd83f3038deab70
mov edx, dword [rbx + 4]
mov rax, rbp
mov ecx, dword [rbx]
call qword [0x140009688]
push rbx
nop
pop rcx
test eax, eax
je 0x140007c99
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.14000366c
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x140007bea
jmp 0x140007cb5
sub edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x140007cb5
mov dword [0x14000d544], 0x80070714
sub edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400013e0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140007fe4
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
nop
push rcx
pop rdi
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
sub esi, esi
or eax, eax
js 0x14000805d
cmp al, 6
jb 0x14000805d
lea rcx, [0x140009890]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
or rax, rax
je 0x14000805d
lea rdx, str.HeapSetInformation
push rax
pop rcx
nop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x14000805d
movabs r10, 0x93b5969b18548370
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [0x140009688]
push rbx
pop rdx
nop
mov dword [0x14000d544], esi
push rdi
nop
pop rcx
call fcn.140005810
or eax, eax
je 0x1400080fa
call fcn.1400046e8
mov ebx, eax
call fcn.1400043cc
or ebx, ebx
je 0x1400080fa
cmp byte [0x14000cd1a], sil
jne 0x1400080fa
mov ebx, dword [0x14000de5c]
test bl, 1
je 0x1400080fa
test bl, 2
jne 0x1400080a9
call fcn.140002540
cmp eax, 2
jne 0x1400080fa
test bl, 4
jne 0x1400080d9
mov dword [rsp + 0x28], 4
lea r8, [0x140009770]
sub r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
sub ecx, ecx
call fcn.1400061e8
cmp eax, 6
jne 0x1400080fa
cmp word [0x14000de78], si
jne 0x1400080f5
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x1400080fa
call fcn.1400033bc
mov rcx, qword [0x14000c830]
test rcx, rcx
je 0x140008112
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000d544]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140008400
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r13, [0x14000d040]
push rcx
pop rsi
nop
mov ebx, edx
mov rax, r13
lea rcx, [0x14000d540]
lea edi, [r15 + 1]
cmp dword [rax], edi
je 0x14000844a
add r15d, edi
add rax, 0x20
cmp rax, rcx
jl 0x14000843a
cmp r15d, 0x28
jne 0x14000847d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
sub r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIDestroy
call fcn.1400061e8
or rax, 0xffffffffffffffff
jmp 0x140008636
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
or eax, eax
jne 0x1400084d4
test ebx, 0x10b
jne 0x140008474
movsxd rdx, r15d
nop
push rdx
pop rcx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000d560]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000d568]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x140008633
test bl, 8
je 0x1400084e2
or rcx, 0xffffffffffffffff
jmp 0x14000860d
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140008518
bt ebx, 0xa
jae 0x140008506
mov ebx, edi
jmp 0x140008528
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140008528
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
sub r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
push rsi
pop rcx
nop
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
nop
push rax
pop rcx
cmp rax, 0xffffffffffffffff
jne 0x14000860d
cmp ebx, 3
je 0x14000860d
cmp byte [rsi], 0
je 0x1400085e1
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r14d, r14d
cmp al, 0x3a
jne 0x140008585
cmp byte [rdi], 0x5c
jne 0x140008585
lea rdi, [rsi + 3]
jmp 0x140008594
cmp byte [rsi], 0x5c
jne 0x140008598
cmp al, 0x5c
jne 0x140008598
mov r14d, 2
mov al, byte [rdi]
jmp 0x1400085dd
lea rdi, [rsi + 1]
jmp 0x1400085dd
cmp al, 0x5c
jne 0x1400085c9
cmp byte [rdi - 1], 0x3a
je 0x1400085c9
test r14d, r14d
je 0x1400085b2
dec r14d
jmp 0x1400085c9
xor edx, edx
mov byte [rdi], 0
push rsi
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
push rax
nop
pop rdi
mov al, byte [rax]
test al, al
jne 0x14000859e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
push rsi
pop rcx
nop
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
push rax
nop
pop rcx
movsxd rdx, r15d
nop
push rdx
pop rax
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x14000862f
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x140008633
or rdx, 0xffffffffffffffff
push rdx
nop
pop rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140008bb4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push rsp
nop
pop rax
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x140008d4c
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008d46
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140008d46
cmp dword [rsp + 0x54], 4
jne 0x140008d46
cmp dword [rsp + 0x58], 0xa
jae 0x140008d46
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008d46
lea rax, [rsp + 0x38]
mov r9d, 0x20019
sub r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008d46
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
sub r8d, r8d
lea rdx, [0x140009770]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008d46
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x140008cef
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008d15
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140008d26
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
nop
push rax
pop rcx
jmp 0x140008cda
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140008d46
and edi, 0x3ff
cmp edi, esi
je 0x140008d3e
cmp edi, 0xd
jne 0x140008d46
mov dword [0x14000c20c], esi
jmp 0x140008d4c
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140016260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400163eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x140125d30]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140033920
xorps xmm15, xmm15
mov r14, qword [0x1402fe620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x1400162c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x1400162d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x1400162f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x140016303
cmp rbx, 0x1000
jae 0x1400162cb
jmp 0x14001636d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140016315
xor edx, edx
jmp 0x140016364
mov rcx, qword [0x140125d30]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140033920
xorps xmm15, xmm15
mov r14, qword [0x1402fe620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x1400162f9
jmp 0x1400162e8
call fcn.140065de0
xorps xmm15, xmm15
mov r14, qword [0x1402fe620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.140037d20
lea rax, [0x140159f4b]
mov ebx, 0x18
nop dword [rax]
call fcn.1400385a0
mov rax, qword [rsp + 0x38]
call fcn.1400382e0
lea rax, [0x14015a3ff]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.1400385a0
mov rax, qword [rsp + 0x30]
call fcn.1400382e0
call fcn.140037f60
call fcn.140037d80
lea rax, [0x14015c464]
mov ebx, 0x21
call fcn.140036380
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140062080
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140016260
Function at 0x140016420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140016646
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x140125d28]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.1400339a0
xorps xmm15, xmm15
mov r14, qword [0x1402fe620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x140016493
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x1400164a2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x1400164c5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x1400164d5
cmp rbx, 0x1000
jae 0x140016499
nop
jmp 0x140016558
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x1400164ed
xor esi, esi
jmp 0x14001654a
mov rax, qword [0x140125d28]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.1400339a0
xorps xmm15, xmm15
mov r14, qword [0x1402fe620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x1400164cb
jmp 0x1400164b6
call fcn.140065de0
xorps xmm15, xmm15
mov r14, qword [0x1402fe620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x1400165e0
nop dword [rax + rax]
call fcn.140037d20
lea rax, [0x14015a418]
mov ebx, 0x19
call fcn.1400385a0
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.1400382e0
lea rax, [0x14015a3ff]
mov ebx, 0x19
call fcn.1400385a0
mov eax, dword [rsp + 0x34]
call fcn.1400382e0
nop
call fcn.140037f60
call fcn.140037d80
lea rax, [0x140156f64]
mov ebx, 0xd
call fcn.140036380
nop dword [rax + rax]
cmp eax, 0x5af
je 0x140016580
call fcn.140037d20
lea rax, [0x14015a418]
mov ebx, 0x19
call fcn.1400385a0
mov rax, qword [rsp + 0x38]
call fcn.1400382e0
lea rax, [0x14015a3ff]
mov ebx, 0x19
call fcn.1400385a0
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.1400382e0
call fcn.140037f60
call fcn.140037d80
lea rax, [0x14015bd8c]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.140036380
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140062080
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.140016420