Function at 0x140002210
Capabilities:
Delete file
Delete registry key
Unload driver
Write file on windows

Disassembly:
push rbp
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, rdx
cmp ecx, 2
jge 0x140002243
lea rcx, str.Invalid_arguments._Usage:_GDRVLoader.exe_TargetDriver.sys_n
call fcn.140001010
xor eax, eax
jmp 0x1400023d6
mov qword [rsp + 0x78], rdi
lea rcx, str.AutoUpdate_n
mov qword [rsp + 0x70], r14
mov edi, 0xc0000001
call fcn.140001010
lea rcx, str.Welcome_to_WarRock_Papaya_cheat_n
call fcn.140001010
lea rcx, str.to_activate_cheat_type:_WarRock__warrock_n
call fcn.140001010
lea rcx, str.to_Disable_cheat_type:_wrpapaya__WRpapaya__n
call fcn.140001010
lea rdx, [rsp + 0x58]
lea rcx, [0x140004908]
call fcn.1400021c0
xor r14d, r14d
mov qword [rsp + 0x90], rbx
mov ecx, r14d
mov qword [rsp + 0xa0], rsi
lea rdx, [rsp + 0x58]
lea r8, str.WarRock
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400022d6
cmp rcx, 8
jne 0x1400022c0
jmp 0x140002308
mov rcx, r14
lea rdx, [rsp + 0x58]
lea r8, str.warrock
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400023ec
cmp rcx, 8
jne 0x1400022f0
mov qword [rsp + 0x30], r14
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x10000000
mov dword [rsp + 0x44], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000237d
cmp rsi, 0xffffffffffffffff
je 0x1400023a9
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0x6650
lea rdx, [0x140006040]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400023a9
mov rdx, qword [rbp + 8]
call fcn.140001ec0
mov edi, eax
test eax, eax
js 0x140002398
lea rcx, str.Driver_loaded_successfully_n
call fcn.140001010
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jns 0x1400023b7
mov edx, edi
lea rcx, str.Error:__08X_n
call fcn.140001010
mov r14, qword [rsp + 0x70]
mov eax, 1
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002540
add rsp, 0x80
pop rbp
ret
lea rdx, str.WRpapaya
lea rcx, [rsp + 0x58]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140002416
lea rdx, str.wrpapaya
lea rcx, [rsp + 0x58]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400023a9
mov rbx, qword [rbp + 8]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edi, eax
test eax, eax
js 0x1400023a9
mov edi, 0x34
lea rsi, [0x14000cea0]
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rcx, rsi
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400024bb
nop dword [rax]
nop word [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140002470
movzx ecx, word [rax]
test cx, cx
je 0x1400024bb
lea rax, [0x14000cf08]
nop dword [rax]
cmp cx, 0x2e
je 0x1400024bb
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x1400024a0
movsxd rax, edi
lea rcx, [rsp + 0x48]
mov rdx, rsi
mov word [rsi + rax*2], r14w
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov edi, eax
test eax, eax
js 0x1400024f6
lea rdx, [0x14000cec4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x40]
lea r9, [rsp + 0x40]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test edi, edi
js 0x1400023a9
lea rcx, str.Driver_unloaded_successfully_n
call fcn.140001010
jmp 0x1400023b7