joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004e090
Capabilities:
Get common file path
Get file size

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rdx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.18008a090
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x29]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.MacromedFlashFlashHelperService.exe
lea rcx, [rsp + 0x48]
call fcn.180005ef8
nop
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.180005ef8
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180056c70
nop
lea rcx, [rsp + 0x78]
call fcn.180005bf4
nop
lea rcx, [rsp + 0x48]
call fcn.180005bf4
lea rcx, [rbp - 0x68]
call fcn.180055740
test al, al
jne 0x18004e155
xor dil, dil
jmp 0x18004e29d
xor r14d, r14d
mov qword [rsi], r14
lea ecx, [r14 + 8]
call fcn.180086a58
mov rbx, rax
mov qword [rsp + 0x68], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x68]
call fcn.180005be4
mov rcx, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x18004e212
lea rcx, [rsp + 0x78]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.18006a450
test al, al
je 0x18004e208
lea rcx, [rsp + 0x78]
call fcn.180005be4
mov rcx, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
lea rcx, [rsp + 0x78]
call fcn.180005bf4
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x18004e243
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18004e231
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r14
mov edx, 8
mov rcx, rbx
call fcn.1800862a4
xor dil, dil
jmp 0x18004e298
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18004e264
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18004e264
xor dil, dil
jmp 0x18004e275
mov ecx, dword [rsp + 0x68]
shl rcx, 0x20
add rcx, rdi
mov qword [rsi], rcx
mov dil, 1
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18004e28b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r14
mov edx, 8
mov rcx, rbx
call fcn.1800862a4
mov qword [rsp + 0x70], r14
lea rcx, [rbp - 0x68]
call fcn.180005bf4
movzx eax, dil
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180054360
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.18008a090
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800544c2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1800543c4
jne 0x180054465
cmp dword [rbx + 8], 2
jb 0x180054465
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x180054465
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180054465
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180054465
movups xmm0, xmmword [0x1800d6700]
mov rcx, rax
movups xmm1, xmmword [0x1800d6710]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x180054465
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180054465
cmp word [rdi + 2], ax
jbe 0x180054465
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1800544b6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.18008a090
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x1800544b6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1800544c4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180086280
add rsp, 0x170
pop rbx
ret
Function at 0x180055580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005e24
test al, al
je 0x1800555b9
xor al, al
jmp 0x180055719
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180006d90
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.180056940
lea rcx, [rsp + 0x28]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18005570a
lea rcx, [rsp + 0x48]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18006a450
test al, al
je 0x180055627
lea rcx, [rsp + 0x48]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf4
cmp ebx, 0xffffffff
jne 0x18005570a
lea rcx, [rsp + 0x28]
call fcn.180006090
cmp rax, 2
jbe 0x180055706
lea rcx, [rsp + 0x28]
call fcn.180006090
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.180005c20
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180055675
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18005569b
lea rcx, [rsp + 0x28]
call fcn.180006090
dec rax
cmp qword [rbx + 0x18], 8
jb 0x180055694
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x180055706
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.180056940
lea rcx, [rsp + 0x28]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18005570a
lea rcx, [rsp + 0x48]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18006a450
test al, al
je 0x1800556f7
lea rcx, [rsp + 0x48]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf4
cmp ebx, 0xffffffff
jne 0x18005570a
xor bl, bl
jmp 0x18005570c
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005bf4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180086280
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x180055740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005e24
test al, al
je 0x180055779
xor al, al
jmp 0x1800558df
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180006d90
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.180056940
lea rcx, [rsp + 0x28]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800557f2
lea rcx, [rsp + 0x48]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18006a450
test al, al
je 0x1800557e3
lea rcx, [rsp + 0x48]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf4
cmp ebx, 0xffffffff
je 0x1800557fb
test bl, 0x10
je 0x1800558d0
lea rcx, [rsp + 0x28]
call fcn.180006090
cmp rax, 2
jbe 0x1800558cc
lea rcx, [rsp + 0x28]
call fcn.180006090
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.180005c20
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180055836
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18005585c
lea rcx, [rsp + 0x28]
call fcn.180006090
dec rax
cmp qword [rbx + 0x18], 8
jb 0x180055855
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x1800558cc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.180056940
lea rcx, [rsp + 0x28]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800558c7
lea rcx, [rsp + 0x48]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18006a450
test al, al
je 0x1800558b8
lea rcx, [rsp + 0x48]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf4
cmp ebx, 0xffffffff
je 0x1800558cc
test bl, 0x10
je 0x1800558d0
xor bl, bl
jmp 0x1800558d2
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005bf4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180086280
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x180055900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005e24
test al, al
je 0x18005593f
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180086280
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180006d90
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.180056940
lea rcx, [rsp + 0x28]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800559b8
lea rcx, [rsp + 0x48]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18006a450
test al, al
je 0x1800559a9
lea rcx, [rsp + 0x48]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf4
cmp ebx, 0xffffffff
je 0x1800559c1
test bl, 0x10
je 0x1800559c1
mov bl, 1
jmp 0x1800559c3
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.180005bf4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180086280
add rsp, 0x70
pop rbx
ret
Function at 0x1800559f0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
call fcn.180005e24
test al, al
je 0x180055a33
xor al, al
jmp 0x180055bf5
mov rcx, rsi
call fcn.180055900
test al, al
je 0x180055a46
mov al, 1
jmp 0x180055bf5
mov rcx, rsi
call fcn.180005be4
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180055a95
lea rcx, [rbp - 0x48]
call fcn.180005bfc
nop
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.18006a450
test al, al
je 0x180055a8c
lea rcx, [rbp - 0x48]
call fcn.180005be4
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x48]
call fcn.180005bf4
mov rcx, rsi
call fcn.180055900
test al, al
jne 0x180055a3f
mov rcx, rsi
call fcn.180006090
mov r14, rax
xor ebx, ebx
test rax, rax
je 0x180055b92
mov rcx, rsi
call fcn.180005c20
mov rdi, rax
lea r12d, [rbx + 0x2f]
lea r15d, [rbx + 0x5c]
nop word [rax + rax]
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x180055ae0
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x180055afe
mov rax, rdi
cmp rdx, 8
jb 0x180055af3
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x180055b86
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.18000a1d0
nop
lea rcx, [rbp - 0x48]
call fcn.180005e24
test al, al
jne 0x180055b7d
lea rcx, [rbp - 0x48]
call fcn.180055580
test al, al
jne 0x180055b7d
lea rcx, [rbp - 0x48]
call fcn.180005be4
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180055b7d
lea rcx, [rbp - 0x28]
call fcn.180005bfc
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.18006a450
test al, al
je 0x180055b73
lea rcx, [rbp - 0x28]
call fcn.180005be4
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.180005bf4
nop
lea rcx, [rbp - 0x48]
call fcn.180005bf4
inc rbx
cmp rbx, r14
jb 0x180055ad0
mov rcx, rsi
call fcn.180055580
test al, al
jne 0x180055bed
mov rcx, rsi
call fcn.180005be4
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180055bed
lea rcx, [rbp - 0x28]
call fcn.180005bfc
nop
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.18006a450
test al, al
je 0x180055be4
lea rcx, [rbp - 0x28]
call fcn.180005be4
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.180005bf4
mov rcx, rsi
call fcn.180055900
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x180058820
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov esi, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
mov rcx, rdx
call fcn.180009bf0
mov rdx, rcx
mov ecx, esi
call fcn.180058910
movzx ebx, al
mov byte [rsp + 0x20], al
jmp 0x18005887c
test bl, bl
jne 0x1800588e6
cmp esi, 0x1a
jne 0x1800588e6
mov rcx, rdi
call fcn.180009bf0
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.18008a090
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.180006330
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180006098
mov rcx, rdi
call fcn.180005e24
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
movzx eax, bl
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180059bf0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x180059c4e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180059c39
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180059c4e
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x180059c50
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180086280
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18005ac90
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x18005acd4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r14
mov word [rsi + 8], r14w
mov qword [rsp + 0x48], r14
mov ecx, 0x58
call fcn.180086a58
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov dword [rax + 0x10], 0x18
lea rbx, [rax + 0x28]
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r14d
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x28]
call fcn.180005ef8
nop
call fcn.18005e290
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.18005e330
mov qword [rdi + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.180005bf4
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18006a5f0
mov rbx, qword [rsp + 0x48]
mov qword [rbx], rax
cmp qword [rbx], 0
lea rdi, [rbx + 0x10]
jne 0x18005ad5e
mov rdi, r14
mov rcx, rbp
call fcn.180005e24
test al, al
jne 0x18005ad74
mov rcx, rbp
call fcn.180005be4
jmp 0x18005ad77
mov rax, r14
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], rax
test rax, rax
je 0x18005ad9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18005ad9e
mov byte [rsi + 9], 1
cmp qword [rsi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18005adc5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005add8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.1800862a4
mov qword [rsp + 0x48], r14
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180065620
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x180065665
mov ebx, 1
jmp 0x1800656b6
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800656ac
test ecx, ecx
je 0x1800656b1
add rsi, rcx
sub edi, ecx
jne 0x180065670
jmp 0x1800656b1
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800656cf
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180086280
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x180066070
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800660ab
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800660ab
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.180059bf0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x180067a20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180005ef8
nop
call fcn.18005e290
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.18005e330
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180005bf4
test rbx, rbx
je 0x180067c89
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x180067c89
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180005ef8
nop
call fcn.18005e290
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.18005e330
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180005bf4
test rbx, rbx
je 0x180067c83
lea rdx, str.GetFileVersionInfoExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r15, r15
je 0x180067b95
test rax, rax
je 0x180067b95
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.180005be4
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x180067c83
mov edx, edi
mov ecx, 1
call fcn.1800948e4
mov rbx, rax
mov rcx, r14
call fcn.180005be4
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rsp + 0x70]
xor ecx, ecx
call r15
test eax, eax
jne 0x180067c0f
mov rcx, rbx
call fcn.18008ce2c
movzx eax, sil
jmp 0x180067c8b
lea rdx, str.GetFileVersionInfoW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x180067c83
test rax, rax
je 0x180067c83
mov rcx, r14
call fcn.180005be4
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x180067c83
mov edx, edi
mov ecx, 1
call fcn.1800948e4
mov rbx, rax
mov rcx, r14
call fcn.180005be4
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x180067c7b
test rbx, rbx
je 0x180067c83
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x1800d2e24]
mov rcx, rbx
call rbp
test eax, eax
je 0x180067c7b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180067c7b
cmp dword [rsp + 0x74], 0
jbe 0x180067c7b
cmp dword [rcx], 0xfeef04bd
jne 0x180067c7b
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r13], eax
movzx eax, word [rcx + 0xe]
mov rdx, qword [rsp + 0x30]
mov dword [rdx], eax
movzx eax, word [rcx + 0xc]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov sil, 1
mov rcx, rbx
call fcn.18008ce2c
movzx eax, sil
jmp 0x180067c8b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180086280
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180067ea0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.180086a58
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.18008a090
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180067f07
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180086280
add rsp, 0x150
pop rbx
ret
Function at 0x18006a3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006a438
lea rcx, [rsp + 0x28]
call fcn.180005bfc
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18006a450
test al, al
je 0x18006a42c
lea rcx, [rsp + 0x28]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.180005bf4
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180086280
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret