joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400430c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140062ac0
sub rsp, rax
mov rax, qword [0x140089040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14008bb40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400432b2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140043206
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140043206
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400431eb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140043188
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043272
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400432d1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1400432ad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400432d1
jmp 0x14004315e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400077e0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400432f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140062ac0
sub rsp, rax
mov rax, qword [0x140089040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14008bb40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400434fd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140043449
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140043449
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140043429
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400433b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400434bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14004351c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400434f8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14004351c
jmp 0x14004338e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400077e0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14004adf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14004fcc0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000e350
lea rcx, [rsp + 0x40]
call fcn.14004fc80
movzx eax, al
test eax, eax
jne 0x14004fd08
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14004fbb0
mov rax, qword [rsp + 0x70]
jmp 0x14004fed9
lea rcx, [rsp + 0x40]
call fcn.14000e3c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14004fc30
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14000e3c0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14004fa80
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14004fdae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14004fbb0
mov rax, qword [rsp + 0x80]
jmp 0x14004fed9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14002fe90
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000e350
lea rcx, [rsp + 0x48]
call fcn.14000eaa0
movzx eax, al
test eax, eax
jne 0x14004fe15
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14000ea80
lea rcx, [rsp + 0x40]
call fcn.14004fbb0
mov rax, qword [rsp + 0x88]
jmp 0x14004fed9
lea rcx, [rsp + 0x48]
call fcn.14000e3c0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14000e3c0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14004fa80
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14004feab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14000ea80
lea rcx, [rsp + 0x40]
call fcn.14004fbb0
mov rax, qword [rsp + 0xa0]
jmp 0x14004fed9
lea rcx, [rsp + 0x48]
call fcn.1400107e0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14000ea80
lea rcx, [rsp + 0x40]
call fcn.14004fbb0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14005fe10
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14003bf10
lea rcx, [rsp + 0x48]
call fcn.14003bf10
call fcn.14004aae0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14003be00
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14005fe7f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14003bfa0
lea rcx, [rsp + 0x78]
call fcn.14003bfa0
mov eax, dword [rsp + 0x24]
jmp 0x14005ff10
call fcn.14004aae0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14003be00
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14005fec6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14003bfa0
lea rcx, [rsp + 0x78]
call fcn.14003bfa0
mov eax, dword [rsp + 0x2c]
jmp 0x14005ff10
lea rcx, [rsp + 0x48]
call fcn.14003c2d0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14003c2d0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14003bfa0
lea rcx, [rsp + 0x78]
call fcn.14003bfa0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140003b00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov dil, dl
movzx ebx, cl
call fcn.140011088
test al, al
je 0x140003c98
lea rdx, str.RarExtPackage.msix
lea rcx, [rbp - 0x19]
call fcn.140001b9c
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14000ab00
nop
lea rcx, [rbp - 0x19]
call fcn.140002050
lea rcx, [rbp + 7]
call fcn.1400085e0
test al, al
je 0x140003c8f
lea rdx, str.RarExtInstaller.exe
lea rcx, [rbp - 0x19]
call fcn.140001b9c
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.14000ab00
nop
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.140006a24
nop
lea rcx, [rbp + 0x27]
call fcn.140002050
nop
lea rcx, [rbp - 0x19]
call fcn.140002050
lea rcx, [rbp + 7]
call fcn.1400085e0
test al, al
je 0x140003c8f
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140016470
mov dword [rsp + 0x20], 0x70
test bl, bl
jne 0x140003be2
or dword [rsp + 0x24], 0x40
lea rcx, [rbp + 7]
call fcn.1400018c0
mov qword [rbp - 0x71], rax
lea rax, str._install__extall
lea rcx, str._install
test dil, dil
cmovne rcx, rax
lea rax, str._Uninstall
test bl, bl
cmovne rax, rcx
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140003c48
test bl, bl
jne 0x140003c48
mov edx, 0x4e20
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.NewContextMenu
lea rcx, [rbp + 0x27]
call fcn.140001b9c
nop
lea rdx, str.Setup
lea rcx, [rbp - 0x19]
call fcn.140001b9c
nop
mov r8d, ebx
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x19]
call fcn.140010440
nop
lea rcx, [rbp - 0x19]
call fcn.140002050
nop
lea rcx, [rbp + 0x27]
call fcn.140002050
nop
lea rcx, [rbp + 7]
call fcn.140002050
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400143a0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400061b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
lea rax, str.unknown_folder
test ebx, ebx
cmovne rdx, rax
call fcn.1400011f8
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x140006230
Capabilities:
Get common file path

Disassembly:
mov edx, 0x10
jmp fcn.1400061b4
Function at 0x14000623c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
call fcn.140008610
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400062d9
call fcn.1400085f4
test al, al
je 0x1400062d9
call fcn.140008604
test al, al
jne 0x1400062d9
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400071c0
nop
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.140006958
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x58], 3
mov eax, 0x14
mov word [rbp - 0x40], ax
lea rcx, [rbp - 0x28]
call fcn.1400018c0
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
lea rcx, [rbp - 0x28]
call fcn.140002050
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x140007274
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x140046994], 0
jne 0x1400072c2
xor r8d, r8d
lea r9, [0x140046990]
mov r10d, r8d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
test cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140007290
mov dword [r9], r10d
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x140007287
ret

Function at 0x1400072c4
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
call fcn.140007274
lea rcx, [0x140046d90]
mov r8d, 0x100
mov edx, dword [rcx - 0x400]
mov r9, rcx
mov r10d, 0xf
movzx eax, dl
lea r11, [0x140046990]
shr edx, 8
xor edx, dword [r11 + rax*4]
mov dword [r9], edx
lea r9, [r9 + 0x400]
sub r10, 1
jne 0x1400072e9
add rcx, 4
sub r8, 1
jne 0x1400072da
add rsp, 0x28
ret

Function at 0x140007a00
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140007a37
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140007a23
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140032580]
cmp byte [rbx + 0x21], 0
je 0x140007a37
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.140008728
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140007a40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
xor edi, edi
test r8, r8
jne 0x140007a7c
mov al, 1
jmp 0x140007bfe
lea r15, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140007a99
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r15], rax
mov rdx, qword [rsp + 0x38]
mov bpl, dil
mov dword [rsp + 0x30], edi
cmp dword [rsi + 0x14], edi
je 0x140007af8
mov rbx, rdi
test r14, r14
je 0x140007b1d
mov rcx, r14
sub rcx, rbx
mov eax, r14d
sub eax, ebx
mov r8d, 0x4000
cmp rcx, r8
cmovb r8d, eax
add rdx, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140007b14
add rbx, 0x4000
cmp rbx, r14
mov rdx, qword [rsp + 0x38]
jb 0x140007aad
jmp 0x140007b14
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140007bf7
cmp byte [rsi + 0x22], dil
je 0x140007bf7
cmp dword [rsi + 0x14], edi
jne 0x140007bf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x28]
mov rcx, rsi
call qword [0x140032580]
mov r12, rax
lea rcx, [rsi + 0x40]
call fcn.14000853c
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r14
jbe 0x140007b87
mov rcx, r12
sub rcx, r14
mov r8d, 0xffffffff
cmp rcx, r8
ja 0x140007b87
lea rax, [r14 + r12]
cmp rax, r8
jbe 0x140007b87
lea rdx, [rsi + 0x40]
call fcn.1400073c0
call fcn.1400023fc
xor edi, edi
test al, al
je 0x140007bdb
mov ecx, dword [rsp + 0x30]
cmp rcx, r14
mov rdx, qword [rsp + 0x38]
jae 0x140007a99
test ecx, ecx
je 0x140007a99
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [0x140032580]
mov rdx, rax
mov eax, dword [rsp + 0x30]
sub rdx, rax
xor r8d, r8d
mov rcx, rsi
mov rax, qword [rbx + 0x20]
call qword [0x140032580]
jmp 0x140007a94
lea rdx, [0x14003adb0]
lea rcx, [rsp + 0x40]
call fcn.140001b9c
nop
lea rcx, [rsp + 0x40]
call fcn.140002050
mov byte [rsi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007db0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140007de2
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140007e5f
mov rcx, rbx
call fcn.140008124
test al, al
je 0x140007e25
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140007e25
mov rdx, rbp
mov rcx, rbx
call fcn.140007db0
jmp 0x140007e63
cmp dword [rbx + 0x14], 1
jne 0x140007e3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140007e3a
xor eax, eax
jmp 0x140007e63
cmp dword [rbx + 0x14], 0
jne 0x140007e5a
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140007e5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140007e5a
mov r8d, edi
jmp 0x140007e18
or eax, 0xffffffff
jmp 0x140007e63
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000844c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
call fcn.14000a2c8
cmp ax, 0x2e
je 0x14000849b
cmp ax, 0x20
je 0x14000849b
mov rcx, rsi
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
xor ebx, ebx
test eax, eax
jne 0x1400084ec
jmp 0x14000849f
xor ebx, ebx
mov edi, ebx
mov rcx, rsi
call fcn.1400085e0
test al, al
jne 0x1400084f0
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000a7ac
test al, al
je 0x1400084de
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.140002050
test edi, edi
je 0x1400084f0
xor eax, eax
jmp 0x14000850b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140008506
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000850b
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000853c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
lea rcx, [rbp - 0x28]
call fcn.1400024c0
nop
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.14000a460
xor ebx, ebx
mov qword [rbp - 0x40], rbx
lea rcx, [rbp - 0x28]
call fcn.14000694c
test al, al
je 0x140008587
mov eax, ebx
jmp 0x140008590
lea rcx, [rbp - 0x28]
call fcn.1400018c0
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400085bd
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x1400085bd
mov ebx, eax
shl rbx, 0x20
mov eax, dword [rbp - 0x40]
add rbx, rax
lea rcx, [rbp - 0x28]
call fcn.140002050
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000867c
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x140008672
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140002050
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140008698
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14000870d
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x140008703
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008728
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140008799
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x14000878f
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400087b4
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x140008825
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a7ac
test al, al
je 0x14000881b
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400143a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret