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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400158a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400158ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400158d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140015929
test ecx, ecx
jle 0x140015909
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140015929
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140015929
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140015950
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140015981
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14001599f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400159bb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400159bd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400159f9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140015a8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140015a34
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140015a6e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140015a8e
cmp rbx, rax
ja 0x140015a40
test rbx, rbx
je 0x140015a8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140015ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140015f1d
xor eax, eax
jmp 0x140016089
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140015f57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140015f57
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140016089
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001607c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015f9a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140015fc5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140016081
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140016034
sub eax, 1
je 0x140016034
cmp eax, 2
jne 0x14001607c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140016081
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140016062
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001607c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140016081
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001c3e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400166a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140016773
cmp byte [rcx + 0x71], 0
je 0x140016773
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001676f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140016734
sub eax, 1
je 0x140016738
cmp eax, 2
jne 0x14001676f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c3e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140016766
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001676f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001671c
xor al, al
jmp 0x14001671c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c3e0
add rsp, 0x60
pop rbx
ret

Function at 0x140018c90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14002c040]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140018d23
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140018d23
cmp dword [rsp + 0x38], edi
je 0x140018d1f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140018d05
jmp 0x140018d23
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x140018d32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001c3e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140019dc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
mov r8, rdx
cmp word [rcx], ax
jne 0x140019e66
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140019e66
test rax, rax
je 0x140019e66
mov edx, dword [rax + 0xd8]
test edx, edx
je 0x140019e59
mov rdi, qword [rdx + rcx + 0x58]
test rdi, rdi
je 0x140019e59
sub rcx, r8
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x140019e66
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14001aae0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001abe7
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001abe7
test rax, rax
je 0x14001abe7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14001ab4f
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14001abf2
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x30]
cmp rbx, rbp
jae 0x14001abd5
mov edx, dword [rbx + 4]
test edx, edx
je 0x14001abd5
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x40], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x48], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x50], eax
cmp rcx, r8
je 0x14001abae
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x30], rcx
jmp 0x14001abca
lea r8, [rsp + 0x40]
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14001b2b0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14001ab66
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14001abf2
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14001c190
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor edi, edi
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
mov ebx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001c225
test rbx, rbx
je 0x14001c1eb
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001c1d5
test eax, eax
jns 0x14001c246
test rbx, rbx
je 0x14001c24b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14001c30d
test rbx, rbx
jne 0x14001c252
xor eax, eax
jmp 0x14001c30d
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14001c2f5
nop
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.1400164a0
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14001c293
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001c32a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001c2eb
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c2e6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c373
call fcn.14001c400
inc edi
cmp edi, dword [rbx]
jb 0x14001c260
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001c3e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001c37f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c37a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c37a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001c400
mov rax, rdi
jmp 0x14001c308
Function at 0x14001d174
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d1be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d1be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d1be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d1be
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d1be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d1c0
xor al, al
add rsp, 0x28
ret
Function at 0x180003e90
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
cmp qword [rdx + 0x18], 0xc8
jbe 0x180003efb
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rsi
mov word [rcx + 8], si
xor r8d, r8d
lea rdx, [0x18005d48c]
call fcn.180002a18
mov rax, rbx
jmp 0x180004065
mov word [rsp + 0x80], si
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x82]
call fcn.180041420
mov r9d, 0x208
lea r8, [rsp + 0x80]
lea rdx, str.cachekvstore
xor ecx, ecx
call fcn.180021020
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180003bbc
cmp qword [rax + 0x20], 8
jb 0x180003f4e
mov rdx, qword [rax + 8]
jmp 0x180003f52
lea rdx, [rax + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x78], 8
jb 0x180003f72
mov rcx, qword [rsp + 0x60]
call fcn.18003c228
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x18000402a
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.180003e6c
nop
cmp qword [rsp + 0x70], rsi
je 0x180004018
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, str.cachekvstore
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180003bbc
cmp qword [rax + 0x20], 8
jb 0x180003ff3
mov rdx, qword [rax + 8]
jmp 0x180003ff7
lea rdx, [rax + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x50], 8
jb 0x180004018
mov rcx, qword [rsp + 0x38]
call fcn.18003c228
nop
cmp qword [rsp + 0x78], 8
jb 0x18000402a
mov rcx, qword [rsp + 0x60]
call fcn.18003c228
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rsi
mov word [rbx + 8], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.180002a18
mov rax, rbx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18003c1d0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180004410
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov r12, rdx
mov rbx, rcx
cmp r8d, r13d
mov dword [rsp + 0x50], r13d
mov esi, r13d
mov rdi, r13
jle 0x18000445d
movsxd rbp, r8d
mov rcx, qword [r12 + rdi*8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r13d
jne 0x18000449c
inc rdi
inc esi
cmp rdi, rbp
jl 0x180004444
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
xor r8d, r8d
mov word [rbx + 8], r13w
lea rdx, [0x18005d48c]
mov rcx, rbx
call fcn.180002a18
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
movsxd rax, esi
or rcx, 0xffffffffffffffff
mov rdx, qword [r12 + rax*8]
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
xor eax, eax
mov rdi, rdx
mov word [rbx + 8], r13w
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
jmp 0x180004478
Function at 0x180005c2c
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov edi, edx
mov rbx, rcx
xor esi, esi
mov word [rsp + 0x260], si
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x236]
call fcn.180041420
lea rdx, [rsp + 0x260]
mov ecx, edi
call fcn.180021db4
lea ebp, [rsi + 7]
or r12, 0xffffffffffffffff
cmp eax, esi
je 0x180005d26
lea rdx, [0x18005d994]
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
lea r8d, [rsi + 0xa]
lea rdx, str._APPPATH
lea rcx, [rsp + 0x20]
call fcn.180002a18
nop
lea rcx, [rbx + 0x158]
lea rdx, [rsp + 0x20]
call fcn.180007ea0
mov r11, rax
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x260]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x260]
mov rcx, r11
call fcn.180002a18
nop
cmp qword [rsp + 0x40], 8
jb 0x180005d26
mov rcx, qword [rsp + 0x28]
call fcn.18003c228
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.180041420
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
mov r8d, 0x10
lea rdx, str._COMMONAPPDATA
lea rcx, [rsp + 0x20]
call fcn.180002a18
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x158]
call fcn.180007ea0
mov r11, rax
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r11
call fcn.180002a18
nop
cmp qword [rsp + 0x40], 8
jb 0x180005dc0
mov rcx, qword [rsp + 0x28]
call fcn.18003c228
mov word [rsp + 0x50], si
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
mov r8d, 0xf
lea rdx, str._PROGRAMFILES
lea rcx, [rsp + 0x20]
call fcn.180002a18
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x158]
call fcn.180007ea0
mov r11, rax
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r11
call fcn.180002a18
nop
cmp qword [rsp + 0x40], 8
jb 0x180005e48
mov rcx, qword [rsp + 0x28]
call fcn.18003c228
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.18003c1d0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180005f68
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r12, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x90], edi
mov rbx, qword [rcx + 0x140]
cmp rbx, qword [rcx + 0x148]
jbe 0x180005fad
call fcn.18003c9b4
mov rax, qword [rsi + 0x128]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r13, qword [rsi + 0x148]
cmp qword [rsi + 0x140], r13
jbe 0x180005fe8
call fcn.18003c9b4
cmp rbp, rdi
je 0x180005ff6
cmp rbp, qword [rsi + 0x128]
je 0x180005ffb
call fcn.18003c9b4
cmp rbx, r13
je 0x1800060be
cmp rbp, rdi
jne 0x180006013
call fcn.18003c9b4
mov r11, rdi
jmp 0x180006017
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x20]
jb 0x180006022
call fcn.18003c9b4
cmp qword [rbx + 0x20], 8
jb 0x18000602f
mov rcx, qword [rbx + 8]
jmp 0x180006033
lea rcx, [rbx + 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x180006064
cmp rbp, rdi
jne 0x18000604c
call fcn.18003c9b4
mov r11, rdi
jmp 0x180006050
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x20]
jb 0x18000605b
call fcn.18003c9b4
add rbx, 0x28
jmp 0x180005fd3
cmp rbp, rdi
jne 0x180006070
call fcn.18003c9b4
jmp 0x180006074
mov rdi, qword [rbp]
cmp rbx, qword [rdi + 0x20]
jb 0x18000607f
call fcn.18003c9b4
cmp qword [rbx + 0x20], 8
jb 0x18000608c
mov rdx, qword [rbx + 8]
jmp 0x180006090
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.180020a2c
nop
mov rdx, rax
mov rcx, r12
call fcn.180003bbc
nop
cmp qword [rsp + 0x60], 0x10
jb 0x1800060b9
mov rcx, qword [rsp + 0x48]
call fcn.18003c228
mov rax, r12
jmp 0x180006104
cmp qword [rsi + 0x20], 8
jb 0x1800060cb
mov rdx, qword [rsi + 8]
jmp 0x1800060cf
lea rdx, [rsi + 8]
lea rcx, str.getSoftwareVersion_failed:_s
call fcn.18001ffa4
mov qword [r12 + 0x20], 7
mov qword [r12 + 0x18], rdi
mov word [r12 + 8], di
xor r8d, r8d
lea rdx, [0x18005d48c]
mov rcx, r12
call fcn.180002a18
mov rax, r12
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret