joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010db40
Capabilities:
Unmount volume via ioctl

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r13b, r8b
mov r12b, dl
mov rsi, rcx
xor r14d, r14d
mov ebp, r14d
cmp qword [rcx], r14
jne 0x14010db7d
lea ebp, [r14 + 0xd]
jmp 0x14010dd25
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x98], rax
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov r8d, dword [rax - 0x10]
dec r8d
lea rdx, [rsp + 0x40]
call fcn.140024c5c
nop
mov r8, qword [rax]
lea rdx, str.._s
lea rcx, [rsp + 0x98]
call fcn.14000d9c8
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14010dbea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsi]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rbx, qword [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x48], rax
mov rcx, qword [rsi]
cmp qword [rcx + 0x48], 0xffffffffffffffff
jne 0x14010dc37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14010dd0a
mov dword [rsp + 0x80], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14010dcb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test edi, edi
je 0x14010dcef
test r12b, r12b
je 0x14010dcef
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r14d
mov rax, qword [rsi]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9001c
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test r13b, r13b
je 0x14010dd0a
mov rdi, qword [rsi]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14010dd0a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x48], r14
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14010dd25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14010e3cc
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r13, r9
mov r12, r8
mov rbp, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x68]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14010e4d9
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x50]
call fcn.14000c4d8
nop
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14010e453
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14010e453
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test rbp, rbp
je 0x14010e47a
inc r12
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x30]
test al, al
je 0x14010e47a
mov rax, qword [rbp]
mov r8, r13
mov rdx, r12
mov rcx, rbp
call qword [rax + 0x28]
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14010e495
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rbx + 0x29], 0
jne 0x14010e4cf
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x29], 0
jne 0x14010e4b3
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x14010e4a5
jmp 0x14010e4cf
mov rax, qword [rbx + 8]
jmp 0x14010e4c6
cmp rbx, qword [rax + 0x10]
jne 0x14010e4cc
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x29], 0
je 0x14010e4b9
mov rbx, rax
cmp rbx, qword [rsi + 0x68]
jne 0x14010e40a
lea rcx, [rsi + 0x60]
call fcn.1400708b0
jmp 0x14010e537
mov rdx, qword [rsi + 0x48]
sub rdx, 8
lea rcx, [rsp + 0x20]
call fcn.14000c4d8
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsi + 0x48]
cmp qword [rsi + 0x40], rcx
je 0x14010e51c
add rcx, 0xfffffffffffffff8
call fcn.140082b80
add qword [rsi + 0x48], 0xfffffffffffffff8
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14010e537
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi + 0x48]
cmp qword [rsi + 0x40], rax
jne 0x14010e4e4
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140110b98
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x670
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov r12, rcx
mov rax, rdx
mov edx, 0x100
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x60]
xor r14d, r14d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
lea rcx, [r11 - 0x438]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r9, [r11 - 0x238]
lea rdx, [rsp + 0x50]
lea r8d, [r14 + 3]
mov rcx, rax
mov ebx, r14d
call fcn.1400c709c
lea r8d, [r14 + 2]
lea rdx, [r12 + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400c0c68
test eax, eax
je 0x140110cb8
lea rdi, [r12 + 0x54]
lea r9, [r12 + 0x50]
lea r8, [r12 + 0x4c]
lea rdx, [r12 + 0x48]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x140110ca1
lea r9, [r12 + 0x50]
lea r8, [r12 + 0x4c]
lea rdx, [r12 + 0x48]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x54], 0x5c
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x140110ca1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x140110ca1
mov dword [r12 + 0x48], 1
mov qword [r12 + 0x4c], 0x200
mov dword [rdi], r14d
or r9, 0xffffffffffffffff
lea r8, [rsp + 0x50]
lea rcx, [r12 + 0x38]
lea edx, [r9 + 8]
call fcn.1400bfd28
mov eax, ebx
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140110cf8
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x240
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rdx
xor esi, esi
xor edi, edi
test r8b, r8b
lea eax, [rsi + 0x19]
mov rbx, rcx
mov r8, rcx
mov r12d, 0x104
mov rcx, rbp
mov edx, r12d
cmove edi, eax
call fcn.1400bfdf8
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, r12d
call fcn.1400bfdf8
mov ebx, edi
jmp 0x140110dc7
test esi, esi
jne 0x140110dcd
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
dec ecx
movsxd rax, ecx
js 0x140110d98
lea rdx, [rsp + rax*2 + 0x20]
cmp word [rdx], 0x2e
je 0x140110d90
cmp word [rdx], 0x5c
je 0x140110d98
lea eax, [rbx + 0x41]
mov word [rdx], ax
sub rdx, 2
dec ecx
jns 0x140110d7e
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140110db4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140110dc4
lea r8, [rsp + 0x20]
mov rdx, r12
mov rcx, rbp
call fcn.1400bfdf8
inc rbx
cmp rbx, 0x1a
jb 0x140110d5a
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140111538
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rcx
xor ebp, ebp
mov dil, bpl
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea r12d, [rbp + 1]
mov r9d, r12d
mov r8d, 0x104
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.14000bd14
mov rcx, qword [rax + 8]
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
cmp eax, 0xffffffff
jne 0x1401115eb
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1401115e2
mov eax, ebp
jmp 0x1401115ef
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011166d
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011166d
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
lea rcx, [rsp + 0x90]
call fcn.14000b994
mov r11, qword [rsp + 0x90]
cmp dword [r11 - 0x10], ebp
jl 0x14011164c
lea rdx, [0x140387c80]
mov rcx, r11
call fcn.1400bee84
mov r11, qword [rsp + 0x90]
test rax, rax
je 0x14011164c
sub rax, r11
sar rax, 1
movzx edi, dil
cmp eax, 0xffffffff
cmovg edi, r12d
lea rdx, [r11 - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140111668
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
jmp 0x140111678
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r12
pop rdi
pop rbp
ret
Function at 0x140114168
Capabilities:
Delete file
Move file

Disassembly:
test dword [r8], 0x800
jne 0x140114190
test dword [r8], 0x4000
jne 0x140114190
test dword [r8], 0x200
jne 0x140114190
mov r9d, dword [r8 + 0x20]
mov r8d, dword [r8 + 0x1c]
jmp fcn.140113ed8
mov eax, 0x32
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401144f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140114524
bt eax, 0xb
jb 0x14011451f
bt eax, 0xe
jb 0x14011451f
bt eax, 9
jb 0x14011451f
mov r8, rdi
mov r9d, edi
mov rdx, rbx
shr r8, 0x20
mov rcx, rsi
call fcn.140113ed8
jmp 0x140114524
mov eax, 0x32
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14011521c
Capabilities:
Compress data via winapi
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RtlDecompressBuffer
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.NtQueryInformationFile
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.NtReadFile
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.NtWriteFile
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.RtlNtStatusToDosError
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140115454
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov ebx, dword [rcx + 0x40]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x18], ebx
xor ebx, ebx
movups xmm0, xmmword [rdi + 0x30]
mov dword [rbp - 0x1c], eax
lea rax, [rdi + 0x64]
mov qword [rsp + 0x30], rbx
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp - 0x10], rax
lea rax, [rdi + 0x68]
lea r9, [rsp + 0x40]
mov qword [rbp - 8], rax
lea rax, [rdi + 0x70]
lea r8d, [rbx + 0x50]
mov qword [rbp], rax
xor eax, eax
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rbp - 0x20], 1
mov dword [rsp + 0x20], 0x50
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x1401155b9
cmp dword [rsp + 0x40], 2
jne 0x1401155b9
cmp dword [rsp + 0x44], ebx
je 0x1401155b9
cmp qword [rsp + 0x78], rbx
je 0x1401155b9
cmp qword [rbp - 0x80], rbx
je 0x1401155b9
cmp qword [rbp - 0x78], rbx
je 0x1401155b9
xor eax, eax
lea r9, [rbp + 0x40]
lea r8d, [rbx + 0x50]
lea rdx, [rbp - 0x70]
mov rcx, rsi
mov qword [rbp - 0x6c], rbx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
mov dword [rbp - 0x70], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401155b9
mov rcx, qword [rsp + 0x78]
mov al, 1
mov qword [rdi + 0x48], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rdi + 0x50], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rdi + 0x58], rcx
mov ecx, dword [rsp + 0x44]
mov dword [rdi + 0x60], ecx
jmp 0x1401155bb
xor al, al
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140117a7c
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x20], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140117abf
mov qword [0x14048ab18], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea ecx, [r8 + 2]
lea rdx, [0x140117a0c]
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x20], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140119ac4
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
and qword [rcx + 0x78], 0
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140119aea
mov rax, qword [rcx]
call qword [rax + 0x20]
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140119a04
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x40]
call fcn.14000cb18
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140119b2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140119b54
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x140119b54
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140119b73
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x30
pop rbx
ret
Function at 0x14011a8f4
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3d8]
sub rsp, 0x4d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
call fcn.140119a04
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x20]
call fcn.14000cb18
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
xor ebx, ebx
test eax, eax
jg 0x14011a962
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14011aada
mov eax, 0x5c
mov word [rbp + 0x3a8], ax
mov qword [rbp + 0x3b0], rbx
mov dword [rbp + 0x3b8], ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14000c4d8
nop
lea rdx, [0x14034fa44]
lea rcx, [rsp + 0x28]
call fcn.14000f884
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140063130
test eax, eax
je 0x14011aa8e
mov eax, dword [rbp + 0x3b8]
test eax, eax
je 0x14011a9fc
mov ecx, dword [rsp + 0x50]
shr ecx, 4
and ecx, 1
je 0x14011a9fe
cmp word [rsp + 0x7c], 0x2e
jne 0x14011a9fe
movzx edx, word [rsp + 0x7e]
test dx, dx
je 0x14011aa40
cmp dx, 0x2e
jne 0x14011a9fe
cmp word [rbp - 0x80], bx
je 0x14011aa40
jmp 0x14011a9fe
mov ecx, ebx
test ecx, ecx
jne 0x14011aa40
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140062f70
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011aa3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x3b8]
mov rcx, qword [rbp + 0x3b0]
test rcx, rcx
je 0x14011aa70
test eax, eax
je 0x14011aa70
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rbp + 0x3b8], eax
test eax, eax
jne 0x14011a9d0
mov rcx, qword [rbp + 0x3b0]
mov dword [rbp + 0x3b8], ebx
test rcx, rcx
je 0x14011aa8e
cmp rcx, 0xffffffffffffffff
je 0x14011aa8e
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp + 0x3b0], rbx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011aabb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dword [rbp + 0x3b8], ebx
mov rcx, qword [rbp + 0x3b0]
test rcx, rcx
je 0x14011aada
cmp rcx, 0xffffffffffffffff
je 0x14011aada
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011aafa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4d0
pop rbp
ret
Function at 0x14011ac24
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x30], esi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rbp + 0x30], 1
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140119cb4
nop
mov rdx, qword [rax]
lea rcx, [rbp + 0x38]
call fcn.14000cb18
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011aca7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14011ad46
mov ebx, 0x104
mov r9d, 1
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14000bd14
mov r9, qword [rax + 8]
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r8, [0x140330de8]
lea rdx, str.Filename
lea rcx, str.Update
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x20]
cmp eax, 0xffffffff
jne 0x14011ad20
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011ad17
mov eax, esi
jmp 0x14011ad24
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011ad3b
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011ad3b
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
jmp 0x14011ad46
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011ad65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011ad84
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x30], esi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rbp + 0x30], 1
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140119cb4
nop
mov rdx, qword [rax]
lea rcx, [rbp + 0x38]
call fcn.14000cb18
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011ae07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14011aea4
mov ebx, 0x32
lea r9d, [rbx - 0x31]
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14000bd14
mov r9, qword [rax + 8]
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r8, [0x140330de8]
lea rdx, str.Version
lea rcx, str.Update
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x20]
cmp eax, 0xffffffff
jne 0x14011ae7e
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011ae75
mov eax, esi
jmp 0x14011ae82
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011ae99
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011ae99
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
jmp 0x14011aeb1
mov ecx, 0x80070057
call fcn.14000cbb8
int3
lea rdx, [rbx + 0x70]
mov rcx, rdi
call fcn.14000c244
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011aed0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret