joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba150
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov rbx, qword [rdx]
test rbx, rbx
je 0x4ba1b1
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rbx
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x4ba22d
mov rbx, qword [rsp + 0x38]
jmp 0x4ba1b3
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x4ba21c
mov r14, rax
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.00563374
test r15, r15
je 0x4ba21c
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdi
mov qword [rsi], 1
jmp 0x4ba239
mov qword [rsi], 0
mov rcx, rbx
call fcn.00563374
jmp 0x4ba239
call sub.kernel32.dll_GetLastError
mov qword [rsi], 0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x4bca40
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x00583948]
jmp 0x5013d0
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x501403
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x501418
mov rcx, rax
cmp qword [rax], 0
je 0x501418
add rcx, 8
jmp 0x5014f9
mov rcx, rbx
call fcn.004de2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5013f1
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x5014de
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x5014f7
mov rdi, rax
test rax, rax
jne 0x501477
mov ecx, 0x20
mov edx, 8
call fcn.00442160
test rax, rax
je 0x501513
mov rdi, rax
mov qword [rax], 0
mov qword [rax + 0x18], rbx
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x501504
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x501494
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x5014c9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x5014c4
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x5014c9
call fcn.004de1e0
mov qword [rdi], 1
lea rcx, [rdi + 8]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
jmp 0x5014f9
mov rcx, rbx
call fcn.004de2a0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x501434
xor ecx, ecx
mov rax, rcx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.004de2a0
mov ecx, eax
jmp 0x50146f
mov ecx, 0x20
mov edx, 8
call fcn.0052ffb0
ud2
Function at 0x4bd2d0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x200
mov rsi, rcx
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov word [rsp + 0x2e], bp
mov rax, qword [0x006c5270]
cmp rax, 3
jne 0x4bd3ce
cmp rdi, 0x17f
ja 0x4bd3e0
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, r14
mov r8, rdi
call fcn.005516b0
cmp qword [rsp + 0x38], 0
je 0x4bd35e
lea rax, [0x00681650]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x4bd3f3
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x4bd3b6
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x4bd3f3
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
jmp 0x4bd3f3
call fcn.00501210
cmp rdi, 0x17f
jbe 0x4bd30e
lea r9, [rsp + 0x2e]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.004fbf10
mov rax, rsi
add rsp, 0x200
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x4be2e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xf0
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x2c]
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x4be3d3
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x50]
cmp ecx, 2
je 0x4be3e2
cmp ecx, 0x17
jne 0x4be40b
cmp eax, 0x1c
jb 0x4be427
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x30], xmm0
movzx r8d, word [rsp + 0x52]
rol r8w, 8
mov r9d, dword [rsp + 0x54]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x30]
call fcn.00551b80
movups xmm0, xmmword [rsp + 0xd0]
movups xmm1, xmmword [rsp + 0xdc]
movups xmmword [rsp + 0x32], xmm0
movups xmmword [rsp + 0x3e], xmm1
mov word [rsi], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x3e]
movups xmmword [rsi + 2], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x4be41b
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x4be412
cmp eax, 0x10
jb 0x4be441
mov ecx, dword [rsp + 0x54]
movzx edx, word [rsp + 0x52]
rol dx, 8
call fcn.00551b30
mov word [rsi], 0
mov dword [rsi + 2], eax
shr rax, 0x20
mov word [rsi + 6], ax
jmp 0x4be41b
lea rax, [0x006819f8]
mov qword [rsi + 8], rax
mov word [rsi], 2
mov rax, rsi
add rsp, 0xf0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x00681a78]
mov edx, 0x43
call fcn.00552640
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x00681ad8]
mov edx, 0x42
call fcn.00552640
ud2

Function at 0x4c1230
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call fcn.004ded00
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x4c12df
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.004d9cb0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x4c12df
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x4c12b4
test rsi, rsi
je 0x4c12b0
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00442170
xor esi, esi
jmp 0x4c12df
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x4c12dc
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00442170
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x4d92e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.004ded00
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x4d9389
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, rbx
call fcn.004ded00
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
test r15, r15
je 0x4d938e
mov rcx, rdi
mov rdx, r15
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x4d93b9
xor r14d, r14d
test rbx, rbx
je 0x4d936e
add rbx, rbx
mov r8d, 2
mov rcx, r15
mov rdx, rbx
call fcn.00442170
test rsi, rsi
je 0x4d93aa
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00442170
jmp 0x4d93aa
mov rbx, rsi
jmp 0x4d93a7
test rsi, rsi
je 0x4d93a7
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00442170
mov r14, rbx
mov rax, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test rbx, rbx
jne 0x4d935a
jmp 0x4d936e

Function at 0x4ddd10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x4dddb2
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x4dddc1
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x4dddf8
cmp eax, 0x103
je 0x4dde02
test eax, eax
js 0x4dddde
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x4dddf8
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 + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x00683eb0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x00537bb0]
mov qword [rsp + 0x70], rax
lea rax, [0x00684938]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.004d7380
mov rcx, rax
call fcn.004db850
mov ecx, 7
int 0x29
ud2
Function at 0x4dded0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x4ddf79
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x4ddfaf
test eax, eax
js 0x4ddf8a
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x4ddfa2
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 + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x00683eb0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x00537bb0]
mov qword [rsp + 0x70], rax
lea rax, [0x00684938]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.004d7380
mov rcx, rax
call fcn.004db850
mov ecx, 7
int 0x29
ud2

Function at 0x4de1e0
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 0x4de216
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, [0x004dc9b0]
mov qword [rsp + 0x48], rax
lea rax, [0x006849d0]
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.005525c0
ud2
Function at 0x4de2a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x4de31e
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 0x4de35f
cmp dword [rsp + 0x2c], 0
je 0x4de343
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4de38e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x006c51c8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x006c51c8], rsi
jne 0x4de300
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x4de355
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x4de3e4
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x4de348
mov edi, dword [rsp + 0x28]
jmp 0x4de355
mov edi, dword [rsi + 0x18]
jmp 0x4de353
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 rax, str.library_std_src_sys_windows_thread_local_key.rs
mov qword [rsp + 0x20], rax
lea r8, [0x00684a20]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
xor ecx, ecx
call fcn.004dbc40
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, [0x00683eb0]
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.005525c0
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, [0x00683eb0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.004dbd90
ud2
Function at 0x4deee0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x70], 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 ebx, ebx
mov r15d, 0xffffffff
xor edi, edi
xor ebp, ebp
cmp r8, 0x201
jae 0x4def70
jmp 0x4def4f
jae 0x4df014
cmp r8, 0x201
jae 0x4def70
lea r13, [rsp + 0x98]
mov r14d, 0x200
mov r12, r8
jmp 0x4defb6
sub r8, rbp
sub rdi, rbp
cmp rdi, r8
jae 0x4def97
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.0050b5e0
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rbx, r15
mov ebp, 0xffffffff
cmovb rbp, rbx
mov qword [rsp + 0x48], rbp
mov rdi, rbx
mov r13, qword [rsp + 0x28]
mov r14, rbp
mov r12, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.kernel32.dll_GetSystemDirectoryW
mov esi, eax
test eax, eax
jne 0x4defdb
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4df0fb
mov r8d, esi
cmp r12, r8
jne 0x4def40
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4df11f
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x4def4f
jmp 0x4def70
cmp r14, r8
jb 0x4df139
mov rax, qword [rsp + 0x70]
mov rdi, qword [rax]
mov rsi, qword [rax + 8]
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.004b82f0
movups xmm0, xmmword [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x50]
call fcn.004aeeb0
cmp byte [rsi], 0
jne 0x4df07a
lea rdx, [0x006849b8]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.004afa20
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.004f8210
mov rdx, qword [rsp + 0x50]
test rdx, rdx
mov rsi, qword [rsp + 0x30]
je 0x4df0ad
mov rcx, qword [rsp + 0x58]
mov r8d, 1
call fcn.00442170
mov rax, qword [rsp + 0x88]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 0
test rbx, rbx
je 0x4df0e4
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.00442170
mov rax, rsi
add rsp, 0x498
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 rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
jne 0x4df0ce
jmp 0x4df0e4
lea rcx, str.internal_error:_entered_unreachable_codedata_provided_contains_a_nul_byte
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00552640
jmp 0x4df14e
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.0055dfa0
ud2
Function at 0x4dfca0
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 ebx, ebx
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x4dfd20
jmp 0x4dfd0f
jae 0x4dfdc4
cmp r8, 0x201
jae 0x4dfd20
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x4dfd67
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x4dfd47
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.0050b5e0
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rdi, rbx
mov r12, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x4dfd8b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4dfe22
mov r8d, esi
cmp rbp, r8
jne 0x4dfd00
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4dfe42
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x4dfd0f
jmp 0x4dfd20
cmp r13, r8
jb 0x4dfe5c
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.004b82f0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x4dfe0b
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.00442170
mov rax, rsi
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 rsi, qword [rsp + 0x28]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x4dfdf5
jmp 0x4dfe0b
lea rcx, str.internal_error:_entered_unreachable_codedata_provided_contains_a_nul_byte
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00552640
jmp 0x4dfe71
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.0055dfa0
ud2
Function at 0x4dfe90
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x70], 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 ebx, ebx
mov r15d, 0xffffffff
xor edi, edi
xor ebp, ebp
cmp r8, 0x201
jae 0x4dff20
jmp 0x4dfeff
jae 0x4dffc4
cmp r8, 0x201
jae 0x4dff20
lea r13, [rsp + 0x98]
mov r14d, 0x200
mov r12, r8
jmp 0x4dff66
sub r8, rbp
sub rdi, rbp
cmp rdi, r8
jae 0x4dff47
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.0050b5e0
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rbx, r15
mov ebp, 0xffffffff
cmovb rbp, rbx
mov qword [rsp + 0x48], rbp
mov rdi, rbx
mov r13, qword [rsp + 0x28]
mov r14, rbp
mov r12, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.kernel32.dll_GetWindowsDirectoryW
mov esi, eax
test eax, eax
jne 0x4dff8b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4e00ab
mov r8d, esi
cmp r12, r8
jne 0x4dfef0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4e00cf
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x4dfeff
jmp 0x4dff20
cmp r14, r8
jb 0x4e00e9
mov rax, qword [rsp + 0x70]
mov rdi, qword [rax]
mov rsi, qword [rax + 8]
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.004b82f0
movups xmm0, xmmword [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x50]
call fcn.004aeeb0
cmp byte [rsi], 0
jne 0x4e002a
lea rdx, [0x006849b8]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.004afa20
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.004f8210
mov rdx, qword [rsp + 0x50]
test rdx, rdx
mov rsi, qword [rsp + 0x30]
je 0x4e005d
mov rcx, qword [rsp + 0x58]
mov r8d, 1
call fcn.00442170
mov rax, qword [rsp + 0x88]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 0
test rbx, rbx
je 0x4e0094
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.00442170
mov rax, rsi
add rsp, 0x498
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 rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
jne 0x4e007e
jmp 0x4e0094
lea rcx, str.internal_error:_entered_unreachable_codedata_provided_contains_a_nul_byte
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00552640
jmp 0x4e00fe
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.0055dfa0
ud2