joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140197660
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rax - 0x48], 0xfffffffffffffffe
mov rbx, r9
mov r12, r8
mov r13, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x30], r14
and dword [rax + 0x20], r14d
or r8d, 0xffffffff
xor edx, edx
call fcn.14004071c
mov r15, qword [rsp + 0xb0]
test r15, r15
je 0x1401976b8
and qword [r15], r14
mov eax, dword [rbx]
test eax, eax
je 0x1401976cf
mov ebx, 0x80004005
mov dword [rsp + 0xb0], ebx
jmp 0x1401977b0
cmp byte [rsi + 0x4c], r14b
je 0x1401976be
inc dword [rsi + 0x48]
test byte [rsi + 0x48], 0x3f
jne 0x1401976e9
xor edx, edx
mov rcx, rsi
call fcn.1401972cc
nop
and qword [rsp + 0x38], 0
lea rbx, [rsi + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140058b10
mov r14, qword [rbx + 8]
sub r14, qword [rbx]
sar r14, 3
mov rax, qword [rbx]
sub rax, 8
lea r14, [rax + r14*8]
mov qword [rsp + 0x30], r14
jmp 0x140197742
test r14, r14
jne 0x140197751
mov ebx, 0x8007000e
jmp 0x1401976c3
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
mov r9, r12
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
test rax, rax
jne 0x1401977a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0xb0], ebx
test ebx, ebx
jne 0x1401977b0
mov qword [r14], r12
test r15, r15
je 0x1401977ad
mov qword [r15], r12
xor r14d, r14d
test r14, r14
je 0x1401977ba
add qword [rsi + 0x38], 0xfffffffffffffff8
jmp 0x1401977cb
mov rcx, rsi
call fcn.1400409dc
mov eax, ebx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret

Function at 0x140198a18
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test byte [0x1403d1ac0], 0x20
mov rbx, rcx
je 0x140198a42
mov r9d, r8d
lea rcx, [0x1403c1580]
mov r8d, edx
lea rdx, [0x1402b5418]
call fcn.14019bf34
mov ecx, 0x1c135e
call fcn.1401e41d8
prefetchw byte [rbx + 0x10]
mov rax, qword [rbx + 0x10]
mov r8d, 0x7f000
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
mov ecx, edx
shr ecx, 0xc
dec ecx
shl ecx, 0xc
xor ecx, edx
and ecx, r8d
xor edx, ecx
mov dword [rsp + 0x30], edx
mov rcx, qword [rsp + 0x30]
lock cmpxchg qword [rbx + 0x10], rcx
je 0x140198ab2
mov edx, eax
mov qword [rsp + 0x30], rax
shr edx, 0xc
mov rcx, rax
dec edx
shl edx, 0xc
xor edx, eax
and edx, r8d
xor edx, eax
mov dword [rsp + 0x30], edx
mov rdx, qword [rsp + 0x30]
lock cmpxchg qword [rbx + 0x10], rdx
cmp rax, rcx
jne 0x140198a85
add rsp, 0x20
pop rbx
ret
Function at 0x14025d488
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14025d4b6
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x14025d50b
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add eax, ecx
je 0x14025d50b
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x14025d4fd
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14025d51c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14025d58f
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x14025d58f
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x14025d58f
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x14025d584
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x14025d59c
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x14025d570
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x14025d591
Function at 0x1400010f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140013070]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x208
mov rdi, rcx
xor ebx, ebx
call fcn.140001620
mov rdx, qword [section..data]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400011bb
mov rdx, qword [str.InstallDir]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x34], 0x206
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400011bb
cmp word [rdi], bx
je 0x1400011bb
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1400011ad
mov rdx, qword [str.Error_1]
mov rcx, qword [str.Apple_Application_Support_was_not_found._n_nApple_Application_Support_is_required_to_run_iTunesHelper._Please_uninstall_iTunes__then_install_iTunes_again._n_n_s]
call fcn.140001070
xor eax, eax
jmp 0x1400011d0
test byte [rsp + 0x40], 0x10
je 0x140001196
mov ebx, 1
jmp 0x1400011ce
mov rdx, qword [str.Error_2]
mov rcx, qword [str.Apple_Application_Support_was_not_found._n_nApple_Application_Support_is_required_to_run_iTunesHelper._Please_uninstall_iTunes__then_install_iTunes_again._n_n_s]
call fcn.140001070
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400015f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x14000261c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002484
Function at 0x9c0de0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x9c0ded
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x9c0dfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x9c0de5
lea eax, [rcx + 1]
jmp 0x9c0e0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x9c0e1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x9c0e04
sub eax, 3
jb 0x9c0e3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x9c0e8d
sar eax, 1
movsxd rbp, eax
jb 0x9c0e74
jmp 0x9c0e4c
add ebx, ebx
jne 0x9c0e4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9c0e74
inc ecx
add ebx, ebx
jne 0x9c0e5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9c0e74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x9c0e6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x9c0e5c
add ecx, 2
jmp 0x9c0e79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.009c0da2
jmp 0x9c0ded
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a5800
mov dl, 0x32
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x9c0ed9
cmp rsi, rcx
jae 0x9c0ee1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x9c0ec0
cmp al, 0x8f
ja 0x9c0ec0
cmp byte [rsi - 2], 0xf
je 0x9c0ec6
sub al, 0xe8
cmp al, 1
ja 0x9c0eaa
cmp rsi, rcx
jae 0x9c0ee1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x9c0eb0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x9c0ee1
lodsb al, byte [rsi]
jmp 0x9c0ec0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5b8000]
mov eax, dword [rdi]
or eax, eax
je 0x9c0f3e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5c0000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x9c0eee
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x9c0f38
mov qword [rbx], rax
add rbx, 8
jmp 0x9c0f0e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x9c0f82
cmp al, 0xef
ja 0x9c0f6a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x9c0f4a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x9c0f59
mov eax, dword [rdi]
add rdi, 4
jmp 0x9c0f59
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x9c0fd6
sub rsp, 0xffffffffffffff80
jmp 0x46c8a0
Function at 0x14000b840
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [0x1400483b8], 0
je 0x14000b871
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001ac10
add rsp, 0x58
ret
mov ecx, 0x30
mov qword [rsp + 0x50], rbx
call fcn.14001a128
xor ebx, ebx
test rax, rax
je 0x14000b89a
xor edx, edx
mov rcx, rax
call fcn.14000a750
mov qword [0x1400483b8], rax
jmp 0x14000b8a1
mov qword [0x1400483b8], rbx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp word [rax], bx
je 0x14000b8cd
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000b8c3
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400073f0
mov rcx, qword [0x1400483b8]
lea rdx, [rsp + 0x20]
call fcn.14000bfa0
cmp qword [rsp + 0x38], 8
mov rbx, qword [rsp + 0x50]
jb 0x14000b905
mov rcx, qword [rsp + 0x20]
call fcn.14001a194
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001ac10
add rsp, 0x58
ret

Function at 0x14000bfa0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rax, rdx
mov rdi, rcx
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 3]
lea r8, [rsp + 0x28]
mov rcx, rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
call fcn.1400129d0
cmp qword [rsp + 0x38], rbx
je 0x14000c02a
cmp qword [rsp + 0x40], 8
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x28]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rsp + 0x20]
mov rcx, rdi
mov r8, rax
mov rbx, rax
call fcn.14000bac0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x40], 8
jb 0x14000c03c
mov rcx, qword [rsp + 0x28]
call fcn.14001a194
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001ac10
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140010610
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x238]
sub rsp, 0x330
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rbp + 0x220], rax
cmp qword [rcx + 0x10], 0
lea rdi, [rcx + 0x10]
mov rbx, rcx
je 0x14001078b
cmp byte [0x1400483eb], 0
je 0x14001078b
lea rdx, [rbp + 0x10]
mov r8d, 0x104
xor ecx, ecx
mov qword [r11 + 8], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x10]
mov edx, 0x5c
call fcn.14001b578
xor esi, esi
test rax, rax
je 0x140010689
mov word [rax + 2], si
lea r8, str.debug_message.exe
lea rcx, [rbp + 0x10]
mov edx, 0x104
call fcn.14001b4f0
cmp qword [rbx + 0x18], 0x10
jb 0x1400106a8
mov rbx, qword [rbx]
mov rax, qword [rdi]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbx
call fcn.140015700
cmp qword [rbp], rsi
je 0x140010773
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x68]
call fcn.14001ac40
cmp qword [rbp + 8], 8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x10]
cmovae rdx, qword [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x10]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov dword [rbp - 0x80], 0x68
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140010750
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010773
cmp qword [rbp + 8], 8
lea rdx, [rbp - 0x10]
lea r8, str.Fatal_error
cmovae rdx, qword [rbp - 0x10]
mov r9d, 0x40010
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rbp + 8], 8
mov rsi, qword [rsp + 0x340]
jb 0x14001078b
mov rcx, qword [rbp - 0x10]
call fcn.14001a194
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14001ac10
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140011c80
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140011c94
mov rbx, qword [rcx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x140011cb0
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rsi
mov edx, 1
mov qword [rsp + 0x20], rdi
call fcn.14001c95c
mov rdi, rax
test rax, rax
je 0x140011d4f
mov edx, dword [rsp + 0x40]
mov r9, rax
mov r8d, esi
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rdi
test eax, eax
je 0x140011d4a
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, str.VarFileInfoTranslation
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140011d47
cmp qword [rsp + 0x50], rbx
je 0x140011d47
lea ecx, [rbx + 0x20]
call fcn.14001a128
test rax, rax
je 0x140011d38
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
movzx r9d, word [rcx + 2]
movzx r8d, word [rcx]
mov rcx, rax
call fcn.140011b00
mov rbx, rax
mov rax, rbx
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rdi
call fcn.14001aafc
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret

Function at 0x140011f20
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx eax, word [rcx + 0x10]
mov r15, r8
mov r14, rdx
mov word [rsp + 0x50], ax
movzx eax, word [rcx + 0x14]
mov rbp, rcx
mov word [rsp + 0x52], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, 0x4e4
mov word [rsp + 0x54], ax
movzx eax, word [rbp + 0x14]
mov word [rsp + 0x5a], bx
mov word [rsp + 0x56], ax
movzx eax, word [rbp + 0x10]
mov word [rsp + 0x58], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x5e], bx
xor ebx, ebx
lea rsi, [rsp + 0x50]
mov word [rsp + 0x5c], ax
mov edi, ebx
movzx eax, word [rsi + 2]
movzx edx, word [rsi]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov edx, 0x104
lea r9, str.StringFileInfo_04x_04x_ls
lea rcx, [rsp + 0x60]
mov r8d, edx
add edi, 2
lea rsi, [rsi + 4]
call fcn.14001c938
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140011fff
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x140012031
movsxd rax, edi
cmp rax, 8
jb 0x140011fa0
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001ac10
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp word [rdx], bx
je 0x14001204a
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140012040
mov r8, rbx
mov rcx, r15
call fcn.1400073f0
mov al, 1
jmp 0x14001200a
Function at 0x140013950
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1150
call fcn.14001ce50
sub rsp, rax
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x1140], rax
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
mov edi, ebx
mov dword [rsp + 0x30], ebx
mov r14, rcx
call fcn.140010f60
cmp eax, 1
jne 0x1400139ce
call fcn.1400108b0
cmp eax, 3
jg 0x1400139ce
test rsi, rsi
jne 0x1400139ce
lea r9d, [rbx + 3]
lea rdx, str.c:_b_build_slavewin_x64_build_src_basewin_registry.cc
lea rcx, [rsp + 0x38]
mov r8d, 0xb7
lea edi, [rbx + 1]
call fcn.14000fca0
lea rdx, str.Check_failed:_out_value.
lea rcx, [rax + 8]
call fcn.140001770
test dil, 1
je 0x1400139de
lea rcx, [rsp + 0x38]
call fcn.14000fde0
mov rcx, qword [r14]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x140]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140013add
mov ecx, dword [rsp + 0x34]
cmp ecx, 1
jne 0x140013a63
cmp word [rsp + 0x140], bx
je 0x140013a4c
lea rax, [rsp + 0x140]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013a42
lea rdx, [rsp + 0x140]
mov r8, rbx
mov rcx, rsi
call fcn.1400073f0
mov eax, edi
jmp 0x140013add
cmp ecx, 2
jne 0x140013ad8
lea rdx, [rsp + 0x940]
lea rcx, [rsp + 0x140]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
dec eax
cmp eax, 0x3ff
ja 0x140013ad1
cmp word [rsp + 0x940], bx
je 0x140013aba
lea rax, [rsp + 0x940]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013ab0
lea rdx, [rsp + 0x940]
mov r8, rbx
mov rcx, rsi
call fcn.1400073f0
mov eax, edi
jmp 0x140013add
mov eax, 0xea
jmp 0x140013add
mov eax, 0x3f4
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.14001ac10
add rsp, 0x1150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013b00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
lea rdx, [rsp + 0x80]
xor ebx, ebx
mov ecx, 0x104
mov word [rsp + 0x80], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140013be5
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp word [rsp + 0x80], bx
je 0x140013b7f
lea rax, [rsp + 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013b75
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.1400073f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14000da00
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14000f2c0
mov rcx, rdi
mov rdx, rax
call fcn.14000dab0
lea rcx, [rsp + 0x40]
call fcn.14000da80
lea rcx, [rsp + 0x60]
call fcn.14000da80
cmp qword [rsp + 0x38], 8
jb 0x140013be1
mov rcx, qword [rsp + 0x20]
call fcn.14001a194
mov al, 1
jmp 0x140013be7
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14001ac10
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rdi
ret

Function at 0x140013c10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140013cee
xor r8d, r8d
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r8
mov word [rsp + 0x20], r8w
cmp word [rsp + 0x80], r8w
je 0x140013c8b
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140013c80
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.1400073f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14000da00
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14000f2c0
mov rcx, rbx
mov rdx, rax
call fcn.14000dab0
lea rcx, [rsp + 0x40]
call fcn.14000da80
lea rcx, [rsp + 0x60]
call fcn.14000da80
cmp qword [rsp + 0x38], 8
jb 0x140013cea
mov rcx, qword [rsp + 0x20]
call fcn.14001a194
mov al, 1
jmp 0x140013cf0
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14001ac10
add rsp, 0x2a0
pop rbx
ret

Function at 0x140013de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140013dee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x140016b90
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x30], esi
mov dword [rcx], esi
mov dword [rcx + 0x18], 3
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140016e70
lea rcx, [rsp + 0x184]
xor edx, edx
mov dword [rbx + 0x28], eax
mov qword [rbx + 0x48], 0xf
mov qword [rbx + 0x40], rsi
mov byte [rbx + 0x30], sil
mov r8d, 0x118
mov dword [rsp + 0x180], 0x11c
call fcn.14001ac40
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [rsp + 0x184]
mov ecx, dword [rsp + 0x188]
mov eax, dword [rsp + 0x18c]
mov dword [rbx + 4], edx
mov dword [rbx + 8], ecx
mov dword [rbx + 0xc], eax
cmp edx, 5
jne 0x140016c53
test ecx, ecx
jle 0x140016d47
cmp ecx, 1
mov eax, esi
setne al
inc eax
mov dword [rbx], eax
jmp 0x140016d47
cmp edx, 6
jne 0x140016ced
test ecx, ecx
je 0x140016ce5
dec ecx
je 0x140016cdd
call fcn.140010f60
cmp eax, 1
jne 0x140016cd5
call fcn.1400108b0
cmp eax, 3
jg 0x140016cd5
mov eax, dword [rbx + 8]
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], eax
cmp eax, 2
je 0x140016cd5
lea r8, str.version_number_.minor__2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140013e00
test rax, rax
je 0x140016cd5
mov r9d, 3
lea rdx, str.c:_b_build_slavewin_x64_build_src_basewinwindows_version.cc
lea rcx, [rsp + 0x70]
lea r8d, [r9 + 0x34]
mov qword [rsp + 0x20], rax
call fcn.14000fd10
lea rcx, [rsp + 0x70]
call fcn.14000fde0
mov dword [rbx], 5
jmp 0x140016d47
mov dword [rbx], 4
jmp 0x140016d47
mov dword [rbx], 3
jmp 0x140016d47
jle 0x140016d47
call fcn.140010f60
cmp eax, 1
jne 0x140016d31
call fcn.1400108b0
cmp eax, 3
jg 0x140016d31
mov edi, 1
lea rdx, str.c:_b_build_slavewin_x64_build_src_basewinwindows_version.cc
lea rcx, [rsp + 0x70]
lea r9d, [rdi + 2]
lea r8d, [rdi + 0x3c]
call fcn.14000fca0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140001770
test dil, 1
je 0x140016d41
lea rcx, [rsp + 0x70]
call fcn.14000fde0
mov dword [rbx], 6
movzx eax, word [rsp + 0x294]
xor edx, edx
lea rcx, [rsp + 0x44]
mov dword [rbx + 0x10], eax
movzx eax, word [rsp + 0x296]
lea r8d, [rdx + 0x2c]
mov dword [rbx + 0x14], eax
mov dword [rsp + 0x40], esi
call fcn.14001ac40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
test eax, eax
je 0x140016da1
cmp eax, 6
je 0x140016d98
cmp eax, 9
jne 0x140016da4
mov dword [rbx + 0x18], 1
jmp 0x140016da4
mov dword [rbx + 0x18], 2
jmp 0x140016da4
mov dword [rbx + 0x18], esi
mov ecx, dword [rsp + 0x60]
mov rax, rbx
mov dword [rbx + 0x1c], ecx
mov ecx, dword [rsp + 0x68]
mov qword [rbx + 0x20], rcx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14001ac10
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret