joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b510
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x67452301
mov rcx, qword [rdx]
xor eax, eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdx + 8]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov qword [rsp + 0x3c], 0x10325476
mov dword [rsp + 0x44], eax
call fcn.18001b120
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18001b2a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18001b410
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0xa0
pop rbx
ret

Function at 0x18001b7b0
Capabilities:
Get file version info

Disassembly:
push rsi
push rdi
sub rsp, 0x28
call fcn.180005090
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x18001b7dc
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov qword [rsp + 0x20], rbx
mov edx, 1
call fcn.1800736ec
mov rbx, rax
test rax, rax
je 0x18001b8b6
mov edx, dword [rsp + 0x40]
mov r9, rax
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rbx
test eax, eax
je 0x18001b8b1
xor esi, esi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rsi
lea rdx, [0x1800da528]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x18001b8ae
cmp qword [rsp + 0x58], rsi
je 0x18001b8ae
lea ecx, [rsi + 0x20]
call fcn.18006be90
mov rcx, qword [rsp + 0x58]
mov rdi, rax
lea rax, [0x1800da798]
movzx r8d, word [rcx + 2]
movzx edx, word [rcx]
mov qword [rdi], rax
mov qword [rdi + 8], rsi
mov word [rdi + 0x10], dx
mov word [rdi + 0x12], r8w
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rbx
test rcx, rcx
je 0x18001b882
call fcn.18007314c
mov rcx, qword [rdi + 8]
lea r8, [rdi + 0x18]
lea r9, [rsp + 0x50]
mov qword [r8], rsi
lea rdx, [0x1800da524]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rbx, qword [rsp + 0x20]
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.18007314c
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x18001c250
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x280], rax
movzx eax, word [rcx + 0x10]
mov r14, r8
mov word [rsp + 0x50], ax
mov rbp, rdx
movzx eax, word [rcx + 0x12]
mov rsi, rcx
mov word [rsp + 0x52], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x54], ax
mov ebx, 0x4e4
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x56], ax
movzx eax, word [rsi + 0x10]
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], bx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x5e], bx
xor ebx, ebx
mov edi, ebx
mov word [rsp + 0x5c], ax
nop word [rax + rax]
movzx eax, word [rsp + rdi*2 + 0x52]
lea r9, str.StringFileInfo_04x_04x_ls
movzx edx, word [rsp + rdi*2 + 0x50]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
add rdi, 2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov edx, 0x104
mov r8d, edx
call fcn.18001b5b0
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x18001c330
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x18001c356
cmp rdi, 8
jb 0x18001c2d0
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp word [rdx], bx
je 0x18001c36a
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x18001c360
mov r8, rbx
mov rcx, r14
call fcn.1800076e0
mov al, 1
jmp 0x18001c338

Function at 0x18001ddb0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rcx
mov dword [rsp + 0x48], ebp
mov rcx, qword [rcx]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x18001dddf
xor al, al
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp byte [rdi + 0x50], bpl
mov eax, 0x1000002
mov r8d, 2
mov qword [rsp + 0x28], rbp
cmovne r8d, eax
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
lea rcx, [rdi + 0x48]
call fcn.18001dfa0
mov rax, qword [rdi + 0x48]
inc rax
test rax, 0xfffffffffffffffe
jne 0x18001de38
xor al, al
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov rcx, rdi
xor ebx, ebx
call fcn.18001fcd0
lea rcx, [rax - 1]
cmp rcx, 0x7ffffffe
ja 0x18001de85
mov rcx, qword [rdi + 0x48]
lea edx, [rbx + 4]
mov r8d, ebx
mov qword [rdi + 0x40], rax
shr r8, 0x20
mov r9d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x18001de85
mov qword [rdi + 0x38], rax
mov al, 1
jmp 0x18001de87
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18001e220
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
cmp byte [rdx + 0xb0], 0
mov rdi, r8
mov rbx, rdx
mov r9d, ecx
jne 0x18001e304
mov r8, qword [rbx + 0x30]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
movzx edx, r9b
xor rdx, rax
movzx eax, byte [rsp + 0x31]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x32]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x33]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rbx + 0x58]
and rcx, rdx
mov rdx, qword [rbx + 0x40]
mov rax, rcx
add rax, rax
add rcx, rcx
mov rax, qword [rdx + rax*8]
mov r10, qword [rdx + rcx*8]
lea r11, [rdx + rcx*8]
nop dword [rax + rax]
cmp r10, r8
jne 0x18001e2ba
mov rcx, r8
jmp 0x18001e2c1
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x18001e2d7
cmp r9d, dword [rax + 0x10]
je 0x18001e2d1
mov rax, qword [rax]
jmp 0x18001e2b0
cmovne rax, r8
jmp 0x18001e2da
mov rax, r8
cmp rax, r8
je 0x18001e304
lea rdx, [rax + 0x18]
cmp rdi, rdx
je 0x18001e2f7
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rdi
call fcn.180007830
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001e320
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
movzx r9d, cl
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r10d, ecx
movzx eax, byte [rsp + 0x41]
movabs rcx, 0x100000001b3
imul r9, rcx
mov rdi, r8
mov r11, rdx
xor r9, rax
movzx eax, byte [rsp + 0x42]
imul r9, rcx
xor r9, rax
movzx eax, byte [rsp + 0x43]
imul r9, rcx
xor r9, rax
mov rax, qword [rdx + 0x98]
imul r9, rcx
mov rcx, qword [rdx + 0x80]
mov rdx, qword [rdx + 0x70]
and rax, r9
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r8, qword [rcx + rax*8]
lea r9, [rcx + rax*8]
cmp r8, rdx
jne 0x18001e3ae
mov rax, rdx
jmp 0x18001e3b5
mov rax, qword [r9 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x18001e3cb
cmp r10d, dword [rbx + 0x10]
je 0x18001e3c5
mov rbx, qword [rbx]
jmp 0x18001e3a4
cmovne rbx, rdx
jmp 0x18001e3ce
mov rbx, rdx
cmp rbx, rdx
je 0x18001e433
cmp byte [r11 + 0xb0], 0
jne 0x18001e40e
lea rcx, [r11 + 0x28]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
call fcn.18001ed30
mov rax, qword [rsp + 0x20]
lea rdx, [rbx + 0x18]
lea rcx, [rax + 0x18]
cmp rcx, rdx
je 0x18001e40e
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.180007830
lea rdx, [rbx + 0x18]
cmp rdi, rdx
je 0x18001e426
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rdi
call fcn.180007830
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18001e750
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov rbx, rdx
movzx eax, byte [r8 + 1]
mov r11, r8
mov rdx, qword [r10 + 0x18]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
mov r8, qword [r10 + 8]
imul r9, rcx
xor r9, rax
imul r9, rcx
mov rcx, qword [r10 + 0x30]
and rcx, r9
mov rax, rcx
add rax, rax
add rcx, rcx
mov rax, qword [rdx + rax*8]
mov r9, qword [rdx + rcx*8]
lea r10, [rdx + rcx*8]
cmp r9, r8
jne 0x18001e7cf
mov rcx, r8
jmp 0x18001e7d6
mov rcx, qword [r10 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x18001e7fe
mov ecx, dword [r11]
cmp dword [rax + 0x10], ecx
je 0x18001e7e8
mov rax, qword [rax]
jmp 0x18001e7c5
mov ecx, dword [rax + 0x10]
cmp dword [r11], ecx
cmovne rax, r8
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 8]
ret
mov qword [rbx], r8
mov rax, rbx
mov rbx, qword [rsp + 8]
ret
Function at 0x18001ee70
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov r10, rcx
movzx r9d, byte [r8]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov r11, r8
xor r9, rax
mov rsi, rdx
movzx eax, byte [r8 + 1]
mov rbx, qword [r10 + 8]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
mov r8, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
imul r9, rcx
mov rcx, qword [r10 + 0x18]
and r8, r9
shl r8, 4
mov rax, qword [rcx + r8]
cmp rbx, rax
je 0x18001ef0e
mov rbx, qword [rcx + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x18001ef0e
mov ecx, dword [r11]
nop word [rax + rax]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x18001ef61
cmp rbx, rax
jne 0x18001ef00
mov rax, qword [rdi]
cmp rbx, rax
je 0x18001ef43
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rcx, qword [rax + 8]
mov rdx, qword [rbx + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r10 + 0x18]
add rdx, r8
mov rax, qword [rdx]
cmp rax, qword [r10 + 8]
jne 0x18001ef95
mov qword [rdx], rdi
mov rax, qword [r10 + 0x18]
mov qword [r8 + rax + 8], rdi
jmp 0x18001efc1
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
lea rcx, [rdi + 0x18]
dec qword [r10 + 0x10]
call fcn.1800050a0
mov rcx, rdi
call fcn.18006baac
mov byte [rsp + 0x30], 0
mov qword [rsi], rbx
jmp 0x18001efd1
cmp rax, rbx
jne 0x18001ef9f
mov qword [rdx], rdi
jmp 0x18001efc1
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x18001efc1
mov rdx, qword [r10 + 0x18]
mov rax, qword [rdx + r8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8 + 8], rcx
mov rcx, r10
call fcn.18001f000
mov byte [rsp + 0x30], 1
mov qword [rsi], rdi
lea rcx, [rsp + 0x30]
call fcn.180005f90
mov rbx, qword [rsp + 0x38]
movzx ecx, byte [rax]
mov rax, rsi
mov byte [rsi + 8], cl
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18001f640
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rcx + 8]
lea rsi, [rcx + 8]
mov rdi, rcx
mov dl, 0xa
movsxd rcx, dword [rax + 4]
add rcx, rsi
call fcn.180009fe0
movzx edx, al
mov rcx, rsi
call fcn.18001f840
mov rcx, rsi
call fcn.180009960
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.180013d50
mov rax, qword [0x1800f9648]
test rax, rax
je 0x18001f6d4
mov r9, qword [rdi + 0xf0]
lea rcx, [rsp + 0x38]
mov r8d, dword [rdi + 0x100]
mov rdx, qword [rdi + 0xf8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rdi]
call rax
test al, al
jne 0x18001f7ef
cmp dword [rdi], 2
jl 0x18001f720
mov ecx, 2
call fcn.180077b90
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.1800051a0
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.1800051b0
mov rcx, rax
mov r9, rbx
mov r8d, 1
call fcn.18007851c
mov ecx, 2
call fcn.180077b90
mov rcx, rax
call fcn.180077ffc
call fcn.18001f490
test al, al
je 0x18001f761
lea rcx, [rsp + 0x38]
call fcn.1800051a0
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.1800051b0
mov rcx, qword [0x1800f9650]
lea r9, [rsp + 0x30]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rdi], 3
jne 0x18001f7ef
lea rcx, [rsp + 0x38]
mov ebx, 0x400
call fcn.180007650
lea rcx, [rsp + 0x38]
cmp qword [rax], rbx
cmovb rbx, qword [rax]
call fcn.180005f90
cmp qword [rax + 0x18], 0x10
jb 0x18001f794
mov rax, qword [rax]
test rbx, rbx
je 0x18001f7ac
mov r8, rbx
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.180071580
lea rcx, [rsp + 0x80]
call fcn.180021410
cmp qword [0x1800f9660], 0
je 0x18001f7e5
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.180013d50
mov rcx, rax
call qword [0x1800f9660]
lea rcx, [rsp + 0x58]
call fcn.1800052f0
jmp 0x18001f7ef
cmp byte [0x1800f96a8], 0
jne 0x18001f832
int3
lea rcx, [rsp + 0x38]
call fcn.1800052f0
mov ecx, dword [rdi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180013d10
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18006c2f0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call fcn.180082590
int3
Function at 0x18001fcd0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov dword [rsp + 0x50], 0
mov rcx, qword [0x1800f96a0]
xor edi, edi
test rcx, rcx
je 0x18001fd2f
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test al, al
je 0x18001fd2f
mov rcx, qword [0x1800f96a0]
lea rdi, [rbx + 0x28]
lea rsi, str.File::GetLength
mov qword [rsp + 0x20], 0
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x18001fd34
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rbx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
test eax, eax
cmove rbx, rcx
test rdi, rdi
je 0x18001fd6f
mov rcx, qword [0x1800f96a0]
test rcx, rcx
je 0x18001fd6f
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + Ordinal_41]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180020b80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
xor esi, esi
mov r15, r8
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
je 0x180020bc5
mov rcx, rdx
call fcn.180005f90
mov byte [rsp + 0x48], sil
cmp qword [rax + 0x18], 0x10
mov qword [rax + 0x10], rsi
jb 0x180020bb8
mov rax, qword [rax]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1800019d0
mov rcx, rbx
call fcn.18001d830
test al, al
je 0x180020be1
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
mov rcx, rbx
mov qword [rsp + 0x50], r14
call fcn.180021140
mov r14, rax
test rax, rax
je 0x180020cae
mov ecx, 0x10000
mov qword [rsp + 0x40], rdi
call fcn.18006c7cc
mov r9, r14
mov edx, 1
mov r8d, 0x10000
mov rcx, rax
mov rbx, rax
call fcn.18007ec54
mov rdi, rax
test rax, rax
je 0x180020c7c
nop word [rax + rax]
test rbp, rbp
je 0x180020c50
mov rcx, r15
mov r8, rdi
sub rcx, rsi
mov rdx, rbx
cmp rcx, rdi
cmovb r8, rcx
mov rcx, rbp
call fcn.180007da0
mov rax, r15
sub rax, rsi
cmp rax, rdi
jb 0x180020c8d
mov r9, r14
mov edx, 1
mov r8d, 0x10000
mov rcx, rbx
add rsi, rdi
call fcn.18007ec54
mov rdi, rax
test rax, rax
jne 0x180020c30
mov rcx, r14
call fcn.180080454
test eax, eax
jne 0x180020c8d
mov dil, 1
jmp 0x180020c90
xor dil, dil
mov rcx, r14
call fcn.180077c9c
test rbx, rbx
je 0x180020ca5
mov rdx, rbx
call fcn.180016820
movzx eax, dil
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
call fcn.180005090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x180020e00
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x180020fc2
mov qword [rsp + 0x2b8], rbx
mov qword [rsp + 0x2c0], rdi
mov qword [rsp + 0x290], r14
xor r14d, r14d
cmp word [rsp + 0x70], r14w
jne 0x180020e6b
mov ebx, r14d
jmp 0x180020e7e
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x180020e74
lea rcx, [rsp + 0x48]
call fcn.180005140
lea rcx, [rsp + 0x48]
test rbx, rbx
jne 0x180020eba
call fcn.180005f90
mov word [rsp + 0x20], r14w
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], r14
jb 0x180020eab
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800019c0
jmp 0x180020ec7
mov r8, rbx
lea rdx, [rsp + 0x70]
call fcn.1800076e0
lea rcx, [rsp + 0x48]
call fcn.18001db90
cmp rax, 0xffffffffffffffff
je 0x180020ee8
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.180009520
lea rcx, [rsp + 0x48]
call fcn.180005090
lea rcx, [rsp + 0x48]
mov rdi, rax
call fcn.1800051a0
lea rcx, [rsp + 0x28]
mov rbx, rax
call fcn.180005140
lea rcx, [rsp + 0x28]
test rbx, rbx
jne 0x180020f3e
call fcn.180005f90
mov word [rsp + 0x20], r14w
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], r14
jb 0x180020f2f
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800019c0
jmp 0x180020f49
mov r8, rbx
mov rdx, rdi
call fcn.1800076e0
lea rcx, [rsp + 0x28]
call fcn.18001db90
mov r14, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2b8]
cmp rax, 0xffffffffffffffff
je 0x180020f82
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.180009520
lea rcx, [rsp + 0x28]
call fcn.18001d960
lea rax, [rsp + 0x28]
cmp rsi, rax
je 0x180020faa
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call fcn.180007830
lea rcx, [rsp + 0x28]
call fcn.1800050a0
lea rcx, [rsp + 0x48]
call fcn.1800050a0
mov al, 1
jmp 0x180020fc4
xor al, al
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x298
pop rsi
pop rbp
ret
Function at 0x180020fe0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov rdi, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x28]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1800210b7
cmp word [rsp + 0x60], 0
je 0x1800210b7
mov qword [rsp + 0x298], rbx
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180021040
mov rcx, rdi
call fcn.180005140
mov rcx, rdi
test rbx, rbx
jne 0x180021083
call fcn.180005f90
xor ecx, ecx
mov word [rsp + 0x30], cx
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], rcx
jb 0x180021074
mov rax, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1800019c0
jmp 0x180021090
mov r8, rbx
lea rdx, [rsp + 0x60]
call fcn.1800076e0
mov rcx, rdi
call fcn.18001db90
mov rbx, qword [rsp + 0x298]
cmp rax, 0xffffffffffffffff
je 0x18002111f
or r8, 0xffffffffffffffff
mov rdx, rax
mov rcx, rdi
call fcn.180009520
jmp 0x18002111f
lea rcx, [rsp + 0x38]
call fcn.180005140
lea rcx, [rsp + 0x38]
call fcn.180020e00
mov rcx, rdi
test al, al
je 0x1800210de
lea rdx, [rsp + 0x38]
call fcn.180005160
jmp 0x180021115
call fcn.180005140
mov r8d, 3
lea rdx, [0x1800daaa0]
mov rcx, rdi
call fcn.1800076e0
mov rcx, rdi
call fcn.18001db90
cmp rax, 0xffffffffffffffff
je 0x180021115
or r8, 0xffffffffffffffff
mov rdx, rax
mov rcx, rdi
call fcn.180009520
lea rcx, [rsp + 0x38]
call fcn.1800050a0
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x280
pop rdi
ret
Function at 0x180021220
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
lea rdx, [rbp - 0x70]
xor r14d, r14d
mov ecx, 0x104
mov word [rbp - 0x70], r14w
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1800213e8
mov qword [rsp + 0x2d8], rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x2e0], rdi
call fcn.1800050f0
lea rcx, [rsp + 0x68]
call fcn.180005090
lea rcx, [rsp + 0x68]
mov rdi, rax
call fcn.1800051a0
lea rcx, [rsp + 0x48]
mov rbx, rax
call fcn.180005140
lea rcx, [rsp + 0x48]
test rbx, rbx
jne 0x1800212e0
call fcn.180005f90
mov word [rsp + 0x20], r14w
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], r14
jb 0x1800212d1
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800019c0
jmp 0x1800212eb
mov r8, rbx
mov rdx, rdi
call fcn.1800076e0
lea rcx, [rsp + 0x48]
call fcn.18001db90
cmp rax, 0xffffffffffffffff
je 0x18002130c
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.180009520
lea rcx, [rsp + 0x48]
call fcn.180005090
lea rcx, [rsp + 0x48]
mov rdi, rax
call fcn.1800051a0
lea rcx, [rsp + 0x28]
mov rbx, rax
call fcn.180005140
lea rcx, [rsp + 0x28]
test rbx, rbx
jne 0x180021362
call fcn.180005f90
mov word [rsp + 0x20], r14w
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], r14
jb 0x180021353
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800019c0
jmp 0x18002136d
mov r8, rbx
mov rdx, rdi
call fcn.1800076e0
lea rcx, [rsp + 0x28]
call fcn.18001db90
mov rdi, qword [rsp + 0x2e0]
mov rbx, qword [rsp + 0x2d8]
cmp rax, 0xffffffffffffffff
je 0x18002139e
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.180009520
lea rcx, [rsp + 0x28]
call fcn.18001d960
lea rax, [rsp + 0x28]
cmp rsi, rax
je 0x1800213c6
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call fcn.180007830
lea rcx, [rsp + 0x28]
call fcn.1800050a0
lea rcx, [rsp + 0x48]
call fcn.1800050a0
lea rcx, [rsp + 0x68]
call fcn.1800050a0
mov al, 1
jmp 0x1800213ea
xor al, al
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x2b0
pop r14
pop rsi
pop rbp
ret