joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ce120
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x60
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x48], 0
movsxd rsi, r8d
mov r15, rdx
mov rbx, rcx
jne 0x1401ce14f
xor al, al
jmp 0x1401ce236
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r12d, r12d
mov edi, r12d
mov r14d, eax
test rsi, rsi
jle 0x1401ce21a
lea rbp, [rbx + 0x28]
nop word [rax + rax]
movzx eax, byte [rdi + r15]
mov rcx, qword [rbx + 0x48]
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov byte [rsp + 0x30], al
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401ce1fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1401ce1fd
mov rcx, qword [rbx + 0x40]
lea edx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401ce1e1
mov dword [rsp + 0x38], r12d
jmp 0x1401ce1fd
mov rcx, qword [rbx + 0x48]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x38]
add dword [rbx + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [rbx + 0x52]
sub eax, r14d
cmp eax, ecx
ja 0x1401ce24c
inc rdi
cmp rdi, rsi
jl 0x1401ce190
mov al, 1
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e3980
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
xor al, al
jmp 0x1401ce21c
Function at 0x1401ce250
Capabilities:
Read file on windows

Disassembly:
push rbp
mov eax, 0x1060
call fcn.1401ea950
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x1050], rbx
mov qword [rbp + 0x1058], rsi
mov rax, qword [0x140324030]
xor rax, rbp
mov qword [rbp + 0x1020], rax
mov rsi, rdx
lea rdx, [0x140224a18]
mov rbx, rcx
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rdx, [0x140224a18]
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
cmp byte [rbx + 0x50], 0
je 0x1401ce3be
cmp qword [rbx + 0x48], 0
je 0x1401ce3be
lea rcx, [rbp + 0x20]
xor edx, edx
mov r8d, 0x1000
call sub.MSVCR110.dll_memset
mov rcx, qword [rbx + 0x48]
lea r8, [rbp + 8]
lea rdx, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_ClearCommError]
mov r8d, dword [rbp + 0xc]
test r8d, r8d
je 0x1401ce3be
mov rcx, qword [rbx + 0x48]
lea rax, [rbx + 8]
lea r9, [rbp]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov dword [rbp], r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401ce344
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1401ce32a
mov rcx, qword [rbx + 0x20]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
lea rdx, [0x140224a18]
mov rcx, rsi
mov dword [rbp], eax
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov eax, dword [rbp]
jmp 0x1401ce3c0
lea rax, [rbp + 0x20]
or rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x1401ce350
inc edx
cmp edx, 0x3fffffff
jle 0x1401ce367
xor eax, eax
jmp 0x1401ce3a6
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1401ce380
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401ea950
sub rsp, rcx
mov r8d, edx
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
mov r9d, 3
call fcn.14003a980
lea rdx, [0x14022875c]
mov r8, rax
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
mov eax, dword [rbp]
jmp 0x1401ce3c0
xor eax, eax
mov rcx, qword [rbp + 0x1020]
xor rcx, rbp
call fcn.1401e3980
mov rbx, qword [rbp + 0x1050]
mov rsi, qword [rbp + 0x1058]
lea rsp, [rbp + 0x1030]
pop rbp
ret
Function at 0x1401d1e10
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1401d1ea4
mov rcx, qword [rsp + 0x28]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fclose]
mov bl, 1
jmp 0x1401d1ea6
xor bl, bl
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e3980
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1401d1ee0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0
mov rdx, qword [rdx]
lea rcx, [r11 - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x140290d68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rbp, rax
test rax, rax
je 0x1401d1feb
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_316]
nop
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbp
call qword [sym.imp.MSVCR110.dll_fseek]
mov rcx, rbp
call qword [sym.imp.MSVCR110.dll_ftell]
movsxd r14, eax
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.MSVCR110.dll_fseek]
test r14d, r14d
jle 0x1401d1fc6
lea eax, [r14 + 1]
movsxd rbx, eax
mov rcx, rbx
call fcn.1401e355c
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.MSVCR110.dll_memset
mov rdx, r14
mov r9, rbp
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fread]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1502]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, rbp
call qword [sym.imp.MSVCR110.dll_fclose]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_290]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
jmp 0x1401d1ffc
lea rdx, [0x140224a18]
mov rcx, rsi
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e3980
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401e2660
Capabilities:
Create directory
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
je 0x1401e27a2
lea rdx, [0x140224a18]
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov r8, qword [rdi]
lea rdx, str.Prog_s_r_n
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1658]
lea rdx, str.cmdhome_r_n
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1661]
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea r8, [rbx + 8]
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.1400eaab0
nop
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rsi, rax
test rax, rax
je 0x1401e2781
mov rcx, qword [rbp - 0x20]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rsi
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_fclose]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, rdi
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401e3980
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401e7540
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r9
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], shutdown
xor esi, esi
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x38], sil
lea r8d, [rsi + 0x1c]
lea rdx, str.boost::filesystem::copy_file
lea rcx, [rsp + 0x38]
call fcn.140001b00
nop
cmp qword [rdi + 0x18], 8
jb 0x1401e75a6
mov rdx, qword [rdi]
jmp 0x1401e75a9
mov rdx, rdi
cmp qword [rbx + 0x18], 8
jb 0x1401e75b5
mov rcx, qword [rbx]
jmp 0x1401e75b8
mov rcx, rbx
test ebp, ebp
sete sil
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete cl
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8, rdi
mov rdx, rbx
call fcn.1401e82a0
nop
cmp qword [rsp + 0x50], 0x10
jb 0x1401e75f7
mov rcx, qword [rsp + 0x38]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e3980
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401e7610
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0xd0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x1401e764e
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1401e7675
test rbx, rbx
je 0x1401e766e
mov dword [rbx], 0
call fcn.1401ea850
mov qword [rbx + 8], rax
mov al, 1
jmp 0x1401e7740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [rsp + 0x20], 0
call fcn.1401ea850
mov qword [rsp + 0x28], rax
cmp ebp, 0xb7
jne 0x1401e76c4
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1401e8d50
cmp dword [rax], 3
jne 0x1401e76c4
test rbx, rbx
je 0x1401e773e
mov dword [rbx], 0
call fcn.1401ea850
jmp 0x1401e773a
test rbx, rbx
jne 0x1401e7733
mov qword [rsp + 0x58], shutdown
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
lea r8d, [rbx + 0x23]
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x40]
call fcn.140001b00
nop
mov dword [rsp + 0x20], ebp
call fcn.1401ea850
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1401e7070
lea rdx, [0x14030aaa0]
lea rcx, [rsp + 0x60]
call sub.MSVCR110.dll__CxxThrowException
nop
call fcn.1401ea850
mov dword [rbx], ebp
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401e3980
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1401e77c0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp + reloc.mfc110u.dll_Ordinal_448], rax
mov r13, r9
mov rax, r8
mov r12, rdx
mov rsi, rcx
mov r14, qword [rbp + 0x240]
mov r15, qword [rbp + 0x248]
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140049e40
nop
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x1401e789c
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x5c
je 0x1401e7893
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x2f
je 0x1401e7893
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x3a
jne 0x1401e789c
lea rdx, [0x14022210c]
jmp 0x1401e78a3
lea rdx, [0x140222104]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401e78b0
lea rcx, [rsp + 0x28]
call fcn.14004e320
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
jne 0x1401e7919
mov qword [r12], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1401e790d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1401e790d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1401ea850
mov dword [rsi], edi
jmp 0x1401e79f0
cmp word [rbp - 0x64], 0
jne 0x1401e7925
mov r8, rdi
jmp 0x1401e793b
lea rax, [rbp - 0x64]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1401e7930
lea rdx, [rbp - 0x64]
mov rcx, r13
call fcn.14004a180
mov eax, dword [rsp + 0x70]
bt eax, 0xa
jae 0x1401e795c
mov dword [r14], edi
mov dword [r15], edi
jmp 0x1401e79e9
test al, 0x10
je 0x1401e7970
mov dword [r14], 3
mov dword [r15], 3
jmp 0x1401e797e
mov dword [r14], 2
mov dword [r15], 2
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp word [rbp - 0x64], 0
jne 0x1401e799d
mov rbx, rdi
jmp 0x1401e79ab
lea rax, [rbp - 0x64]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e79a1
mov r8, rbx
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x48]
call fcn.14004a180
nop
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1401e8540
mov dword [r14 + 4], eax
cmp qword [rsp + 0x60], 8
jb 0x1401e79e1
mov rcx, qword [rsp + 0x48]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, dword [r14 + 4]
mov dword [r15 + 4], eax
mov dword [rsi], edi
call fcn.1401ea850
mov qword [rsi + 8], rax
cmp qword [rsp + 0x40], 8
jb 0x1401e7a06
mov rcx, qword [rsp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov rax, rsi
mov rcx, qword [rbp + reloc.mfc110u.dll_Ordinal_448]
xor rcx, rsp
call fcn.1401e3980
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401e89b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rsi, rdx
mov rdi, rcx
jb 0x1401e89cf
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1401e89fe
lea rcx, [rsp + 0x30]
mov r8, rsi
mov rdx, rdi
call fcn.1401e8860
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rsi, rsi
je 0x1401e8a12
mov dword [rsi], 0
call fcn.1401ea850
mov qword [rsi + 8], rax
bt ebx, 0xa
jae 0x1401e8a59
mov rcx, rdi
call fcn.1401e8470
test al, al
je 0x1401e8a44
test bl, 0x10
mov eax, 4
mov ecx, inet_ntoa
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401e8bc0
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x1401e8c0a
test r8, r8
je 0x1401e8c03
mov dword [r8], 0
call fcn.1401ea850
mov qword [rdi + 8], rax
xor al, al
jmp 0x1401e8cd9
lea eax, [rdx - 3]
mov qword [rsp + 0x40], shutdown
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov r8d, SafeArrayCopy
lea rdx, str.boost::filesystem::remove
lea rcx, [rsp + 0x28]
test eax, 0xfffffff7
je 0x1401e8c8a
call fcn.140001b00
nop
cmp qword [rbx + 0x18], 8
jb 0x1401e8c4f
mov rcx, qword [rbx]
jmp 0x1401e8c52
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete cl
lea r9, [rsp + 0x28]
mov r8, rdi
mov rdx, rbx
call fcn.1401e8390
movzx ebx, al
cmp qword [rsp + 0x40], 0x10
jb 0x1401e8c82
mov rcx, qword [rsp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x1401e8cd7
xor al, al
jmp 0x1401e8cd9
call fcn.140001b00
nop
cmp qword [rbx + 0x18], 8
jb 0x1401e8c9c
mov rcx, qword [rbx]
jmp 0x1401e8c9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
sete cl
lea r9, [rsp + 0x28]
mov r8, rdi
mov rdx, rbx
call fcn.1401e8390
movzx ebx, al
cmp qword [rsp + 0x40], 0x10
jb 0x1401e8ccf
mov rcx, qword [rsp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
jne 0x1401e8c03
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401e3980
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401e8d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x1401e8d94
mov rcx, qword [rdx]
jmp 0x1401e8d97
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1401e8db7
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.1401e8860
jmp 0x1401e8ef8
xor r15d, r15d
bt eax, 0xa
jae 0x1401e8eb8
cmp qword [rdi + 0x18], 8
jb 0x1401e8dd0
mov rdx, qword [rdi]
jmp 0x1401e8dd3
mov rdx, rdi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rdx], r15w
jne 0x1401e8df2
mov r8, r15
jmp 0x1401e8e00
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1401e8df6
lea rcx, [rsp + 0x50]
call fcn.14004a180
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x68], 8
jb 0x1401e8e5a
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp rbx, 0xffffffffffffffff
jne 0x1401e8e85
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.1401e8860
nop
jmp 0x1401e8ef8
mov rcx, rdi
call fcn.1401e8470
test al, al
jne 0x1401e8eaf
mov edx, ebp
mov rcx, rdi
call fcn.1401e8540
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401e8ef8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1401e8ec9
mov dword [r14], r15d
call fcn.1401ea850
mov qword [r14 + 8], rax
mov edx, ebp
mov rcx, rdi
test bpl, 0x10
mov dword [rsp + 0x40], 3
jne 0x1401e8ee4
mov dword [rsp + 0x40], 2
call fcn.1401e8540
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e3980
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007730
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400077d0
jmp 0x1400077bf
jae 0x14000788f
cmp r8, 0x201
jae 0x1400077d0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140007827
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400077ff
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001d580
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140007850
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400078fb
mov r8d, r13d
cmp r12, r8
jne 0x1400077b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000792f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400077bf
jmp 0x1400077d0
cmp r14, r8
jb 0x140007949
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000a020
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400078e4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003e70
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400078cf
jmp 0x1400078e4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001e460
jmp 0x14000795e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001e810
ud2