joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d10
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, qword [rsp + 0x340]
mov r11, r9
mov eax, r8d
mov r10, rdx
cmp r8d, 0x4e
jne 0x140001e0b
cmp dword [rbx + 0x10], 0xfffffcd9
je 0x140001d7a
cmp dword [rbx + 0x10], 0xfffffcda
jne 0x140001d73
cmp dword [rbx + 0x228], 2
jne 0x140001d73
lea rcx, [0x140180fb0]
call fcn.140001e40
xor eax, eax
jmp 0x140001e1c
mov rax, qword [rbx + 0x48]
mov ebp, dword [rbx + 0x18]
mov ecx, dword [rax]
cmp ecx, 4
jne 0x140001d8e
mov rsi, qword [rax + 8]
jmp 0x140001d92
lea rsi, [rax + 0x10]
xor edi, edi
cmp ecx, 4
lea eax, [rdi + 8]
cmove edi, eax
test bpl, 1
je 0x140001dd1
mov eax, edi
lea r8, [rsp + 0x30]
bts eax, 9
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140001dd1
lea rax, [rsp + 0x40]
mov qword [rbx + 0x28], rax
test bpl, 6
je 0x140001e01
or edi, 0x4001
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rsp + 0x20], edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x38], eax
mov dword [rbx + 0x34], eax
bts dword [rbx + 0x18], 0x1c
jmp 0x140001d73
mov r9, rbx
mov r8, r11
mov edx, eax
mov rcx, r10
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x320]
add rsp, 0x300
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001e40
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push rbx
mov eax, 0x1030
call fcn.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx]
mov r8d, 0x800
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x20]
call fcn.1400459f0
mov rcx, qword [rbx]
lea r9, [rsp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
je 0x140001ed5
mov rcx, qword [rbx]
xor r9d, r9d
mov r8, rax
mov edx, 0x14e
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
call fcn.140001738
cmp byte [0x14015bbe2], 0
mov rcx, rbx
je 0x140001ece
call fcn.1400023f0
jmp 0x140001f31
call fcn.1400025d0
jmp 0x140001f31
cmp byte [0x14015bbe2], 0
je 0x140001eec
lea rcx, [rsp + 0x20]
call fcn.1400795a8
test al, al
je 0x140001f1d
lea rcx, [rsp + 0x20]
call fcn.14008ed70
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001f1d
test al, 0x10
jne 0x140001f1d
lea rdx, [rsp + 0x20]
lea rcx, [0x140181400]
call fcn.140040370
jmp 0x140001f31
mov r8b, 1
lea rdx, [rsp + 0x20]
lea rcx, [0x140181400]
call fcn.14003d390
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400f3220
add rsp, 0x1030
pop rbx
ret
Function at 0x1400094d8
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1400f31b0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x10b0], rdi
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0xf80], rax
xor ebx, ebx
cmp qword [0x140173d40], rbx
je 0x140009769
xor r9d, r9d
mov r8b, 1
lea rdx, [0x140172d0a]
lea rdi, [0x14017e620]
mov rcx, rdi
call fcn.140005d54
cmp eax, 1
jne 0x140009769
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rbx
mov eax, dword [0x14016b7b0]
add eax, 0xfffffffd
mov r9b, 1
lea r8, [rsp + 0x30]
mov rcx, rdi
cmp eax, 1
jbe 0x140009589
lea rdx, [rsp + 0x38]
call fcn.140005240
jmp 0x140009593
lea rdx, [rsp + 0x40]
call fcn.140005350
cmp qword [rsp + 0x30], rbx
je 0x140009769
mov edi, 0x800
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [0x140173d10]
call fcn.14008f134
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009604
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
movabs r9, 0x7fffffff7fffffff
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [0x140167790]
call fcn.1400917e0
cmp eax, 6
ja 0x140009604
mov ecx, 0x4a
bt ecx, eax
jae 0x140009604
mov rcx, qword [rsp + 0x38]
jmp 0x140009764
lea rdx, [0x140111b28]
lea rcx, [rbp - 0x80]
call fcn.14006a1b0
mov rdi, rax
test rax, rax
jne 0x14000963b
mov ecx, 0x1f6
call fcn.140088ebc
mov rdx, rax
lea r8, [rbp - 0x80]
lea rcx, [0x140172d0a]
call fcn.1400ccda8
jmp 0x1400095fa
mov eax, dword [0x14016b7b0]
cmp eax, 3
jne 0x14000969d
mov rdx, rdi
mov ecx, 0xff
call fcn.1400fa4d8
mov rdx, rdi
mov ecx, 0xfe
call fcn.1400fa4d8
cmp qword [rsp + 0x30], rbx
jbe 0x14000974d
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax + rbx*2]
mov rdx, rdi
call fcn.1400fa4d8
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + rbx*2 + 1]
mov rdx, rdi
call fcn.1400fa4d8
inc rbx
cmp rbx, qword [rsp + 0x30]
jb 0x14000966b
jmp 0x14000974d
cmp eax, 4
jne 0x14000971e
mov rdx, rdi
mov ecx, 0xef
call fcn.1400fa4d8
mov rdx, rdi
mov ecx, 0xbb
call fcn.1400fa4d8
mov rdx, rdi
mov ecx, 0xbf
call fcn.1400fa4d8
mov rdx, qword [rsp + 0x30]
shl rdx, 2
lea rcx, [rsp + 0x50]
call fcn.140008060
nop
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140091e30
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x1400096f8
mov r9, rdi
mov edx, 1
mov rcx, rsi
call fcn.1400fa838
nop
lea rcx, [rsp + 0x50]
call fcn.14000808c
jmp 0x14000974d
cmp eax, 2
jne 0x140009736
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
call qword [sym.imp.USER32.dll_CharToOemBuffA]
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400fa838
mov rcx, rdi
call fcn.1400fa46c
mov rcx, qword [rsp + 0x38]
call fcn.1400f2e7c
mov rcx, qword [rsp + 0x40]
call fcn.1400f2e7c
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1400f3220
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000a374
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x830
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x820], rax
xor ebp, ebp
mov rdi, rcx
mov word [rcx], bp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rax
mov ebx, ebp
call fcn.14008e724
mov rsi, rax
test rax, rax
je 0x14000a423
test ebx, ebx
jne 0x14000a3d3
mov ebx, 1
jmp 0x14000a400
movzx edx, word [rsp + 0x20]
lea rcx, [0x140167790]
call fcn.14005c95c
test al, al
jne 0x14000a400
cmp ebx, 1
jne 0x14000a3fe
movzx eax, word [rsp + 0x20]
mov word [rdi], ax
movzx eax, word [rsp + 0x22]
mov word [rdi + 2], ax
inc ebx
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14008e724
mov rsi, rax
test rax, rax
jne 0x14000a3c8
cmp ebx, 2
jne 0x14000a423
mov word [rdi], bp
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400f3220
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f314
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rsi, rdx
mov bpl, cl
cmp dword [0x14015bc40], 0
jne 0x14000f4ba
lea r8, str.WinRAR_DragDrop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000f383
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x5b9
call fcn.140088ebc
mov rcx, rax
call fcn.1400cc528
jmp 0x14000f4ba
mov ebx, 0x10
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [0x140154f0a], al
mov ecx, ebx
call fcn.1400f2e40
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14000f3c2
lea rax, [0x140112828]
mov qword [rbx], rax
mov dword [rbx + 8], 1
jmp 0x14000f3c4
xor ebx, ebx
mov ecx, 0xd960
call fcn.1400f2e40
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14000f3ee
xor r9d, r9d
mov r8, rsi
mov dl, bpl
mov rcx, rax
call fcn.14000e5c0
mov rsi, rax
jmp 0x14000f3f0
xor esi, esi
mov qword [0x140154f10], rsi
mov byte [0x140154f09], 0
mov byte [0x140154f08], 1
mov byte [0x140154f0b], 0
lea r9, [rsp + 0x60]
mov r8d, 3
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ole32.dll_DoDragDrop]
mov ebp, eax
mov byte [0x140154f08], 0
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
cmp byte [0x140154f0a], 0
je 0x14000f469
cmp byte [0x14015bbe2], 0
je 0x14000f469
cmp ebp, 0x40100
jne 0x14000f469
call fcn.1400d43e8
lea rcx, [0x140181400]
call fcn.140043244
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbp - 0x40100]
cmp eax, 1
jbe 0x14000f4ba
cmp byte [0x140154f0b], 0
jne 0x14000f4ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x14000f4ba
mov ecx, 0x53c
call fcn.140088ebc
mov rcx, rax
call fcn.1400cc528
lea rcx, [0x14018fe18]
call fcn.1400633cc
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010008
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2f60]
mov eax, 0x3060
call fcn.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov sil, dl
mov rdi, rcx
call fcn.14006c97c
cmp eax, 0x600
jb 0x1400101bb
mov rcx, rdi
call fcn.1400c6cf4
xor ebx, ebx
test al, al
jne 0x1400101bb
mov r14d, 0x800
lea r8, [rsp + 0x50]
mov r9d, r14d
lea rcx, [0x140181400]
mov rdx, rdi
call fcn.14003fac8
mov r8d, r14d
lea rdx, [rbp + 0xf50]
lea rcx, [rsp + 0x50]
call fcn.1400790ac
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400101bb
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0xf50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400100ee
mov eax, dword [rsp + 0x40]
and eax, 0x80008
cmp eax, 8
jne 0x1400101bb
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140010121
test al, 0x10
jne 0x140010121
lea rcx, [rsp + 0x50]
call fcn.14000fe58
and eax, 6
cmp al, 6
jne 0x1400101b7
lea rcx, [rsp + 0x50]
call fcn.140079cb0
lea rcx, [rsp + 0x50]
mov dil, bl
call fcn.140069278
test al, al
jne 0x140010188
mov dil, 1
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1f50]
call fcn.14008eff0
lea rcx, [rsp + 0x50]
call fcn.140079cb0
lea rax, [rsp + 0x50]
lea r8, [rbp + 0x1f50]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140010176
add rax, 2
test edx, edx
jne 0x140010162
test ecx, ecx
je 0x140010188
lea rcx, [rsp + 0x50]
call fcn.140069278
test al, al
je 0x140010135
lea rcx, [rsp + 0x50]
call fcn.14000fe58
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x1400101ae
test dil, dil
je 0x1400101aa
test sil, sil
je 0x1400101b3
test cl, cl
jne 0x1400101b3
mov ebx, 1
mov al, bl
jmp 0x1400101bd
mov al, 1
jmp 0x1400101bd
xor al, al
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.1400f3220
lea r11, [rsp + 0x3060]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001142c
Capabilities:
Delete file
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1fb8]
mov eax, 0x20b0
call fcn.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
xor r9d, r9d
mov rdi, rcx
mov rcx, qword [rcx]
mov edx, 0x110a
lea r8d, [r9 + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
test rax, rax
je 0x140011571
mov rcx, qword [rdi]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov edx, 0x113e
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140011571
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140011571
mov rcx, qword [rcx + 0x10]
lea rdx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140011571
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r8d, 0x800
lea rdx, [rbp - 0x70]
movzx ebx, ax
lea rcx, [rbp + 0xf90]
shr ebx, 0xf
not bl
and bl, 1
call fcn.14008eff0
lea rax, [rbp + 0xf90]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140011507
lea rcx, [rcx*2 + 2]
cmp rcx, 0x1002
jae 0x140011599
xor edx, edx
mov word [rbp + rcx + 0xf90], si
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x38]
call fcn.1400f4420
neg bl
mov dword [rsp + 0x28], 3
lea rcx, [rsp + 0x20]
sbb ax, ax
and ax, 0x40
mov word [rsp + 0x40], ax
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dl, byte [rdi + 0x10]
mov rcx, rdi
call fcn.1400130e8
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.1400f3220
lea r11, [rsp + 0x20b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400f2f8c
int3
Function at 0x140011dd8
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0x4009
mov rdi, r8
mov rcx, rbx
mov r9d, 0x2b8
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rdi + 0x24], eax
xor edx, edx
mov dword [rsp + 0x20], 0x400b
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x28], eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret
Function at 0x140012e90
Capabilities:
Get file system object information

Disassembly:
push rbx
mov eax, 0x1300
call fcn.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x12f0], rax
mov qword [rcx], rdx
lea r8, [rsp + 0x30]
mov rbx, rcx
mov dword [rsp + 0x20], 0x4001
xor edx, edx
lea rcx, [0x140111974]
mov r9d, 0x2b8
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140012f16
xor r8d, r8d
lea rcx, [rsp + 0x2f0]
mov edx, 0x800
call fcn.1400c6af8
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rbx]
mov r9, rax
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x12f0]
xor rcx, rsp
call fcn.1400f3220
add rsp, 0x1300
pop rbx
ret

Function at 0x140014118
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea rdi, [rcx + 0x1042]
mov byte [rcx + 0x40], sil
lea r9, [rsp + 0x30]
mov word [rdi], si
mov rbx, rcx
mov rdx, qword [rcx + 8]
lea r8, [rdx + 0x5030]
add rdx, 0xb57a
call fcn.1400141b8
test al, al
jne 0x14001417a
cmp byte [rsp + 0x30], sil
jne 0x1400141a6
mov rdx, qword [rbx + 8]
lea rcx, [0x14018fe18]
add rdx, 0xb57a
call fcn.1400632bc
jmp 0x1400141a6
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 8]
call fcn.140013e1c
mov rcx, rbx
call fcn.14001398c
cmp byte [rbx + 0x40], sil
je 0x1400141a6
cmp word [rdi], si
je 0x1400141a6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014360
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov r8, rcx
cmp byte [rcx + 0x20], bl
je 0x14001439f
mov qword [rdx], rbx
cmp dword [rcx + 0x30], ebx
jbe 0x1400143d4
mov rcx, qword [r8 + 0x28]
mov edx, ebx
inc ebx
add rdx, rdx
mov rdx, qword [rcx + rdx*8 + 8]
add qword [rdi], rdx
cmp ebx, dword [r8 + 0x30]
jb 0x140014384
jmp 0x1400143d4
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400143c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400143c3
xor al, al
jmp 0x1400143d6
mov ecx, dword [rsp + 0x30]
mov rax, rsi
shl rcx, 0x20
add rcx, rsi
mov qword [rdi], rcx
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1058
call fcn.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
or r12, 0xffffffffffffffff
mov dword [rsp + 0x30], r9d
mov rdi, r12
xor r15d, r15d
mov r14d, r9d
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
inc rdi
cmp word [rdx + rdi*2], r15w
jne 0x1400151c7
cmp rdi, 7
jbe 0x1400153b0
lea rcx, [rdx - 0xe]
lea rcx, [rcx + rdi*2]
lea rdx, str..7z.001
call fcn.1400fa8bc
test eax, eax
jne 0x1400153b0
mov dword [rbx + 0x30], r15d
lea esi, [rax + 1]
lea rdi, [rdi*2 - 6]
mov r8d, 0x800
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.14008eff0
cmp rdi, 0x1000
jae 0x1400153fe
mov word [rsp + rdi + 0x40], r15w
lea rcx, [rsp + 0x40]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140015234
lea rcx, [rsp + 0x40]
mov r8d, esi
lea rcx, [rcx + rax*2]
lea rdx, str._03d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001526a
inc dword [rbx + 0x30]
inc esi
cmp esi, 0x3e8
jb 0x140015206
cmp dword [rbx + 0x30], 1
jbe 0x1400153b0
mov rcx, qword [rbx + 0x28]
call fcn.1400f2e7c
mov ecx, dword [rbx + 0x30]
mov eax, 0x10
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400f32c4
mov qword [rbx + 0x28], rax
mov esi, r15d
cmp dword [rbx + 0x30], r15d
jbe 0x14001536d
mov r12d, dword [rsp + 0x10c0]
mov r8d, 0x800
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.14008eff0
cmp rdi, 0x1000
jae 0x1400153f8
or rax, 0xffffffffffffffff
mov word [rsp + rdi + 0x40], r15w
xor ecx, ecx
lea r15d, [rsi + 1]
lea rdx, [rsp + 0x40]
inc rax
cmp word [rdx + rax*2], cx
jne 0x1400152ec
lea rcx, [rsp + 0x40]
mov r8d, r15d
lea rcx, [rcx + rax*2]
lea rdx, str._03d
call qword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov r14d, esi
mov byte [rbx + 8], al
lea rdx, [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov r9d, r13d
shl r14, 4
mov r8d, 0x80000000
add r14, qword [rbx + 0x28]
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
call fcn.140013a18
xor ecx, ecx
test al, al
je 0x140015380
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + 8]
mov rcx, rbx
mov qword [r14], rax
call fcn.140014360
cmp r15d, dword [rbx + 0x30]
mov esi, r15d
mov r15d, 0
jb 0x1400152b7
mov rcx, qword [rbx + 0x28]
mov al, 1
mov rdx, qword [rcx]
mov qword [rbx + 0x10], rdx
mov byte [rbx + 0x20], 1
jmp 0x1400153d4
test esi, esi
je 0x14001539f
mov rdi, rcx
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rdi + 0x10]
sub rsi, 1
jne 0x140015387
mov rcx, qword [rbx + 0x28]
call fcn.1400f2e7c
xor eax, eax
mov qword [rbx + 0x28], rax
jmp 0x1400153d4
mov eax, dword [rsp + 0x10c0]
mov r9d, r13d
mov dword [rsp + 0x28], eax
mov r8d, 0x80000000
mov rdx, rbp
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140013a18
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400f3220
add rsp, 0x1058
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400f2f8c
int3
call fcn.1400f2f8c
int3
Function at 0x1400159a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
cmp byte [rcx + 0x20], 0
mov eax, r8d
mov rbx, rcx
je 0x140015a91
mov ecx, dword [rcx + 0x30]
xor edi, edi
test ecx, ecx
je 0x1400159f4
mov r8, qword [rbx + 0x28]
mov r9, qword [rbx + 0x10]
mov eax, edi
add rax, rax
cmp r9, qword [r8 + rax*8]
je 0x1400159ed
inc edi
cmp edi, ecx
jb 0x1400159dc
mov eax, dword [rsp + 0x80]
cmp edi, ecx
jb 0x1400159ff
xor al, al
jmp 0x140015aa6
xor ebp, ebp
mov esi, edi
test eax, eax
je 0x140015a83
mov rax, qword [rbx + 0x28]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rax + rcx*8]
mov qword [rbx + 0x10], rcx
mov byte [rbx + 0x20], 0
cmp esi, edi
jbe 0x140015a37
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140015c28
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x80]
lea r9, [rsp + 0x70]
and dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.1400159a4
mov byte [rbx + 0x20], 1
test al, al
je 0x1400159f8
mov ecx, dword [rsp + 0x70]
inc esi
mov rdx, qword [rsp + 0x78]
add ebp, ecx
mov eax, dword [rsp + 0x80]
add rdx, rcx
sub eax, ecx
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x80], eax
cmp esi, dword [rbx + 0x30]
jb 0x140015a03
mov rcx, qword [rsp + 0x88]
mov al, 1
mov dword [rcx], ebp
jmp 0x140015aa6
mov rcx, qword [rcx + 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140015ed4
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140015c28
test al, al
jne 0x140015efe
xor al, al
jmp 0x140015f14
cmp qword [rsp + 0x40], rdi
jne 0x140015efa
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140016198
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebp, r8d
mov rsi, rdx
add qword [rcx + 0x40], rbp
mov rbx, rcx
mov r10, qword [rcx + 0x40]
mov dil, 1
je 0x1400161e5
mov rcx, qword [rcx + 0x48]
cmp r10, rcx
jae 0x1400161e5
mov rax, qword [rbx + 0x18]
and qword [rax + 0x28], 0
and qword [rax + 0x30], 0
mov qword [rax + 0x18], r10
mov qword [rax + 0x20], rcx
mov byte [rax + 0x38], dil
cmp byte [rbx + 9], 0
je 0x1400161f0
mov dword [r9], r8d
jmp 0x140016206
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
mov rcx, qword [rbx + 0x18]
mov r8, rbp
mov rdx, rsi
mov rcx, qword [rcx + 8]
call fcn.14001afb4
mov rbx, qword [rsp + 0x40]
mov al, dil
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret