joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c570
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 0x43c600
jmp 0x43c5df
jae 0x43c6a4
cmp r8, 0x201
jae 0x43c600
lea r13, [rsp + 0x98]
mov r14d, 0x200
mov r12, r8
jmp 0x43c646
sub r8, rbp
sub rdi, rbp
cmp rdi, r8
jae 0x43c627
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.00468c70
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 0x43c66b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x43c78b
mov r8d, esi
cmp r12, r8
jne 0x43c5d0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43c7af
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x43c5df
jmp 0x43c600
cmp r14, r8
jb 0x43c7c9
mov rax, qword [rsp + 0x70]
mov rdi, qword [rax]
mov rsi, qword [rax + 8]
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.00415980
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.0040c540
cmp byte [rsi], 0
jne 0x43c70a
lea rdx, [0x004c76a8]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.0040d0b0
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.004558a0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
mov rsi, qword [rsp + 0x30]
je 0x43c73d
mov rcx, qword [rsp + 0x58]
mov r8d, 1
call fcn.004018d0
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 0x43c774
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.004018d0
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 0x43c75e
jmp 0x43c774
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.004ada10
jmp 0x43c7de
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.004b9370
ud2
Function at 0x43d330
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 0x43d3b0
jmp 0x43d39f
jae 0x43d454
cmp r8, 0x201
jae 0x43d3b0
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x43d3f7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x43d3d7
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.00468c70
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 0x43d41b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x43d4b2
mov r8d, esi
cmp rbp, r8
jne 0x43d390
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43d4d2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x43d39f
jmp 0x43d3b0
cmp r13, r8
jb 0x43d4ec
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.00415980
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 0x43d49b
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.004018d0
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 0x43d485
jmp 0x43d49b
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.004ada10
jmp 0x43d501
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.004b9370
ud2
Function at 0x43d520
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 0x43d5b0
jmp 0x43d58f
jae 0x43d654
cmp r8, 0x201
jae 0x43d5b0
lea r13, [rsp + 0x98]
mov r14d, 0x200
mov r12, r8
jmp 0x43d5f6
sub r8, rbp
sub rdi, rbp
cmp rdi, r8
jae 0x43d5d7
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.00468c70
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 0x43d61b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x43d73b
mov r8d, esi
cmp r12, r8
jne 0x43d580
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43d75f
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x43d58f
jmp 0x43d5b0
cmp r14, r8
jb 0x43d779
mov rax, qword [rsp + 0x70]
mov rdi, qword [rax]
mov rsi, qword [rax + 8]
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.00415980
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.0040c540
cmp byte [rsi], 0
jne 0x43d6ba
lea rdx, [0x004c76a8]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.0040d0b0
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.004558a0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
mov rsi, qword [rsp + 0x30]
je 0x43d6ed
mov rcx, qword [rsp + 0x58]
mov r8d, 1
call fcn.004018d0
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 0x43d724
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.004018d0
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 0x43d70e
jmp 0x43d724
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.004ada10
jmp 0x43d78e
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.004b9370
ud2
Function at 0x43d7c0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov rax, qword [rdx + 8]
mov qword [rsp + 0x50], rax
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor edi, edi
xor ebp, ebp
cmp r8, 0x201
jae 0x43d850
jmp 0x43d83f
jae 0x43d905
cmp r8, 0x201
jae 0x43d850
lea r13, [rsp + 0x78]
mov esi, 0x200
mov r12, r8
jmp 0x43d896
sub r8, rbp
sub rdi, rbp
cmp rdi, r8
jae 0x43d877
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.00468c70
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rbx, r14
mov ebp, 0xffffffff
cmovb rbp, rbx
mov qword [rsp + 0x48], rbp
mov rdi, rbx
mov r13, qword [rsp + 0x28]
mov rsi, rbp
mov r12, rbp
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x50]
mov rdx, r13
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x43d8c1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x43d963
mov r8d, r15d
cmp r12, r8
jne 0x43d830
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43d983
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov r14d, 0xffffffff
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x43d83f
jmp 0x43d850
cmp rsi, r8
jb 0x43d99d
lea rcx, [rsp + 0x58]
mov rdx, r13
call fcn.00415980
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
mov rsi, qword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x43d94c
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.004018d0
mov rax, rsi
add rsp, 0x478
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], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x43d936
jmp 0x43d94c
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.004ada10
jmp 0x43d9b2
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.004b9370
ud2
Function at 0x43d9d0
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 esi, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
xor edi, edi
xor r15d, r15d
cmp rsi, 0x201
jae 0x43da50
jmp 0x43da3f
jae 0x43daff
cmp rsi, 0x201
jae 0x43da50
lea r13, [rsp + 0x48]
mov ebp, 0x200
mov r12, rsi
jmp 0x43da9f
sub rsi, r15
sub rdi, r15
cmp rdi, rsi
jae 0x43da7a
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, rsi
call fcn.00468c70
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rdi, rbx
mov r13, qword [rsp + 0x20]
mov rbp, r15
mov r12, r15
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 0x43dac1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x43db2c
mov esi, r14d
cmp r12, rsi
jne 0x43da30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43dba9
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov rsi, r12
cmp rsi, 0x201
jb 0x43da3f
jmp 0x43da50
cmp rbp, rsi
jb 0x43dbc3
test r14d, r14d
je 0x43db50
lea r14, [rsi + rsi]
mov edx, 2
mov rcx, r14
call fcn.004018c0
test rax, rax
je 0x43dbd7
mov r15, rax
jmp 0x43db59
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], 0
test rbx, rbx
jne 0x43db7c
jmp 0x43db92
mov r15d, 2
xor r14d, r14d
mov rcx, r15
mov rdx, r13
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rsi
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], rsi
test rbx, rbx
je 0x43db92
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.004018d0
mov rax, rdi
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_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.004ada10
jmp 0x43dbe4
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, rsi
mov rdx, rbp
call fcn.004b9370
jmp 0x43dbe4
mov edx, 2
mov rcx, r14
call fcn.0048d440
ud2
Function at 0x43e3d0
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 r14, qword [rdx]
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor r15d, r15d
mov r12d, 0xffffffff
xor edi, edi
xor esi, esi
cmp r8, 0x201
jae 0x43e4f3
jmp 0x43e453
jae 0x43e53e
cmp r8, 0x201
jae 0x43e4f3
lea rbp, [rsp + 0x68]
mov ebx, 0x200
mov r13, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x48], r13d
mov rcx, r14
mov rdx, rbp
lea r8, [rsp + 0x48]
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x43e490
mov ecx, dword [rsp + 0x48]
dec ecx
test ecx, ecx
jne 0x43e4bf
jmp 0x43e4b0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43e4b0
mov ecx, dword [rsp + 0x48]
test ecx, ecx
jne 0x43e4bf
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
test eax, eax
jne 0x43e59c
mov r8d, ecx
cmp r13, r8
jne 0x43e440
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43e5bc
add r13, r13
cmp r13, r12
cmovae r13, r12
mov r8, r13
cmp r8, 0x201
jb 0x43e453
sub r8, rsi
sub rdi, rsi
cmp rdi, r8
jae 0x43e51a
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.00468c70
mov r15, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp r15, r12
mov esi, 0xffffffff
cmovb rsi, r15
mov qword [rsp + 0x40], rsi
mov rdi, r15
mov rbp, qword [rsp + 0x20]
mov rbx, rsi
mov r13, rsi
jmp 0x43e460
cmp rbx, r8
jb 0x43e5d6
lea rcx, [rsp + 0x48]
mov rdx, rbp
call fcn.00415980
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 r15, r15
je 0x43e585
add r15, r15
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, r15
call fcn.004018d0
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 r15, r15
jne 0x43e56f
jmp 0x43e585
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.004ada10
jmp 0x43e5eb
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.004b9370
ud2
Function at 0x4558a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.004468b0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x4558e4
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x455937
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x455958
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x45592d
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x45591a
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.004018d0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.004018d0
mov qword [rsi + 8], 0
jmp 0x455958
mov qword [rsi + 8], 0
test rbx, rbx
je 0x455958
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.004018d0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x4595a0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r14, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.0048bcf0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x4595f2
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x45968d
mov r8d, 1
jmp 0x459688
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
movzx ebp, word [r14]
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 + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x45965e
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x45967c
jmp 0x45968d
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x45968d
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.004018d0
mov rax, rsi
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x45aba0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdx, qword [r8 + 8]
mov rsi, qword [r8 + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x45ac75
mov rdi, r8
mov r8d, 0xffffffff
cmp rax, r8
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx]
lea rax, [0x0045ae30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x45ac4c
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x45ac10
mov ecx, dword [rsp + 0x34]
test ecx, ecx
jne 0x45ac53
mov eax, dword [rsp + 0x38]
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x45ac6e
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rsi, rcx
shl rsi, 0x20
or rsi, 2
call fcn.0043bdb0
mov ecx, eax
xor eax, eax
cmp cl, 0xb
cmovne rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
lea r8, [0x004c9220]
mov rcx, rsi
call fcn.004b92e0
ud2

Function at 0x45b3b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x45b4bb
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x45b3e7
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x45b480
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x45b49e
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x45b43d
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x45b459
jmp 0x45b44e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x45b454
cmp eax, 0x6d
jne 0x45b470
mov byte [rsi + 1], 0
jmp 0x45b464
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x45b466
mov r8d, 0x10
mov rcx, rbx
call fcn.00468a10
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x45b3f4
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.00468a10
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x45b3f4
mov qword [rsp + 0x40], 0
lea rax, str.library_std_src_sys_windows_pipe.rs
mov qword [rsp + 0x20], rax
lea r8, [0x004c9548]
lea r9, [rsp + 0x30]
xor ecx, ecx
mov rdx, rdi
call fcn.00439340
ud2
Function at 0x45b5e0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call fcn.004018c0
test rax, rax
je 0x45b6a3
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x0045b700]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x45b696
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x45b66f
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.004018d0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.004018d0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call fcn.0048d440
ud2

Function at 0x45e970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x45e9a0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45e9b5
cmp byte [rax + 8], 0
je 0x45e9b5
add rax, 9
jmp 0x45ea3a
mov rcx, rdi
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45e991
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x45ea23
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45ea38
mov rbx, rax
test rax, rax
jne 0x45ea00
mov ecx, 0x10
mov edx, 8
call fcn.004018c0
test rax, rax
je 0x45ea4e
mov rbx, rax
mov qword [rax], rdi
mov byte [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x45ea42
dec ecx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x45ea16
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rbx + 9]
mov byte [rbx + 8], 1
mov byte [rbx + 9], cl
jmp 0x45ea3a
mov rcx, rdi
call fcn.0043b930
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45e9c9
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.0043b930
mov ecx, eax
jmp 0x45e9f8
mov ecx, 0x10
mov edx, 8
call fcn.0048d440
ud2