joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dd64
Capabilities:
Create directory

Disassembly:
jmp 0x14001dd64
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140031e48]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rdi, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, rbx
jbe 0x14001ddd1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov edx, 0x2f
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14001ddd1
lea rdx, [rsp + 0x20]
mov byte [rax], 0
mov ecx, ebx
call fcn.14000124e
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001203
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret

Function at 0x14001de8c
Capabilities:
Terminate process

Disassembly:
jmp 0x14001de8c
push rbx
sub rsp, 0x20
test rcx, rcx
lea rbx, str.corrupt_pack_file_or_internal_error
mov rax, rdx
cmovne rbx, rcx
test rdx, rdx
jne 0x14001ded4
call fcn.14000102d
test rax, rax
jne 0x14001ded4
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error:_unpacker:__s_n
mov rcx, rax
call fcn.140001384
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400012c1

Function at 0x14001e690
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e690
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140031e48]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001e6cc
cmp edi, dword [rcx + 0xc]
jne 0x14001e6c3
mov eax, dword [rcx + 0x10]
jmp 0x14001e778
cmp dword [rcx + 8], 0
jne 0x14001e6cc
mov dword [rcx + 8], edi
xor edx, edx
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
mov rdx, rax
test rax, rax
jne 0x14001e715
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call fcn.140001384
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov ecx, 0x7bc
mov eax, dword [rax + 0x14]
add eax, 0x76c
cmp eax, ecx
jge 0x14001e74d
and dword [rsp + 0x30], 0
mov r9d, 1
and dword [rsp + 0x28], 0
mov edx, ecx
and dword [rsp + 0x20], 0
mov r8d, r9d
mov rcx, rbx
call fcn.14000118b
jmp 0x14001e775
mov ecx, dword [rdx + 0x10]
add eax, 0xffffffc4
shl eax, 9
inc ecx
or eax, dword [rdx + 0xc]
shl eax, 5
or eax, dword [rdx + 8]
shl eax, 6
or eax, dword [rdx + 4]
shl ecx, 0x15
shl eax, 5
or eax, ecx
mov ecx, dword [rdx]
shr ecx, 1
or eax, ecx
mov dword [rbx + 0x10], eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001203
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x14001e888
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e888
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001e8dc
lea rdx, [0x14002e3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001e8dc
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_Could_not_open_jar_file:__s_n
mov r8, rdi
mov rcx, qword [rcx + 0xc0]
call fcn.140001384
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ee50
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001ee50
test r8d, r8d
jle 0x14001eea3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov r9, qword [rdi]
mov edx, 1
movsxd r8, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test eax, eax
jle 0x14001eea4
add dword [rdi + 0x34], eax
sub ebx, eax
movsxd rcx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001ee6d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov r8d, dword [rax]
mov rcx, qword [rcx + 0xc0]
call fcn.140001384
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001564
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1080
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000161d
mov ecx, eax
call fcn.140005164
xor esi, esi
test al, al
je 0x14000161d
mov ecx, ebx
call fcn.140005174
test al, al
jne 0x14000161d
mov r8d, 0x800
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140008b00
lea rcx, [rsp + 0x60]
call fcn.140011510
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140001642
xor edx, edx
mov word [rsp + rax + 0x60], si
lea r8d, [rsi + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000d710
lea eax, [rsi + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000c700
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000c3f4
int3

Function at 0x14000169c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov eax, r8d
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x104
jb 0x1400016dc
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, eax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400016dc
mov bl, 1
jmp 0x1400016ee
mov r8, rdi
lea rdx, str.unknown_folder
mov rcx, rsi
call fcn.140008b00
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001a78
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdi, [0x1400249b8]
mov rbx, rcx
mov rdx, rdi
lea rcx, str.Setup.rar
call fcn.14000a694
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lz
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0xe]
lea rcx, str.Setup.xz
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0xf]
lea rcx, str.Setup.zipx
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x10]
lea rcx, str.Setup.zst
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x11]
lea rcx, str.Setup.001
mov rdx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
mov rcx, rdi
lea rdx, str.Desktop
call fcn.14000a694
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
mov rcx, rdi
lea rdx, str.ShellExt
call fcn.14000a694
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
call fcn.14000a694
movzx r8d, byte [rbx + 0x1a]
lea rdx, str.LegacyMenu
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000a694
Function at 0x1400029f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rbp + 0xf90], rax
movzx ebx, cl
lea rdx, [rbp - 0x70]
xor ecx, ecx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x800
lea rdx, str.RarExtPackage.msix
lea rcx, [rbp - 0x70]
call fcn.1400069f8
lea rcx, [rbp - 0x70]
call fcn.14000503c
test al, al
je 0x140002b0c
mov r8d, 0x800
lea rdx, str.RarExtInstaller.exe
lea rcx, [rbp - 0x70]
call fcn.1400069f8
lea rcx, [rbp - 0x70]
call fcn.14000503c
test al, al
je 0x140002b0c
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.14000d710
mov dword [rsp + 0x20], 0x70
test bl, bl
jne 0x140002aa0
or dword [rsp + 0x24], 0x40
lea rax, [rbp - 0x70]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], rax
lea rcx, str._install
test bl, bl
lea rax, str._Uninstall
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140002af6
test bl, bl
jne 0x140002af6
mov rcx, qword [rbp - 0x78]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
lea rdx, str.NewContextMenu
lea rcx, str.Setup
call fcn.14000a694
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.14000c700
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x10a0
pop rbp
ret
Function at 0x14000331c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov rbx, rdx
mov edx, 0x13ed
mov rsi, rcx
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 1]
mov edx, 0x13ee
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 2]
mov edx, 0x13ef
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 3]
mov edx, 0x13f0
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 4]
mov edx, 0x13fb
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 5]
mov edx, 0x13f1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 6]
mov edx, 0x13f2
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 7]
mov edx, 0x13f3
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 8]
mov edx, 0x13f4
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 9]
mov edx, 0x13f5
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xa]
mov edx, 0x13f6
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xb]
mov edx, 0x13f7
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xc]
mov edx, 0x13f8
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xd]
mov edx, 0x13fa
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xe]
mov edx, 0x13f9
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xf]
mov edx, 0x13fc
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x10]
mov edx, 0x13fd
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x11]
mov edx, 0x13fe
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x14]
mov edx, 0x13ff
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x15]
mov edx, 0x1400
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x16]
mov edx, 0x1401
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x17]
mov edx, 0x1402
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x18]
mov edx, 0x1403
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x19]
mov edi, 0x1404
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x1a]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov r8b, byte [rbx + 0x17]
lea edx, [rdi - 1]
mov rcx, rsi
call fcn.1400010c0
mov r8b, byte [rbx + 0x17]
mov edx, edi
mov rcx, rsi
call fcn.1400010c0
xor edi, edi
cmp byte [rbx + 0x17], dil
je 0x140003539
call fcn.140005f0c
test al, al
je 0x140003539
mov dil, 1
mov r8b, dil
mov edx, 0x1405
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400010c0
Function at 0x140003e58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140003e9f
xor r9d, r9d
mov r10d, r9d
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 0x140003e6d
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140003e64
ret

Function at 0x140004664
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000469b
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140004687
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140024560]
cmp byte [rbx + 0x21], 0
je 0x14000469b
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.140004fb8
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400046a4
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 0x1400046d6
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 0x140004753
mov rcx, rbx
call fcn.1400047e0
test al, al
je 0x140004719
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140004719
mov rdx, rbp
mov rcx, rbx
call fcn.1400046a4
jmp 0x140004757
cmp dword [rbx + 0x14], 1
jne 0x14000472e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000472e
xor eax, eax
jmp 0x140004757
cmp dword [rbx + 0x14], 0
jne 0x14000474e
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000474e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000474e
mov r8d, edi
jmp 0x14000470c
or eax, 0xffffffff
jmp 0x140004757
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 0x140004dd8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov rsi, rcx
test r8, r8
jne 0x140004e05
mov al, 1
jmp 0x140004fa1
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x140004e22
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov rdx, qword [rsp + 0x78]
mov r15b, dil
mov dword [rsp + 0x80], edi
cmp dword [rsi + 0x14], edi
je 0x140004e85
mov rbx, rdi
test rbp, rbp
je 0x140004eae
mov r8d, 0x4000
mov qword [rsp + 0x20], rdi
mov eax, ebp
lea r9, [rsp + 0x80]
sub eax, ebx
mov rcx, rbp
sub rcx, rbx
cmp rcx, r8
mov rcx, qword [r14]
cmovb r8d, eax
add rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r15b
jne 0x140004ea5
mov rdx, qword [rsp + 0x78]
add rbx, 0x4000
cmp rbx, rbp
jb 0x140004e39
jmp 0x140004ea5
mov rcx, qword [r14]
lea r9, [rsp + 0x80]
mov r8d, ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r15b
test r15b, r15b
jne 0x140004f9a
cmp byte [rsi + 0x22], dil
je 0x140004f9a
cmp dword [rsi + 0x14], edi
jne 0x140004f9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
mov edi, eax
mov rax, qword [rcx + 0x28]
mov rcx, rsi
call qword [0x140024560]
lea r12, [rsi + 0x3a]
mov r13, rax
mov rcx, r12
call fcn.1400050cc
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x140004f22
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x140004f22
mov rax, rbp
add rax, r13
cmp rax, rbx
jbe 0x140004f22
mov rdx, r12
lea rcx, [0x140036700]
call fcn.14000422c
xor r8d, r8d
lea rcx, [0x140036700]
mov rdx, r12
call fcn.14000401c
xor edi, edi
test al, al
je 0x140004f89
mov ecx, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
cmp rcx, rbp
jae 0x140004e22
test ecx, ecx
je 0x140004e22
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [0x140024560]
mov ecx, dword [rsp + 0x80]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x140024560]
jmp 0x140004e1d
mov r8, r12
lea rcx, [0x140036700]
xor edx, edx
call fcn.140004190
mov byte [rsi + 0x10], 1
mov al, r15b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140004fb8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140005016
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140006618
test al, al
je 0x140005016
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c700
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x140005050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400050a9
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140006618
test al, al
je 0x1400050a9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c700
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400050cc
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r8d, 0x800
lea rdx, [rsp + 0x40]
call fcn.1400064d4
movzx eax, word [rsp + 0x40]
lea r9, [rsp + 0x28]
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140005148
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x140005148
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000514a
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000c700
add rsp, 0x1058
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.140006944
xor ebx, ebx
cmp word [rax], 0x2e
je 0x1400051d2
cmp word [rax], 0x20
je 0x1400051d2
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005207
mov rcx, rdi
call fcn.140005050
cmp eax, 0xffffffff
jne 0x14000521a
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140006618
test al, al
je 0x14000521a
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000521a
test sil, sil
je 0x140005216
mov edx, ebp
mov rcx, rdi
call fcn.140005258
xor eax, eax
jmp 0x140005235
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005230
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140005235
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c700
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005258
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x1400052bf
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140006618
test al, al
je 0x1400052bf
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c700
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005c84
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140005d35
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005d51
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.140006618
test al, al
je 0x140005d0e
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005d51
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140005d28
cmp eax, 0x13
je 0x140005d28
xor al, al
jmp 0x140005d2a
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x140005de6
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140005d51
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140005d2a
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140008b00
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.1400069f8
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1000], rcx
lea rcx, [rdi + 0x1010]
mov qword [rdi + 0x1038], rax
call fcn.140008dbc
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140008dbc
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140008dbc
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.14000c700
add rsp, 0x1280
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140005f0c
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x140036718], bl
jne 0x140005f71
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140005f60
jne 0x140005f62
cmp dword [rsp + 0x2c], 0x55f0
jb 0x140005f62
call fcn.140005f94
test al, al
jne 0x140005f62
mov bl, 1
mov byte [0x140036719], bl
mov byte [0x140036718], 1
jmp 0x140005f77
mov bl, byte [0x140036719]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000c700
add rsp, 0x150
pop rbx
ret