joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006acb0
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 [0x180122010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005ea0
test al, al
je 0x18006ace9
xor al, al
jmp 0x18006ae49
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180006e50
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.18006c110
lea rcx, [rsp + 0x28]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006ae3a
lea rcx, [rsp + 0x48]
call fcn.180005c00
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800805c0
test al, al
je 0x18006ad57
lea rcx, [rsp + 0x48]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf8
cmp ebx, 0xffffffff
jne 0x18006ae3a
lea rcx, [rsp + 0x28]
call fcn.180006140
cmp rax, 2
jbe 0x18006ae36
lea rcx, [rsp + 0x28]
call fcn.180006140
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.180005c20
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x18006ada5
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18006adcb
lea rcx, [rsp + 0x28]
call fcn.180006140
dec rax
cmp qword [rbx + 0x18], 8
jb 0x18006adc4
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x18006ae36
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.18006c110
lea rcx, [rsp + 0x28]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006ae3a
lea rcx, [rsp + 0x48]
call fcn.180005c00
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800805c0
test al, al
je 0x18006ae27
lea rcx, [rsp + 0x48]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf8
cmp ebx, 0xffffffff
jne 0x18006ae3a
xor bl, bl
jmp 0x18006ae3c
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005bf8
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18009c630
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18006ae70
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 [0x180122010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005ea0
test al, al
je 0x18006aea9
xor al, al
jmp 0x18006b00f
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180006e50
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.18006c110
lea rcx, [rsp + 0x28]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006af22
lea rcx, [rsp + 0x48]
call fcn.180005c00
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800805c0
test al, al
je 0x18006af13
lea rcx, [rsp + 0x48]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf8
cmp ebx, 0xffffffff
je 0x18006af2b
test bl, 0x10
je 0x18006b000
lea rcx, [rsp + 0x28]
call fcn.180006140
cmp rax, 2
jbe 0x18006affc
lea rcx, [rsp + 0x28]
call fcn.180006140
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.180005c20
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x18006af66
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18006af8c
lea rcx, [rsp + 0x28]
call fcn.180006140
dec rax
cmp qword [rbx + 0x18], 8
jb 0x18006af85
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x18006affc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.18006c110
lea rcx, [rsp + 0x28]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006aff7
lea rcx, [rsp + 0x48]
call fcn.180005c00
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800805c0
test al, al
je 0x18006afe8
lea rcx, [rsp + 0x48]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf8
cmp ebx, 0xffffffff
je 0x18006affc
test bl, 0x10
je 0x18006b000
xor bl, bl
jmp 0x18006b002
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005bf8
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18009c630
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18006b030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005ea0
test al, al
je 0x18006b06f
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180006e50
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.18006c110
lea rcx, [rsp + 0x28]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006b0e8
lea rcx, [rsp + 0x48]
call fcn.180005c00
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800805c0
test al, al
je 0x18006b0d9
lea rcx, [rsp + 0x48]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005bf8
cmp ebx, 0xffffffff
je 0x18006b0f1
test bl, 0x10
je 0x18006b0f1
mov bl, 1
jmp 0x18006b0f3
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.180005bf8
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x70
pop rbx
ret
Function at 0x18006b120
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 [0x180122010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
call fcn.180005ea0
test al, al
je 0x18006b163
xor al, al
jmp 0x18006b325
mov rcx, rsi
call fcn.18006b030
test al, al
je 0x18006b176
mov al, 1
jmp 0x18006b325
mov rcx, rsi
call fcn.180005be8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006b1c5
lea rcx, [rbp - 0x48]
call fcn.180005c00
nop
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.1800805c0
test al, al
je 0x18006b1bc
lea rcx, [rbp - 0x48]
call fcn.180005be8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x48]
call fcn.180005bf8
mov rcx, rsi
call fcn.18006b030
test al, al
jne 0x18006b16f
mov rcx, rsi
call fcn.180006140
mov r14, rax
xor ebx, ebx
test rax, rax
je 0x18006b2c2
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 0x18006b210
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x18006b22e
mov rax, rdi
cmp rdx, 8
jb 0x18006b223
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x18006b2b6
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.18000a2d0
nop
lea rcx, [rbp - 0x48]
call fcn.180005ea0
test al, al
jne 0x18006b2ad
lea rcx, [rbp - 0x48]
call fcn.18006acb0
test al, al
jne 0x18006b2ad
lea rcx, [rbp - 0x48]
call fcn.180005be8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006b2ad
lea rcx, [rbp - 0x28]
call fcn.180005c00
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.1800805c0
test al, al
je 0x18006b2a3
lea rcx, [rbp - 0x28]
call fcn.180005be8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.180005bf8
nop
lea rcx, [rbp - 0x48]
call fcn.180005bf8
inc rbx
cmp rbx, r14
jb 0x18006b200
mov rcx, rsi
call fcn.18006acb0
test al, al
jne 0x18006b31d
mov rcx, rsi
call fcn.180005be8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006b31d
lea rcx, [rbp - 0x28]
call fcn.180005c00
nop
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.1800805c0
test al, al
je 0x18006b314
lea rcx, [rbp - 0x28]
call fcn.180005be8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.180005bf8
mov rcx, rsi
call fcn.18006b030
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18009c630
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 0x18006bba0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
call fcn.180009ce0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x412
call fcn.1800a0440
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18006bbed
xor al, al
jmp 0x18006bc1a
cmp eax, 0x208
jae 0x18006bbe9
xor eax, eax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x430], ax
call fcn.1800063e0
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180006148
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x450
pop rbx
ret

Function at 0x18006e2b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x180122010]
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.180009ce0
mov rdx, rcx
mov ecx, esi
call fcn.18006e3a0
movzx ebx, al
mov byte [rsp + 0x20], al
jmp 0x18006e30c
test bl, bl
jne 0x18006e376
cmp esi, 0x1a
jne 0x18006e376
mov rcx, rdi
call fcn.180009ce0
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800a0440
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.1800063e0
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180006148
mov rcx, rdi
call fcn.180005ea0
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.18009c630
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18006f670
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x18006f6ce
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006f6b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18006f6ce
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x18006f6d0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18009c630
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180070710
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 [0x180122010]
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 0x180070754
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.18009ce08
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.180005fa4
nop
call fcn.180073db0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180073e50
mov qword [rdi + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.180005bf8
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180080760
mov rbx, qword [rsp + 0x48]
mov qword [rbx], rax
cmp qword [rbx], 0
lea rdi, [rbx + 0x10]
jne 0x1800707de
mov rdi, r14
mov rcx, rbp
call fcn.180005ea0
test al, al
jne 0x1800707f4
mov rcx, rbp
call fcn.180005be8
jmp 0x1800707f7
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 0x18007081e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18007081e
mov byte [rsi + 9], 1
cmp qword [rsi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x180070845
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 0x180070858
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.18009c654
mov qword [rsp + 0x48], r14
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18009c630
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 0x18007b110
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180122010]
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 0x18007b155
mov ebx, 1
jmp 0x18007b1a6
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 0x18007b19c
test ecx, ecx
je 0x18007b1a1
add rsi, rcx
sub edi, ecx
jne 0x18007b160
jmp 0x18007b1a1
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 0x18007b1bf
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x18007bb30
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 0x18007bb6b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x18007bb6b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.18006f670
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 0x18007db30
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 [0x180122010]
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.180005fa4
nop
call fcn.180073db0
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.180073e50
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180005bf8
test rbx, rbx
je 0x18007dd99
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x18007dd99
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180005fa4
nop
call fcn.180073db0
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.180073e50
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180005bf8
test rbx, rbx
je 0x18007dd93
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 0x18007dca5
test rax, rax
je 0x18007dca5
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.180005be8
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x18007dd93
mov edx, edi
mov ecx, 1
call fcn.1800aadb0
mov rbx, rax
mov rcx, r14
call fcn.180005be8
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 0x18007dd1f
mov rcx, rbx
call fcn.1800a31dc
movzx eax, sil
jmp 0x18007dd9b
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 0x18007dd93
test rax, rax
je 0x18007dd93
mov rcx, r14
call fcn.180005be8
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x18007dd93
mov edx, edi
mov ecx, 1
call fcn.1800aadb0
mov rbx, rax
mov rcx, r14
call fcn.180005be8
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x18007dd8b
test rbx, rbx
je 0x18007dd93
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x1800eca24]
mov rcx, rbx
call rbp
test eax, eax
je 0x18007dd8b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18007dd8b
cmp dword [rsp + 0x74], 0
jbe 0x18007dd8b
cmp dword [rcx], 0xfeef04bd
jne 0x18007dd8b
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.1800a31dc
movzx eax, sil
jmp 0x18007dd9b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007e010
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.18009ce08
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.1800a0440
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x18007e077
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.18009c630
add rsp, 0x150
pop rbx
ret
Function at 0x180080530
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 [0x180122010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800805a8
lea rcx, [rsp + 0x28]
call fcn.180005c00
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1800805c0
test al, al
je 0x18008059c
lea rcx, [rsp + 0x28]
call fcn.180005be8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.180005bf8
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18009c630
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180081200
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14d, r8d
mov r12, rdx
mov r15, rcx
xor edi, edi
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x48]
call fcn.18000c660
nop
cmp r8d, 0x3fe
jbe 0x1800812cf
lea ecx, [r14 + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18009d1b4
mov r12, rax
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18000c670
mov rdx, r12
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800812a7
cmp eax, r14d
ja 0x1800812a7
mov ecx, eax
mov word [r12 + rcx*2], di
lea ecx, [rax + 1]
mov word [r12 + rcx*2], di
mov r14d, eax
jmp 0x1800812ff
lea rcx, [rsp + 0x48]
call fcn.18000c650
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, r14
add rax, rax
cmp rax, 0x800
jae 0x1800813e3
mov word [rax + rdx], di
lea eax, [r14 + 1]
mov ecx, eax
add rcx, rcx
cmp rcx, 0x800
jae 0x1800813dd
mov word [rcx + rdx], di
mov ebx, edi
test r14d, r14d
je 0x1800813cc
mov rbp, r12
nop dword [rax]
cmp word [rbp], 0
jne 0x1800813bd
cmp edi, ebx
je 0x1800813bd
mov eax, edi
lea rdx, [r12 + rax*2]
lea rcx, [rsp + 0x28]
call fcn.180005fa4
nop
lea rcx, [rsp + 0x28]
call fcn.180005c20
mov rdx, rax
mov rcx, r15
call fcn.1800060bc
mov rcx, rdx
test al, al
je 0x180081397
call fcn.180005c20
mov rdx, rax
mov rcx, r15
call fcn.180005ff0
mov rsi, rax
mov rcx, rdx
call fcn.180005c20
mov rdi, rax
mov rdx, qword [rsi]
mov ecx, 0x20
call fcn.180005d08
mov r8, rax
mov rcx, rdi
call fcn.180005c20
mov rdx, rax
mov rcx, r8
call fcn.180005f58
add qword [rsi], 0x20
jmp 0x1800813b0
call fcn.180005c20
mov r8, rax
mov rcx, r15
call fcn.180005ff0
mov rdx, qword [rax]
call fcn.1800064c4
nop
lea rcx, [rsp + 0x28]
call fcn.180005bf8
lea edi, [rbx + 1]
inc ebx
add rbp, 2
cmp ebx, r14d
jb 0x180081310
lea rcx, [rsp + 0x48]
call fcn.18000c650
mov al, 1
jmp 0x1800812b3
call fcn.18009c76c
int3
call fcn.18009c76c
int3
Function at 0x180087f60
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, r9
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
xor edi, edi
test rax, rax
je 0x180087fae
mov dword [rax], edi
mov dword [r9], edi
cmp qword [rcx], 0xffffffffffffffff
je 0x18008810c
mov eax, 0x100000
mov ebp, r12d
cmp r12d, eax
cmova ebp, eax
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
cmp qword [rsi + 0x28], 0
je 0x1800880d9
test edx, edx
je 0x1800880d9
mov ecx, dword [rsp + 0x68]
cmp ecx, ebp
jae 0x1800880dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rbx, rdi
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x180088029
xor dil, dil
jmp 0x18008805c
mov dword [rsp + 0x6c], edi
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18008804e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18008804e
xor dil, dil
jmp 0x18008805c
mov ebx, dword [rsp + 0x6c]
shl rbx, 0x20
add rbx, rdi
mov dil, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x48]
call fcn.180006e50
nop
mov rcx, qword [rsi + 0x28]
mov r10, qword [rcx]
mov r9, r14
xor r8d, r8d
test dil, dil
cmovne r8, rbx
mov rdx, rax
call qword [r10 + 0x30]
mov edx, eax
xor edi, edi
test eax, eax
jne 0x1800880d9
mov dword [rsp + 0x70], edi
mov edx, dword [rsp + 0x68]
add rdx, r15
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
mov ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x70]
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x180088007
jmp 0x1800880dd
mov ecx, dword [rsp + 0x68]
add dword [r13], ecx
test edx, edx
jne 0x180088100
test ecx, ecx
je 0x1800880fc
mov eax, ecx
add r15, rax
sub r12d, ecx
mov eax, 0x100000
jne 0x180087fc0
mov al, 1
jmp 0x18008810e
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x18008810c
mov dword [rax], edx
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret