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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.0053fdb0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x529cf3
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.0053d590
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x529cf3
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x529cc7
test rsi, rsi
je 0x529cf1
mov rcx, qword [0x00677420]
xor esi, esi
xor edx, edx
mov r8, rdi
call fcn.005ab9d4
jmp 0x529cf3
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x529cec
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rdi
call fcn.005ab9d4
mov rsi, rbx
jmp 0x529cf3
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x52a050
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.0053fdb0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x52a101
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.0053d590
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x52a101
mov rcx, rdi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x52a0d5
test rsi, rsi
je 0x52a0ff
mov rcx, qword [0x00677420]
xor esi, esi
xor edx, edx
mov r8, rdi
call fcn.005ab9d4
jmp 0x52a101
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x52a0fa
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rdi
call fcn.005ab9d4
mov rsi, rbx
jmp 0x52a101
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x52a110
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.0053fdb0
mov rbx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x52a254
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.0053d590
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x52a210
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, r14
call fcn.0053fdb0
mov rbx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x52a23e
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.0053d590
mov rbx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x52a23e
mov rcx, rsi
mov rdx, r14
mov r8d, 1
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x52a215
test rbx, rbx
je 0x52a200
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, r14
call fcn.005ab9d4
test rdi, rdi
je 0x52a263
mov rcx, qword [0x00677420]
xor ebx, ebx
jmp 0x52a24a
mov rbx, rdi
jmp 0x52a254
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
test rbx, rbx
je 0x52a23b
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, r14
call fcn.005ab9d4
mov rbx, r15
test rdi, rdi
je 0x52a254
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rsi
call fcn.005ab9d4
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x52a254
Function at 0x5335e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
movzx ebp, word [rdx + 0x40]
movzx r14d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
cmp dword [rdx + 0x10], 0
mov dword [rdx + 0x10], 0
mov r15, qword [rdx + 8]
je 0x53363b
cmp bp, 0x2e
jne 0x533717
test r14w, r14w
je 0x53363b
cmp r14w, 0x2e
jne 0x533717
test r12w, r12w
jne 0x533717
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x53378e
lea rbx, [rsp + 0x80]
jmp 0x533693
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x53378e
cmp word [rsp + 0xac], 0x2e
jne 0x5336bc
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x533680
cmp ax, 0x2e
jne 0x5336bc
cmp word [rsp + 0xb0], 0
je 0x533680
lock inc qword [r15]
jle 0x533815
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r14d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x533742
lock inc qword [r15]
jle 0x533815
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
jmp 0x5337b3
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x5337a1
mov qword [rsi], 0
jmp 0x533803
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r15d, r15d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r14w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov qword [rsi + 0x258], r15
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2

Function at 0x53bdc0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x53bdf9
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x53be0f
call fcn.005abbd4
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x53f5c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x53f630
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x53f63f
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x53f676
cmp eax, 0x103
je 0x53f680
test eax, eax
js 0x53f65c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x53f676
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.combase.dll
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x0041d590]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.0053bcb0
mov rcx, rax
call fcn.005250c0
mov ecx, 7
int 0x29
ud2
Function at 0x53f890
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x53f907
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x53f93d
test eax, eax
js 0x53f918
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x53f930
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.combase.dll
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x0041d590]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.0053bcb0
mov rcx, rax
call fcn.005250c0
mov ecx, 7
int 0x29
ud2

Function at 0x53fa10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x53fa46
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.0053ecd0]
mov qword [rsp + 0x48], rax
lea rax, [0x005ee758]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_sys_windows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.00426330
ud2
Function at 0x53fad0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x53fb4e
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x53fb8f
cmp dword [rsp + 0x2c], 0
je 0x53fb73
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x53fbb7
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x006773e8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x006773e8], rsi
jne 0x53fb30
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x53fb85
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x53fc0d
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x53fb78
mov edi, dword [rsp + 0x28]
jmp 0x53fb85
mov edi, dword [rsi + 0x18]
jmp 0x53fb83
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], 0
lea rdx, [0x005ee7a8]
lea r9, str.library_std_src_sys_windows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.0053de30
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, str.combase.dll
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_sys_windows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00426330
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.combase.dll
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.0053df60
ud2
Function at 0x53ff70
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor ebp, ebp
cmp r8, 0x201
jae 0x540010
jmp 0x53ffef
jae 0x5400b5
cmp r8, 0x201
jae 0x540010
lea r13, [rsp + 0xa8]
mov ebx, 0x200
mov r12, r8
jmp 0x540056
sub r8, rbp
sub rsi, rbp
cmp rsi, r8
jae 0x540037
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.00519bf0
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rdi, r15
mov ebp, 0xffffffff
cmovb rbp, rdi
mov qword [rsp + 0x48], rbp
mov rsi, rdi
mov r13, qword [rsp + 0x28]
mov rbx, rbp
mov r12, rbp
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov r14d, eax
test eax, eax
jne 0x54007c
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x5401a6
mov r8d, r14d
cmp r12, r8
jne 0x53ffe0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5401ca
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x53ffef
jmp 0x540010
cmp rbx, r8
jb 0x5401e4
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.00527300
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.00522aa0
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x540122
lea rdx, str.exeNULcmd.exe__
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.00523cb0
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.0054ce80
cmp qword [rsp + 0x50], 0
je 0x540155
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rbx
call fcn.005ab9d4
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x540191
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.005ab9d4
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x54017e
jmp 0x540191
lea rcx, str.internal_error:_entered_unreachable_code_repos_rust_1.70.0_library_std_src_io_error_repr_bitpacked.rs
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00426370
jmp 0x5401f9
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.004292f0
ud2
Function at 0x540620
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x5406a0
jmp 0x54068f
jae 0x540745
cmp r8, 0x201
jae 0x5406a0
lea r15, [rsp + 0x68]
mov r12d, 0x200
mov r13, r8
jmp 0x5406e7
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x5406c7
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.00519bf0
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, qword [rsp + 0x20]
mov r12, r14
mov r13, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r13d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x54070c
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x54079e
mov r8d, ebp
cmp r13, r8
jne 0x540680
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5407be
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x54068f
jmp 0x5406a0
cmp r12, r8
jb 0x5407d8
lea rcx, [rsp + 0x48]
mov rdx, r15
call fcn.00527300
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x540789
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, qword [rsp + 0x20]
call fcn.005ab9d4
nop
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x540776
jmp 0x540789
lea rcx, str.internal_error:_entered_unreachable_code_repos_rust_1.70.0_library_std_src_io_error_repr_bitpacked.rs
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00426370
jmp 0x5407ed
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.004292f0
ud2
Function at 0x540810
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor ebp, ebp
cmp r8, 0x201
jae 0x5408b0
jmp 0x54088f
jae 0x540955
cmp r8, 0x201
jae 0x5408b0
lea r13, [rsp + 0xa8]
mov ebx, 0x200
mov r12, r8
jmp 0x5408f6
sub r8, rbp
sub rsi, rbp
cmp rsi, r8
jae 0x5408d7
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.00519bf0
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rdi, r15
mov ebp, 0xffffffff
cmovb rbp, rdi
mov qword [rsp + 0x48], rbp
mov rsi, rdi
mov r13, qword [rsp + 0x28]
mov rbx, rbp
mov r12, rbp
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov r14d, eax
test eax, eax
jne 0x54091c
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x540a46
mov r8d, r14d
cmp r12, r8
jne 0x540880
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x540a6a
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x54088f
jmp 0x5408b0
cmp rbx, r8
jb 0x540a84
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.00527300
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.00522aa0
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x5409c2
lea rdx, str.exeNULcmd.exe__
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.00523cb0
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.0054ce80
cmp qword [rsp + 0x50], 0
je 0x5409f5
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rbx
call fcn.005ab9d4
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x540a31
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.005ab9d4
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x540a1e
jmp 0x540a31
lea rcx, str.internal_error:_entered_unreachable_code_repos_rust_1.70.0_library_std_src_io_error_repr_bitpacked.rs
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00426370
jmp 0x540a99
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.004292f0
ud2
Function at 0x540ad0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r15d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r15, 0x201
jae 0x540b50
jmp 0x540b3f
jae 0x540bfd
cmp r15, 0x201
jae 0x540b50
lea r12, [rsp + 0x48]
mov r13d, 0x200
mov rbp, r15
jmp 0x540b9f
sub r15, r14
sub rbx, r14
cmp rbx, r15
jae 0x540b7a
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, r15
call fcn.00519bf0
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rbx, rdi
mov r12, qword [rsp + 0x20]
mov r13, r14
mov rbp, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, ebp
call sub.KERNEL32.dll_GetSystemDirectoryW
mov esi, eax
test eax, eax
jne 0x540bbf
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x540c29
mov r15d, esi
cmp rbp, r15
jne 0x540b30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x540ca0
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
cmovae rbp, rax
mov r15, rbp
cmp r15, 0x201
jb 0x540b3f
jmp 0x540b50
cmp r13, r15
jb 0x540cba
test esi, esi
je 0x540c4d
lea r14, [r15 + r15]
mov edx, 2
mov rcx, r14
call fcn.00414fe0
test rax, rax
je 0x540cce
mov rsi, rax
jmp 0x540c55
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], 0
test rdi, rdi
jne 0x540c78
jmp 0x540c8b
mov esi, 2
xor r14d, r14d
mov rcx, rsi
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
mov qword [rax], r15
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r15
test rdi, rdi
je 0x540c8b
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, qword [rsp + 0x20]
call fcn.005ab9d4
nop
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_code_repos_rust_1.70.0_library_std_src_io_error_repr_bitpacked.rs
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00426370
jmp 0x540cdb
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r15
mov rdx, r13
call fcn.004292f0
jmp 0x540cdb
mov edx, 2
mov rcx, r14
call fcn.00417bf0
ud2