Function at 0x140001d50
Capabilities:
Acquire debug privileges
Copy file
Delete file
Extract resource via kernel32 functions
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd18]
sub rsp, 0xdf0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0xce0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r13d, 1
xor r14d, r14d
lea r12d, [r13 + 0xf]
test eax, eax
je 0x140001e17
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140001e11
mov dword [rsp + 0x48], r13d
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, r12d
lea r8, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001e17
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x230]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, r14
nop word [rax + rax]
movzx ecx, word [rsp + rdx + 0x60]
mov word [rbp + rdx + 0x6c0], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140001e70
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x140001f64
lea rax, [rbp + 0xae0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x2b0]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea rcx, [rbp + 0x2b0]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140001ed0
mov r8d, r14d
test eax, eax
je 0x140001ef0
cdqe
cmp word [rbp + rax*2 + 0x2ae], 0x5c
cmovne r8d, r13d
mov rcx, r14
movzx eax, word [rsp + rcx + 0x38]
mov word [rbp + rcx + 0x6c0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001ef3
lea rcx, [rbp + 0x6c0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x140001f14
lea r9, [rbp + 0x2b0]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r9 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001f30
test r8d, r8d
je 0x140001f64
lea rcx, [rbp + 0x6c0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x140001f52
mov eax, dword [0x140004408]
mov dword [rcx], eax
lea r8, [rbp + 0x6c0]
lea rdx, str._swdct.lic.dll
lea rcx, [rbp + 0x4b0]
call fcn.140002560
lea rcx, [rbp + 0x4b0]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140001f90
test rax, rax
je 0x140002120
xor edx, edx
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
jne 0x140002120
mov rsi, r14
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, rdi
je 0x140001feb
mov esi, dword [rsp + 0x7c]
shl rsi, 0x20
mov ecx, dword [rbp - 0x80]
add rsi, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x140002120
mov ecx, esi
call fcn.140002638
mov r15, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
lea r8, [0x1400044f8]
lea rdx, [rbp + 0x4b0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r9, qword [rsp + 0x38]
mov r8d, esi
mov rdx, r13
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp + 0x2b0]
call fcn.140001070
mov r8d, esi
mov rdx, r15
lea rcx, [rbp + 0x2b0]
call fcn.140001150
lea rcx, [rbp + 0x2b0]
call fcn.140001260
cmp byte [rbp + 0x418], r14b
jne 0x14000207a
mov r13, r14
jmp 0x140002110
mov ecx, 0x21
call fcn.140002638
mov r13, rax
lea rbx, [rbp + 0x408]
mov rsi, rax
mov r15, r12
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rbx]
lea rdx, [0x14000440c]
mov rcx, rsi
call fcn.140001010
add rsi, 2
lea rbx, [rbx + 1]
sub r15, 1
jne 0x1400020a0
mov byte [r13 + 0x20], r14b
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, edi
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [rbp + rbx*2 + 0x1b0], r14w
mov r15, qword [rsp + 0x40]
mov rcx, r13
call fcn.140002630
mov rcx, r15
call fcn.140002630
lea r8, [0x140004500]
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400022fd
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1400022fd
mov qword [rsp + 0x40], rsi
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
mov qword [rsp + 0x48], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400021a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, esi
mov rdx, rax
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp + 0x2b0]
call fcn.140001070
mov r8d, esi
mov rdx, r15
lea rcx, [rbp + 0x2b0]
call fcn.140001150
lea rcx, [rbp + 0x2b0]
call fcn.140001260
cmp byte [rbp + 0x418], r14b
jne 0x1400021dd
mov r15, r14
jmp 0x14000226b
mov ecx, 0x21
call fcn.140002638
mov r15, rax
lea rbx, [rbp + 0x408]
mov rsi, rax
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rbx]
lea rdx, [0x14000440c]
mov rcx, rsi
call fcn.140001010
add rsi, 2
lea rbx, [rbx + 1]
sub r12, 1
jne 0x140002200
mov byte [r15 + 0x20], r14b
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, edi
mov r8, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [rbp + rbx*2 + 0x230], r14w
mov rcx, r15
call fcn.140002630
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400022a3
lea r9, [rbp + 0x8d0]
xor r8d, r8d
lea rdx, str.wdct.lic
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov qword [rsp + 0x38], r14
lea r8, [0x14000451c]
lea rdx, [rbp + 0x8d0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r9, qword [rsp + 0x38]
test r9, r9
je 0x1400022eb
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rcx, [rbp + 0x1b0]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140002310
test rax, rax
je 0x140002381
lea rcx, [rbp + 0x230]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140002330
test rax, rax
je 0x140002381
mov r8d, 0x20
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x140002381
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rdx, [rbp + 0x4b0]
lea rcx, [rbp + 0x8d0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rax, [rbp + 0x4b0]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140002390
test rdi, rdi
je 0x140002529
xor edx, edx
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
jne 0x140002529
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
lea r8, [0x140004500]
mov edx, 0x67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140002529
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140002529
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000242e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp + 0x2b0]
lea rcx, str.11WTU7I_1BBCIQ1_I4A9CN_1YNRYQ5_1XVZQ7B_16N7HIC
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002456
lea rcx, str.not_modify_n
call fcn.140001c80
jmp 0x140002529
lea rcx, [0x140004418]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000248f
lea rdx, [0x140004478]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000248f
lea rcx, [0x140004488]
call rax
nop
test rbx, rbx
je 0x1400024b0
lea rdx, [0x140004448]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400024b0
call rax
mov rdi, rax
jmp 0x1400024b3
mov rdi, r14
test rbx, rbx
je 0x1400024d2
lea rdx, [0x140004438]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400024d2
call rax
mov r14d, eax
mov r8d, r14d
mov rdx, rdi
lea rcx, str.did_:__s_expire__d_n
call fcn.140001ce0
test rbx, rbx
je 0x140002507
lea rdx, [0x140004460]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002507
lea rcx, [rbp + 0x2b0]
call rax
lea rdx, [rbp + 0x2b0]
lea rcx, str.auto_register_license_:__s_n
call fcn.140001ce0
nop
test rbx, rbx
je 0x140002529
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rbp + 0xce0]
xor rcx, rsp
call fcn.1400025d0
lea r11, [rsp + 0xdf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret