joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140186be0
Capabilities:
List user accounts

Disassembly:
mov r11, rsp
sub rsp, 0x68
cmp dword [0x1404619a0], 0
jne 0x140186dbb
lea rax, [r11 + 0x10]
mov qword [r11 - 8], rbp
xor ebp, ebp
mov dword [0x1404619a0], 1
mov qword [r11 - 0x30], rbp
lea r9, [r11 + 0x18]
mov qword [r11 - 0x38], rax
xor r8d, r8d
lea rax, [r11 + 8]
mov qword [0x140461998], rbp
mov qword [r11 - 0x40], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0xffffffff
mov qword [0x140461988], rbp
mov dword [0x140461990], 8
mov dword [0x140461994], 0x14
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x78], ebp
call qword [sym.imp.NETAPI32.dll_NetUserEnum]
test eax, eax
jne 0x140186db6
mov qword [rsp + 0x88], rbx
mov ebx, ebp
cmp dword [rsp + 0x70], ebp
jbe 0x140186da0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
nop dword [rax + rax]
mov rcx, qword [rsp + 0x80]
xor edx, edx
mov eax, ebx
mov rcx, qword [rcx + rax*8]
call fcn.140321f80
mov rdi, rax
test rax, rax
je 0x140186d80
cmp byte [rax], bpl
je 0x140186d80
mov edx, dword [0x14046198c]
mov ecx, dword [0x140461988]
sub edx, ecx
cmp edx, 1
jge 0x140186d6c
mov eax, ecx
mov r8d, 1
cmp dword [0x140461994], r8d
cdq
cmovg r8d, dword [0x140461994]
sub eax, edx
sar eax, 1
cmp r8d, eax
mov r15d, eax
cmovge r15d, r8d
lea edx, [r15 + rcx]
movsxd rcx, dword [0x140461990]
movsxd rsi, edx
imul rsi, rcx
mov rcx, qword [0x140461998]
mov rdx, rsi
call fcn.140005658
mov r14, rax
test rax, rax
jne 0x140186d2a
mov ecx, dword [0x140461988]
mov eax, ebp
jmp 0x140186d68
movsxd rcx, dword [0x140461990]
xor edx, edx
movsxd rax, dword [0x14046198c]
imul rcx, rax
sub rsi, rcx
add rcx, r14
mov r8, rsi
call fcn.140002810
mov ecx, dword [0x140461988]
mov qword [0x140461998], r14
lea eax, [r15 + rcx]
mov dword [0x14046198c], eax
mov eax, 1
test eax, eax
je 0x140186d80
mov rax, qword [0x140461998]
movsxd rdx, ecx
mov qword [rax + rdx*8], rdi
inc dword [0x140461988]
inc ebx
cmp ebx, dword [rsp + 0x70]
jb 0x140186c90
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rbx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140188670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x20
xor edi, edi
mov r12, r9
cmp dword [0x14045b790], edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x1401886da
lea rcx, str.E145:_Shell_commands_and_some_functionality_not_allowed_in_rvim
call qword [case.0x1400407ae.0]
mov rbx, rax
call fcn.140182a30
test eax, eax
jne 0x1401886bf
mov rcx, rbx
call fcn.140182400
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
call fcn.1400dab00
test eax, eax
jne 0x1401886bf
xor edx, edx
lea ecx, [rax + 0x6f]
call fcn.1401023c0
mov r14, rax
test rax, rax
jne 0x1401886fe
lea rcx, str.E483:_Cant_get_temp_file_name
jmp 0x1401886a5
mov r8, r14
mov rdx, rbx
mov rcx, rbp
call fcn.1400d7290
mov rbx, rax
test rax, rax
je 0x140188881
inc dword [0x14045b798]
or esi, 0xa
mov edx, esi
mov rcx, rax
call fcn.14018ec60
dec dword [0x14045b798]
cmp dword [0x14045b3f8], edi
jne 0x140188741
mov rcx, rbx
call fcn.140005660
lea rdx, [0x1403bf380]
mov qword [rsp + 0x40], r15
mov rcx, r14
call fcn.1401e07e0
mov rbp, rax
test rax, rax
je 0x140188857
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.14000c12c
cmp eax, 0xffffffff
je 0x140188857
mov rcx, rbp
call fcn.1400183c8
movsxd r15, eax
cmp r15d, 0xffffffff
je 0x140188857
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.14000c12c
cmp eax, 0xffffffff
je 0x140188857
lea rcx, [r15 + 1]
mov edx, 1
call fcn.140032b90
mov rdi, rax
test rax, rax
je 0x140188845
mov r9, rbp
mov r8, r15
mov edx, 1
mov rcx, rax
call fcn.14000bd5c
mov rcx, rbp
mov rbx, rax
call fcn.140013970
mov rcx, r14
call fcn.1401e0f20
cmp ebx, r15d
je 0x140188815
lea rcx, str.E485:_Cant_read_file__s
call qword [case.0x1400407ae.0]
mov rcx, rax
mov rdx, r14
call fcn.1401860c0
cmp dword [0x14045b3f8], 0
jne 0x140188811
mov rcx, rdi
call fcn.140005660
xor edi, edi
jmp 0x14018887c
test r12, r12
jne 0x14018883f
test r15d, r15d
jle 0x140188838
mov rcx, rdi
cmp byte [rcx], 0
jne 0x14018882a
mov byte [rcx], 1
inc rcx
mov rax, rcx
sub rax, rdi
cmp rax, r15
jl 0x140188822
mov byte [r15 + rdi], 0
jmp 0x14018887c
mov dword [r12], r15d
jmp 0x14018887c
mov rcx, rbp
call fcn.140013970
mov rcx, r14
call fcn.1401e0f20
jmp 0x14018887c
lea rcx, str.E282:_Cannot_read_from___s_
call qword [case.0x1400407ae.0]
mov rcx, rax
mov rdx, r14
call fcn.1401860c0
test rbp, rbp
je 0x14018887c
mov rcx, rbp
call fcn.140013970
mov r15, qword [rsp + 0x40]
cmp dword [0x14045b3f8], 0
jne 0x140188892
mov rcx, r14
call fcn.140005660
mov rax, rdi
jmp 0x1401886c1

Function at 0x14018aac0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
cmp dword [0x14045b404], 0
jne 0x14018aae2
xor ecx, ecx
call fcn.140122f90
mov ecx, 0x40
add rsp, 0x28
jmp fcn.14018aca0
add rsp, 0x28
ret
Function at 0x14018e360
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
mov rsi, rcx
call fcn.140321bb0
mov rdi, rax
test rax, rax
je 0x14018e3ef
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [0x14045b3f8], 0
mov ebx, eax
jne 0x14018e39d
mov rcx, rdi
call fcn.140005660
cmp ebx, 0xffffffff
je 0x14018e3dd
and bl, 0x11
cmp bl, 1
je 0x14018e3dd
mov rcx, rsi
call fcn.1401e0270
test eax, eax
jne 0x14018e3dd
mov rcx, rsi
lea ebx, [rax + 1]
call fcn.1401e1020
test eax, eax
mov ecx, 2
cmovne ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401bff90
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.LANG
call fcn.140013e0c
test rax, rax
jne 0x1401c0229
lea r9d, [rax + 0x14]
mov ecx, 0x400
lea r8, [rsp + 0x20]
lea edx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 2
jb 0x1401c0229
mov r8d, 2
lea rdx, [0x1403c7db0]
lea rcx, [rsp + 0x20]
call fcn.14001d5e0
test eax, eax
je 0x1401c0229
mov qword [rsp + 0x50], rbx
lea rdx, [0x1403c8718]
mov r8d, 3
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x20]
call fcn.14001d5e0
test eax, eax
je 0x1401c00c3
mov r8d, 3
lea rdx, [0x1403c871c]
lea rcx, [rsp + 0x20]
call fcn.14001d5e0
test eax, eax
je 0x1401c00c3
mov r8d, 3
lea rdx, [0x1403c8720]
lea rcx, [rsp + 0x20]
call fcn.14001d5e0
test eax, eax
je 0x1401c00b0
mov r8d, 3
lea rdx, [0x1403c8724]
lea rcx, [rsp + 0x20]
call fcn.14001d5e0
test eax, eax
je 0x1401c00b0
mov r8d, 2
lea rdx, [0x1403c8728]
lea rcx, [rsp + 0x20]
call fcn.14001d5e0
test eax, eax
jne 0x1401c00a9
movzx eax, word [0x1403c24a4]
mov word [rsp + 0x20], ax
movzx eax, byte [0x1403c24a6]
mov byte [rsp + 0x22], al
jmp 0x1401c00d9
mov byte [rsp + 0x22], 0
jmp 0x1401c00d9
mov eax, dword [str.zh_CN]
mov dword [rsp + 0x20], eax
movzx eax, word [0x1403c251c]
jmp 0x1401c00d4
mov eax, dword [str.zh_TW]
mov dword [rsp + 0x20], eax
movzx eax, word [0x1403c2534]
mov word [rsp + 0x24], ax
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov rcx, rbx
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1401c00f0
add rcx, 6
mov qword [rsp + 0x40], rdi
mov edx, 1
call fcn.140032b90
mov rsi, rax
test rax, rax
je 0x1401c0174
lea r9, [rsp + 0x20]
mov rcx, rax
lea r8, str.LANG
lea rdx, str._s_s
call fcn.140001010
xor edx, edx
mov rcx, rsi
call fcn.140321bb0
cmp dword [0x14045b3f8], 0
mov rdi, rax
jne 0x1401c014d
mov rcx, rsi
call fcn.140005660
test rdi, rdi
je 0x1401c0174
mov rcx, rdi
call fcn.140019ea4
mov rcx, rdi
call qword [case.0x140040788.5]
cmp dword [0x14045b3f8], 0
jne 0x1401c0174
mov rcx, rdi
call fcn.140005660
cmp byte [rsp + 0x20], 0
mov rsi, qword [rsp + 0x58]
je 0x1401c021f
lea rdx, str.VIMRUNTIME
lea rcx, str.LANG
call fcn.14001d4c4
test eax, eax
jne 0x1401c021f
lea rax, [rsp + 0x20]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401c01a4
lea rcx, [rbx + 6]
mov edx, 1
call fcn.140032b90
mov rdi, rax
test rax, rax
je 0x1401c021f
lea r8, [rsp + 0x20]
mov rdx, rax
sub r8, rax
nop
movzx ecx, byte [r8 + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1401c01d0
lea rcx, str._lang
mov rdx, rdi
sub rdx, rcx
add rdx, rbx
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1401c01f0
mov rdx, rdi
lea rcx, [0x1403bedd8]
call qword [case.0x140040788.3]
cmp dword [0x14045b3f8], 0
jne 0x1401c021f
mov rcx, rdi
call fcn.140005660
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001200
add rsp, 0x48
ret
Function at 0x1401cfb00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r14d, r14d
xor edx, edx
mov ebp, r14d
call fcn.140321bb0
mov rbx, rax
test rax, rax
je 0x1401cfc3c
movzx ecx, word [rax]
mov rsi, rax
call fcn.140012590
test eax, eax
je 0x1401cfb6c
cmp word [rbx + 2], 0x3a
jne 0x1401cfb6c
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x1401cfb66
cmp ax, 0x2f
jne 0x1401cfb6c
lea rsi, [rbx + 6]
jmp 0x1401cfb8f
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1401cfb7b
cmp ax, 0x2f
jne 0x1401cfb92
movzx ecx, word [rbx + 2]
cmp cx, 0x5c
je 0x1401cfb8b
cmp cx, 0x2f
jne 0x1401cfb92
lea rsi, [rbx + 4]
movzx eax, word [rsi]
test ax, ax
je 0x1401cfc2c
nop dword [rax + rax]
lea rdx, [0x1403c8ed8]
mov rcx, rsi
call fcn.1400185e4
mov rdi, rax
test rax, rax
jne 0x1401cfbd4
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1401cfbc0
lea rdi, [rbx + rax*2]
mov rsi, rdi
jmp 0x1401cfbd8
lea rsi, [rax + 2]
sub rdi, rbx
sar rdi, 1
cmp rdi, 0x104
jge 0x1401cfc2c
mov r8, rdi
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.14001859c
add rdi, rdi
cmp rdi, 0x208
jae 0x1401cfd6e
lea rcx, [rsp + 0x40]
mov word [rsp + rdi + 0x40], r14w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401cfc23
bt eax, 0xa
jb 0x1401cfc67
cmp word [rsi], bp
jne 0x1401cfba0
cmp dword [0x14045b3f8], ebp
jne 0x1401cfc3c
mov rcx, rbx
call fcn.140005660
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001200
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [0x14045b3f8], ebp
mov rdi, rax
jne 0x1401cfca0
mov rcx, rbx
call fcn.140005660
cmp rdi, 0xffffffffffffffff
je 0x1401cfc3c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov ebx, eax
test eax, eax
je 0x1401cfd47
mov ecx, ebx
mov edx, 1
add rcx, rcx
call fcn.140032b90
mov rbp, rax
test rax, rax
je 0x1401cfd47
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
je 0x1401cfd47
mov r8d, 8
lea rdx, str._UNC_
mov rcx, rbp
call fcn.140018db4
test eax, eax
jne 0x1401cfd12
lea rcx, [rbp + 0xc]
mov word [rcx], 0x5c
jmp 0x1401cfd32
mov r8d, 4
lea rdx, [0x1403c8ef8]
mov rcx, rbp
call fcn.140018db4
lea rcx, [rbp + 8]
test eax, eax
je 0x1401cfd32
mov rcx, rbp
xor edx, edx
call fcn.140321f80
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401cfd59
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x1401cfc3c
cmp dword [0x14045b3f8], 0
jne 0x1401cfc3c
mov rcx, rbp
jmp 0x1401cfc37
call fcn.140001328
int3
Function at 0x1401d07f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rsi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea r8d, [rbx + 0x30]
mov rcx, rsi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401d087e
mov edi, dword [rsp + 0x24]
xor edx, edx
mov rax, rsi
mov rcx, rsi
sub rax, qword [rsp + 0x50]
div rdi
sub rdi, rdx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1401d087e
nop dword [rax]
xor eax, eax
test rdi, rdi
je 0x1401d0868
inc rbx
cmp byte [rax + rsi], 0
je 0x1401d0895
inc rax
cmp rax, rdi
jb 0x1401d0857
add rsi, rdi
mov edi, dword [rsp + 0x24]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1401d0850
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x1401d0880

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1060
call fcn.140031f40
sub rsp, rax
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor edx, edx
mov dword [rsp + 0x40], 0x1000
call fcn.140321bb0
mov rsi, rax
test rax, rax
je 0x1401d0a96
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401d0a85
bt eax, 0xa
jae 0x1401d0a85
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80
mov dword [rsp + 0x28], 0x2200000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1401d0a7d
mov ecx, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x50]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov edx, 0x900a8
mov qword [rsp + 0x1078], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov rbx, qword [rsp + 0x1078]
je 0x1401d0a7d
cmp dword [0x14045b3f8], edi
jne 0x1401d0a1e
mov rcx, rsi
call fcn.140005660
cmp dword [rsp + 0x50], 0x8000001b
jne 0x1401d0a96
mov r8d, dword [rsp + 0x58]
cmp r8d, 3
jb 0x1401d0a96
movzx eax, word [rsp + 0x54]
lea r9, [rsp + 0x5c]
shr rax, 1
lea rcx, [rsp + 0x5c]
lea r9, [r9 + rax*2]
lea rax, [rsp + 0x5c]
cmp rax, r9
jae 0x1401d0a74
cmp edi, r8d
jge 0x1401d0a74
cmp edi, 2
je 0x1401d0a74
movzx edx, word [rcx]
lea eax, [rdi + 1]
add rcx, 2
test dx, dx
cmovne eax, edi
mov edi, eax
cmp rcx, r9
jb 0x1401d0a53
xor edx, edx
call fcn.140321f80
jmp 0x1401d0a98
cmp dword [0x14045b3f8], edi
jmp 0x1401d0a8c
cmp dword [0x14045b3f8], 0
jne 0x1401d0a96
mov rcx, rsi
call fcn.140005660
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140001200
lea r11, [rsp + 0x1060]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401d55c0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x470], rax
movzx eax, word [rcx]
xor edi, edi
mov qword [rsp + 0x40], rcx
mov rsi, rdx
mov rbx, rcx
mov r9, rcx
mov edx, edi
test ax, ax
je 0x1401d5648
mov r8d, edi
movabs r10, 0x200000000801
nop dword [rax + rax]
sub ax, 0x2f
cmp ax, 0x2d
ja 0x1401d5630
bt r10, rax
jae 0x1401d5630
cmp word [rcx + 2], di
je 0x1401d5630
movsxd r9, edx
inc r9
lea r9, [rbx + r9*2]
inc r8
inc edx
movzx eax, word [rbx + r8*2]
lea rcx, [rbx + r8*2]
test ax, ax
jne 0x1401d5610
mov qword [rsp + 0x40], r9
movsxd rax, edx
add rax, rax
sub rax, r9
add rax, rbx
sar rax, 1
cmp eax, 8
jl 0x1401d5793
cmp word [r9 + 0xc], 0x7e
jne 0x1401d5793
lea r9, [rsp + 0x40]
mov edx, 0x104
lea r8, [rsp + 0x260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1401d578c
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1401d578c
lea r9, [rsp + 0x50]
mov word [rax], di
xor r8d, r8d
lea rdx, [0x1403bf350]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1401d56cb
mov eax, 0xfffffffe
jmp 0x1401d57a7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401d56e4
mov eax, 0xfffffffd
jmp 0x1401d57a7
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1401d5700
mov eax, 0xfffffffc
jmp 0x1401d57a7
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1401d5736
mov eax, 0xfffffffb
jmp 0x1401d57a7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1401d574a
mov eax, 0xfffffffa
jmp 0x1401d57a7
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x1401d5771
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, 0xfffffff9
jmp 0x1401d57a7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ecx, 0xfffffff8
cmove edi, ecx
jmp 0x1401d57a5
mov eax, 0xffffffff
jmp 0x1401d57a7
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001200
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401d9990
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
call fcn.140321bb0
mov rbx, rax
test rax, rax
jne 0x1401d99ae
lea eax, [rbx - 1]
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [0x14045b3f8], 0
mov edi, eax
jne 0x1401d99cf
mov rcx, rbx
call fcn.140005660
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x1401df490
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.1401d9990
mov ebx, eax
cmp eax, 0xffffffff
je 0x1401df4da
xor edx, edx
mov rcx, rdi
call fcn.140321bb0
mov rdi, rax
test rax, rax
je 0x1401df4da
or ebx, 2
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [0x14045b3f8], 0
jne 0x1401df4da
mov rcx, rdi
call fcn.140005660
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401e0270
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov rsi, rcx
mov ebx, 0xffffffff
call fcn.140321bb0
mov rdi, rax
test rax, rax
je 0x1401e0351
mov rcx, rsi
call fcn.1401d9990
mov ecx, eax
xor esi, esi
shr eax, 4
and eax, 1
cmp ecx, ebx
cmove eax, esi
test eax, eax
je 0x1401e030a
xor edx, edx
mov word [rsp + 0x40], si
mov r8d, 0x226
lea rcx, [rsp + 0x42]
call fcn.140002810
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x1403bf350]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1401e0341
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1401e033f
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1401e0341
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
cmp dword [0x14045b3f8], esi
jne 0x1401e0351
mov rcx, rdi
call fcn.140005660
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001200
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401e0380
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140420a38]
cmp eax, 0x6010
jne 0x1401e03a2
mov eax, dword [0x14042ec80]
mov ecx, dword [0x14042ec88]
jmp 0x1401e047e
bt eax, 9
jae 0x1401e03b9
mov eax, dword [0x14042ea10]
mov ecx, dword [0x14042ea18]
jmp 0x1401e047e
bt eax, 8
jae 0x1401e03d0
mov eax, dword [0x14042ea10]
mov ecx, dword [0x14042ea18]
jmp 0x1401e047e
test al, 0x10
je 0x1401e03e5
mov eax, dword [0x14042e9e0]
mov ecx, dword [0x14042e9e8]
jmp 0x1401e047e
test al, 8
je 0x1401e042a
mov eax, dword [0x14045fafc]
cmp dword [0x14045fb00], eax
jl 0x1401e0405
mov eax, dword [0x14042ea40]
mov ecx, dword [0x14042ea48]
jmp 0x1401e047e
cmp dword [0x14045fb1c], 0
je 0x1401e041c
mov eax, dword [0x14042eaa0]
mov ecx, dword [0x14042eaa8]
jmp 0x1401e047e
mov eax, dword [0x14042ea70]
mov ecx, dword [0x14042ea78]
jmp 0x1401e047e
cmp dword [0x14045b7a4], 0
je 0x1401e0441
mov eax, dword [0x14042ead0]
mov ecx, dword [0x14042ead8]
jmp 0x1401e047e
cmp dword [0x14045b480], 0
je 0x1401e0472
mov rax, qword [0x14046a318]
cmp byte [rax], 0x65
jne 0x1401e0464
mov eax, dword [0x14042eb00]
mov ecx, dword [0x14042eb08]
jmp 0x1401e047e
mov eax, dword [0x14042e9b0]
mov ecx, dword [0x14042e9b8]
jmp 0x1401e047e
mov eax, dword [0x14042e980]
mov ecx, dword [0x14042e988]
test eax, eax
mov edx, 0x63
cmove ecx, edx
cmp dword [0x140461ff8], 0
je 0x1401e04c2
mov rax, qword [0x1404689c8]
cmp byte [rax], 0
jne 0x1401e04fe
cmp ecx, 0x32
jge 0x1401e04b2
lea rcx, str.e_3_q
add rsp, 0x28
jmp fcn.1401d48e0
lea rcx, str.e_0_q
add rsp, 0x28
jmp fcn.1401d48e0
mov eax, dword [0x140454dec]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x140454e60]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
cmp dword [0x140454dec], 0
je 0x1401e04fe
mov edx, dword [0x140461fd8]
mov rcx, qword [0x140454e60]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add rsp, 0x28
ret

Function at 0x1401e05e0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
call fcn.140321bb0
mov rbx, rax
test rax, rax
jne 0x1401e05fe
lea eax, [rbx - 1]
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
mov qword [rsp + 0x30], rdi
call fcn.140018de0
cmp dword [0x14045b3f8], 0
mov edi, eax
jne 0x1401e061e
mov rcx, rbx
call fcn.140005660
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret