joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14021fb78
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, r9
mov r12, r8
mov r14, rdx
mov rbx, rcx
call fcn.14021f2f8
xor r15d, r15d
mov edi, eax
test eax, eax
je 0x14021fb47
lea rcx, [rdi + 2]
lea eax, [r15 + 2]
mul rcx
lea rcx, [r15 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1400b9290
mov r9, qword [rbx + 8]
mov r8d, edi
mov rdx, rax
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov r13d, r15d
or r15, 0xffffffffffffffff
lea ecx, [rdi - 2]
cmp eax, ecx
je 0x14021faa8
lea ecx, [rdi - 1]
cmp eax, ecx
jne 0x14021faed
cmp r13d, 0xa
jge 0x14021faed
mov rcx, rsi
call fcn.1400bee7c
add edi, edi
mov eax, 2
mov ecx, edi
add rcx, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400b9290
mov r9, qword [rbx + 8]
mov r8d, edi
mov rdx, rax
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
inc r13d
jmp 0x14021fa9a
xor r15d, r15d
mov qword [rsp + 0x20], rsi
mov rbx, rsi
cmp word [rsi], r15w
je 0x14021fb3f
or rsi, 0xffffffffffffffff
test r12, r12
je 0x14021fb12
mov rdx, rbx
mov rcx, r12
call fcn.1402e4170
test rbp, rbp
je 0x14021fb22
mov rdx, rbx
mov rcx, rbp
call fcn.1402e40e0
xor eax, eax
mov rdi, rbx
mov rcx, rsi
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
cmp word [rbx], r15w
jne 0x14021fb02
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400bee7c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r9d, r9d
jmp 0x14021fa28

Function at 0x14021fb88
Capabilities:
Read .ini file

Disassembly:
mov r9, r8
xor r8d, r8d
jmp 0x14021fa28

Function at 0x140222df8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
lea rdi, [rsp + 0x20]
lea edx, [rax + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov rcx, rbx
mov dword [rsp + 0x20], edx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edx, edx
test eax, eax
jne 0x140222e35
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140222d98
mov edx, eax
mov eax, edx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140222e48
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r13, rdx
mov r12, rcx
xor r14d, r14d
mov edi, r14d
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x48], rax
mov ebx, 0x104
lea r9d, [r14 + 1]
mov r8d, ebx
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x38]
call fcn.14000bd14
mov rdx, qword [rax + 8]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne sil
mov eax, dword [rbp - 0x28]
mov rbx, qword [rbp - 0x38]
cmp eax, 0xffffffff
jne 0x140222edc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140222ed3
mov eax, r14d
jmp 0x140222ee4
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x140223003
mov rdx, qword [rbx]
cmp eax, dword [rdx - 0xc]
jg 0x140223003
mov dword [rdx - 0x10], eax
movsxd rdx, eax
mov rax, qword [rbx]
mov word [rax + rdx*2], r14w
test sil, sil
je 0x140222fd8
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x40], rax
mov r9d, 1
mov r8d, 0x104
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.14000bd14
mov r9, qword [rax + 8]
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
setne sil
mov eax, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x20]
cmp eax, 0xffffffff
jne 0x140222f76
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140222f6d
mov eax, r14d
jmp 0x140222f7a
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x140222fcd
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140222fcd
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
test sil, sil
je 0x140222fa3
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.14000c244
jmp 0x140222fab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140222fe0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140222fe0
mov ecx, 0x80070057
call fcn.14000cbb8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140222fff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x14022300e
mov ecx, 0x80070057
call fcn.14000cbb8
nop
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140223098
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rbx, rcx
lea rdx, str.3590F75ABA9E485486C100C1A9D4FF06
lea rcx, [rbp + 0x20]
call fcn.14000cb18
nop
mov r8d, 1
lea rdx, [0x14034fa44]
lea rcx, [rbp + 0x20]
call fcn.14000c0c4
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.1401c6b5c
lea r11, vtable.Piriform::CFilesSeeker.0
mov qword [rbp - 0x38], r11
lea rax, vtable.Piriform::CFilesSeeker.1.0
mov qword [rbp - 0x30], rax
and qword [rbp - 0x18], 0
and qword [rbp - 0x58], 0
and qword [rbp - 0x50], 0
and qword [rbp - 0x48], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 0x10], rax
xor r9d, r9d
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbx]
lea rcx, [rbp - 0x38]
call qword [method.Piriform::CRecurseDirEx.1.virtual_8]
mov rbx, qword [rbp - 0x58]
mov qword [rbp + 0x28], rbx
mov rdi, qword [rbp - 0x50]
mov qword [rbp + 0x30], rdi
cmp rbx, rdi
je 0x14022314d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rbx, 8
jmp 0x140223139
mov qword [rbp + 0x28], rbx
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140223180
mov rdi, qword [rbp - 0x50]
cmp rbx, rdi
je 0x140223178
mov rcx, rbx
call fcn.140082b80
add rbx, 8
cmp rbx, rdi
jne 0x140223163
mov rbx, qword [rbp - 0x58]
mov rcx, rbx
call fcn.1400be0f4
and qword [rbp - 0x58], 0
and qword [rbp - 0x50], 0
and qword [rbp - 0x48], 0
lea rcx, [rbp - 0x38]
call fcn.1401c6b0c
nop
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402231b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x140223a58
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov rbx, rcx
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140223b19
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x140223acc
lea eax, [rdi + 1]
jmp 0x140223b1d
cmp eax, 1
jne 0x140223b1d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x64], 0x1f4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140223b19
mov eax, dword [rsp + 0x60]
cmp word [rsp + 0x70], di
mov ecx, 2
cmovne eax, ecx
jmp 0x140223b1d
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret

Function at 0x140223b48
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rdx, [0x140330de8]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x140223bf8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov rbx, r8
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret
Function at 0x140223c38
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x70]
xor ebp, ebp
mov rbx, r9
mov rsi, r8
test r9, r9
je 0x140223c68
cmp dword [rdi], 2
jae 0x140223c68
lea eax, [rbp + 0x7a]
jmp 0x140223ce5
mov eax, dword [rdi]
mov dword [rdi], ebp
mov rcx, qword [rcx + 8]
add eax, eax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x30]
mov dword [rsi], ecx
test eax, eax
je 0x140223ca5
mov ecx, dword [rsp + 0x68]
mov dword [rdi], ecx
jmp 0x140223ce5
cmp ecx, 7
je 0x140223cb1
mov eax, 0xd
jmp 0x140223ce5
mov eax, dword [rsp + 0x68]
test rbx, rbx
je 0x140223cdf
test al, 1
jne 0x140223caa
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x140223caa
mov edx, eax
shr rdx, 1
cmp word [rbx + rdx*2 - 2], bp
jne 0x140223caa
cmp ecx, 1
jbe 0x140223cdf
cmp word [rbx + rdx*2 - 4], bp
jne 0x140223caa
shr eax, 1
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140223d08
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rbx, [rcx + 0x28]
mov rcx, qword [rcx + 8]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140223d35
and dword [rbx], 0
mov eax, dword [rbx]
add rsp, 0x30
pop rbx
ret

Function at 0x140223d48
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
or dword [rsp + 0x40], 0xffffffff
lea rax, [r11 + 0x20]
lea r9, [rcx + 0x28]
mov rcx, qword [rcx + 8]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
mov ebx, r8d
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
cmp eax, 2
cmove ecx, ebx
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140223e38
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov esi, r8d
mov rbx, rdx
call fcn.14023dc9c
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x140223e8c
xor r9d, r9d
mov r8d, esi
call rax
jmp 0x140223e92
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140224018
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x28], 0
and dword [rax - 0x20], 0
and qword [rax - 0x18], 0
mov rdi, r9
mov r9d, dword [rsp + 0x70]
mov rsi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rax - 0x28]
or r9d, 2
call fcn.1400114d4
mov dword [rdi], eax
test eax, eax
jne 0x140224066
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rdi], eax
cmp dword [rdi], 0
sete dil
cmp qword [rsp + 0x20], 0
je 0x140224080
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rsi, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140224098
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp byte [rsp + 0x70], 0
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
mov eax, 2
je 0x1402240cb
mov ecx, eax
call fcn.140223ed8
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rbx
mov rdx, rbp
call fcn.1400114d4
mov rbx, qword [rsp + 0x20]
mov dword [rdi], eax
test eax, eax
jne 0x140224108
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rdi], eax
cmp dword [rdi], 0
sete dil
test rbx, rbx
je 0x14022411d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov al, dil
add rsp, 0x40
pop rdi
ret

Function at 0x1402241e8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
lea rcx, vtable.Piriform::Registry::CRegKeyEx.0
mov edi, r8d
mov r8, rdx
mov qword [rsp + 0x78], rdx
xor edx, edx
mov qword [rsp + 0x48], rcx
or ecx, 0xffffffff
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x70], edx
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], ecx
lea rcx, [rsp + 0x50]
mov r9d, edi
call fcn.1400114d4
jmp 0x14022426d
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
mov r8d, edi
call fcn.1402241e8
mov ebx, eax
test eax, eax
jne 0x1402242db
mov rcx, qword [rsp + 0x50]
xor ebx, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14022425c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1402242c4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsi + 8]
mov r8d, edi
mov dword [rsp + 0x58], ebx
call fcn.140223e38
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140224148
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140229b90
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
xor edi, edi
mov dword [rsp + 0x68], edi
or qword [rax - 0x20], 0xffffffffffffffff
mov dword [rax - 0x38], 3
lea r9d, [rdi + 1]
mov r8d, 0x80000000
mov rdx, rcx
lea rcx, [rax - 0x20]
call fcn.140021fb8
test eax, eax
je 0x140229c80
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x3c]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 0x4550
jne 0x140229c7a
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx edi, word [rsp + 0x68]
mov dword [rsp + 0x68], edi
jmp 0x140229c85
mov rbx, qword [rsp + 0x38]
cmp rbx, 0xffffffffffffffff
je 0x140229c94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
mov rbx, rcx
test dl, dl
je 0x140229ee2
lea rcx, [rsp + 0x20]
call fcn.14023dd4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp dword [rsp + 0x28], 0
je 0x140229f02
mov rcx, qword [rsp + 0x20]
call fcn.14023dbec
mov al, bl
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
xor al, al
mov rdi, rcx
cmp rbx, qword [rcx + 8]
je 0x14022a9f9
test al, al
jne 0x14022a9f9
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14022a9ea
xor al, al
jmp 0x14022a9ef
shr eax, 4
and al, 1
add rbx, 8
cmp rbx, qword [rdi + 8]
jne 0x14022a9d4
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14022aa0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x120
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbp, rdx
mov rsi, rcx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x14022aa8e
lea rcx, [rsp + 0x30]
call fcn.1401de0b0
nop
mov r8, rbp
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1401dfad0
nop
lea rcx, [rsp + 0x30]
call fcn.1401dd560
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x120
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbp, rdx
mov rsi, rcx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x14022ab39
lea rcx, [rsp + 0x30]
call fcn.1401de190
nop
mov rdx, rbp
mov rcx, rsi
call fcn.1401dfe40
nop
lea rcx, [rsp + 0x30]
call fcn.1401dd850
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rdx
mov rbp, rcx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x14022abfc
lea rcx, [rsp + 0x30]
call fcn.1401df8f0
nop
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1401dffc0
test eax, eax
jne 0x14022abf2
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1401dfed0
nop
lea rcx, [rsp + 0x30]
call fcn.1401de2c0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14022ac2c
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, r8
mov rsi, rdx
mov byte [rdx], 0
mov byte [r8], 0
mov rax, qword [rcx]
mov rbx, qword [rcx + 8]
mov qword [rbp + 0x20], rax
cmp rax, rbx
je 0x14022ad24
cmp byte [rsi], 0
jne 0x14022acbb
mov rdx, qword [rax]
lea rcx, [rbp + 0x28]
call fcn.14000cb18
nop
lea rdx, str.operaprefs.ini
lea rcx, [rbp + 0x28]
call fcn.14000f884
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14022ac98
mov byte [rsi], 1
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14022acb7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x20]
cmp byte [rdi], 0
jne 0x14022ad11
mov rdx, qword [rax]
lea rcx, [rbp + 0x30]
call fcn.14000cb18
nop
lea rdx, [0x140362ec8]
lea rcx, [rbp + 0x30]
call fcn.14000f884
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14022acee
mov byte [rdi], 1
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14022ad0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x20]
cmp byte [rsi], 0
je 0x14022ad1b
cmp byte [rdi], 0
jne 0x14022ad24
add rax, 8
jmp 0x14022ac58
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
xor al, al
mov rdi, rcx
cmp rbx, qword [rcx + 8]
je 0x14022b881
test al, al
jne 0x14022b881
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14022b872
xor al, al
jmp 0x14022b877
shr eax, 4
and al, 1
add rbx, 8
cmp rbx, qword [rdi + 8]
jne 0x14022b85c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14022c8c4
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, rdx
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000cb18
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14022c99e
lea rdx, [0x1403610e8]
lea rcx, [rsp + 0x50]
call fcn.14000f884
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14022c933
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000c244
jmp 0x14022c99e
test rbx, rbx
jne 0x14022c93c
xor ecx, ecx
jmp 0x14022c94e
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000c9f8
lea rcx, [rsp + 0x50]
call fcn.140050bb8
xor edx, edx
test rbx, rbx
setne dl
test edx, edx
jne 0x14022c97f
mov ecx, 0x80004005
call fcn.14000cbb8
int3
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call fcn.1400bedf4
test eax, eax
jns 0x14022c99e
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call fcn.14022c8c4
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14022c9be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret