joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014d200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x14014d262
test cl, 0x20
jne 0x14014d2a4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x14014d315
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x14050bc46]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x14014d320
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14014d270
jmp 0x14014d2e2
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14014d2b0
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x14014d381
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, str.0x0b0o00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899assertion_failed:_curr___19
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x14014d371
mov r8d, 0x26
cmp cl, 0xa
jae 0x14014d32a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x14014d343
movzx ecx, cl
lea r8, [0x14050bc46]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::hec6d5f048fef943e
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::h2ade571ebb8e716c
int3
Function at 0x140154100
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140154170
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1405441e4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140154300
mov rax, qword [0x1405441e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1401541bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140154245
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1401541a0
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x140154352
mov rax, qword [0x1405441e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405441e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140154335
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14015423e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401542b0
add dword [0x1405441e4], 1
cmp ebx, 8
jae 0x140154271
test bl, 4
jne 0x140154310
test ebx, ebx
je 0x140154266
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140154324
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140154266
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14015428a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1405441e8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x14015423e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x1401541c7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140154266
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140154266
mov rax, qword [0x1405441e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140154920
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140544240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140544220]
test rbx, rbx
je 0x140154974
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14015496b
test rsi, rsi
je 0x14015496b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140154950
lea rcx, [0x140544240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140154bc0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140154bd0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140154be0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140154c21
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x140154c18
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140154c23
add rax, 0x28
cmp rax, r9
jne 0x140154c04
xor eax, eax
ret

Function at 0x140154cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140517940]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140154d3f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140154d3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140154d3d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140154d34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140154d3f
add rdx, 0x28
cmp rdx, r9
jne 0x140154d20
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140154e40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x140517940]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x140154eaf
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140154eaf
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x140154ead
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140154ea4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140154eb4
add rax, 0x28
cmp rax, r9
jne 0x140154e90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140154ed0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140517940]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140154f43
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140154f43
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140154f43
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140154f43
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x140154f37
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140154f50
add rdx, 0x28
cmp rdx, r10
jne 0x140154f23
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140154f68
jmp 0x140154f40
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140154f76
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140154f40
test r8d, r8d
jg 0x140154f60
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x18000cbc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x1800e10f8]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x34], ebp
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x170]
call fcn.180059e80
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x18000cd7a
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
lea rax, [rsp + 0x170]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bp
jne 0x18000cc53
lea rdx, [rsp + 0x170]
mov rcx, rbx
call fcn.180018e80
mov dword [rsp + 0x34], 1
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2e
jb 0x18000ccb9
lea rsi, [rcx + 0x2e]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x18000cc9d
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x5c
lea rdx, str.NVIDIA_CorporationNvTelemetryNvTelemetryAPI
call fcn.1800597b0
mov word [rdi + rsi*2], bp
jmp 0x18000ccdb
lfence
mov qword [rsp + 0x20], 0x2e
lea r9, str.NVIDIA_CorporationNvTelemetryNvTelemetryAPI
xor r8d, r8d
lea edx, [r8 + 0x2e]
mov rcx, rbx
call fcn.180004100
mov r8d, 2
lea rdx, [0x1800b9950]
mov rcx, rbx
call fcn.180018aa0
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 4
jb 0x18000cd2c
lea rdx, [rcx + 4]
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp r8, 8
jb 0x18000cd18
mov rax, qword [rbx]
movabs r8, 0x6c006c0064002e
mov qword [rax + rcx*2], r8
mov word [rax + rdx*2], bp
jmp 0x18000cd4e
lfence
mov qword [rsp + 0x20], 4
lea r9, str..dll
xor r8d, r8d
lea edx, [r8 + 4]
mov rcx, rbx
call fcn.180004100
mov rax, rbx
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.180057160
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x58]
call fcn.180059e80
lea rcx, [rsp + 0x58]
call fcn.180005e80
nop
lea rdx, str.Check_SUCCEEDED_SHGetFolderPathW__NULL__CSIDL_PROGRAM_FILES__NULL__SHGFP_TYPE_CURRENT__buf___failed
mov rcx, rax
call fcn.180001640
lea rdx, [0x180019260]
mov rcx, rax
call fcn.1800013f0
lea rdx, str._at__
mov rcx, rax
call fcn.180001440
lea rdx, str.C:dvsp4_build_swgcomp_rel_srcNvContainer_telemetryNvTelemetryEvents.cpp
mov rcx, rax
call fcn.1800015e0
lea rdx, [0x1800b98d0]
mov rcx, rax
call fcn.180001420
mov dword [rsp + 0x30], 0xdf
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180001730
lea rdx, [0x1800b98d4]
mov rcx, rax
call fcn.180001420
lea rdx, [rsp + 0x150]
mov rcx, rax
call fcn.180008eb0
nop
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.1800075a0
lea rdx, [0x1800df270]
lea rcx, [rsp + 0x40]
call fcn.1800585e0
int3
Function at 0x18001d6b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov esi, edx
xor edx, edx
mov r8d, dword [rax + rcx + 0x88]
mov r9, rcx
add r8, rcx
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x1c]
mov ebx, dword [r8 + 0x24]
mov edi, dword [r8 + 0x18]
add r10, rcx
add r11, rcx
add rbx, rcx
test edi, edi
je 0x18001d729
mov ecx, dword [r10]
add rcx, r9
xor r8d, r8d
jmp 0x18001d714
movzx eax, al
inc rcx
or eax, 0x60
add r8d, eax
add r8d, r8d
mov al, byte [rcx]
test al, al
jne 0x18001d705
cmp r8d, esi
je 0x18001d73b
inc edx
add r10, 4
cmp edx, edi
jb 0x18001d6fa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movzx ecx, word [rbx + rdx*2]
mov eax, dword [r11 + rcx*4]
add rax, r9
jmp 0x18001d72b

Function at 0x18001edc0
Capabilities:
Get file version info

Disassembly:
push rsi
sub rsp, 0x260
mov rax, qword [0x1800e10f8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ecx, ecx
lea rsi, str.Unknown
lea rdx, [0x1800bb4b8]
nop dword [rax + rax]
movzx eax, byte [rsi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x18001ef01
cmp rcx, 8
jne 0x18001edf0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180059e80
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18001ef01
cmp word [rsp + 0x40], 0
je 0x18001ef01
xor edx, edx
mov qword [rsp + 0x278], rdi
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x18001eef9
mov ecx, edi
mov qword [rsp + 0x270], rbx
call fcn.18005737c
mov rbx, rax
test rax, rax
je 0x18001eef1
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18001eee9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], 0
lea rdx, [0x1800bb42c]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18001eee9
mov r8, qword [rsp + 0x38]
movzx ecx, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx r9d, word [r8 + 8]
movzx r8d, word [r8 + 0xa]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov dword [rsp + 0x20], edx
lea rdx, str._lu._lu._lu._lu
call fcn.18001c680
mov rcx, rbx
call fcn.180056c08
mov rbx, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x278]
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180057160
add rsp, 0x260
pop rsi
ret
Function at 0x18001ef20
Capabilities:
Get common file path
Get file version info
Get system information on windows

Disassembly:
sub rsp, 0x3a8
mov rax, qword [0x1800e10f8]
xor rax, rsp
mov qword [rsp + 0x390], rax
cmp byte [0x1800e3270], 0
jne 0x18001f16b
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x208
call fcn.180059e80
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18001f16b
lea r8, str.kernel32.dll
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.180080a10
test eax, eax
jne 0x18001f16b
xor edx, edx
mov qword [rsp + 0x3b0], rbx
lea rcx, [rsp + 0x180]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x18001f163
mov ecx, ebx
mov qword [rsp + 0x3a0], rdi
call fcn.18005737c
mov rdi, rax
test rax, rax
je 0x18001f15b
mov r9, rax
lea rcx, [rsp + 0x180]
mov r8d, ebx
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18001f15b
xor eax, eax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rdx, [0x1800bb42c]
mov dword [rsp + 0x30], eax
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18001f153
xorps xmm0, xmm0
mov qword [rsp + 0x3b8], rbp
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x3c0], rsi
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x104
movzx esi, word [rax + 0xa]
movzx ebx, word [rax + 8]
movzx ebp, word [rax + 0xe]
call fcn.180059e80
cmp esi, 6
jne 0x18001f0c8
cmp ebx, 1
jne 0x18001f08e
lea r8, str.Windows_7
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180080af4
jmp 0x18001f108
cmp ebx, 2
jne 0x18001f0ab
lea r8, str.Windows_8
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180080af4
jmp 0x18001f108
cmp ebx, 3
jne 0x18001f0e9
lea r8, str.Windows_8.1
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180080af4
jmp 0x18001f108
cmp esi, 0xa
jne 0x18001f0e9
test ebx, ebx
jne 0x18001f0e9
lea r8, str.Windows_10
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180080af4
jmp 0x18001f108
mov r9d, esi
mov dword [rsp + 0x20], ebx
lea r8, str.Unknown_Version__lu._lu
mov rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
call fcn.18001c610
movzx eax, word [rsp + 0x40]
mov rsi, qword [rsp + 0x3c0]
cmp ax, 9
je 0x18001f128
lea r8, str._s_32_bit_build__lu
cmp ax, 6
jne 0x18001f12f
lea r8, str._s_64_bit_build__lu
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], ebp
mov rdx, 0xffffffffffffffff
lea rcx, [0x1800e3270]
call fcn.18001c610
mov rbp, qword [rsp + 0x3b8]
mov rcx, rdi
call fcn.180056c08
mov rdi, qword [rsp + 0x3a0]
mov rbx, qword [rsp + 0x3b0]
lea rax, [0x1800e3270]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.180057160
add rsp, 0x3a8
ret
Function at 0x18001f6b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x18001f78f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x18001f6e7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001f792
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x18001f736
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x18001f740
test rax, rax
je 0x18001f78f
lfence
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x18001f780
cmp rdx, rax
jb 0x18001f760
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180025820
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180025882
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180025877
cmp edi, eax
jb 0x180025877
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x180025fa5
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x180025ea3
cmp eax, 0x2f
je 0x180025ea3
mov ecx, eax
call fcn.180081eb0
test eax, eax
je 0x180025fa5
cmp word [rbx + 2], 0x3a
jne 0x180025fa5
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x180025ea3
cmp ax, 0x2f
jne 0x180025fa5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180025f89
test al, 0x50
jne 0x180025f89
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180025f10
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.180026b70
test eax, eax
je 0x180025f5b
test r14d, r14d
je 0x180025f44
cmp dword [rsp + 0x60], edi
jne 0x180025f44
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180025f5b
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x180025f79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x180025efa
xor ecx, ecx
jmp 0x180025ef4
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x18004a370
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18002fa86
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18002fa69
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18002fa54

Function at 0x18004a390
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18002fabe
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18002faa1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18002fa8c