Function at 0x140003f10
Capabilities:
Execute command
Resume thread
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov r15, rdx
movsxd r14, ecx
xor r12d, r12d
mov dword [rbp - 0x68], r12d
mov dword [0x140053024], 5
mov rdi, qword [rdx]
mov rsi, 0xffffffffffffffff
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], r12b
jne 0x140003f70
call fcn.14001569c
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rbx
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140002520
mov r13d, 3
mov dword [rbp - 0x68], r13d
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x40]
call fcn.140002a10
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140003ff0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003feb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003feb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
movdqa xmm0, xmmword [0x14004b210]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r12w
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae rcx, qword [rbp + 0x78]
call fcn.140015938
test eax, eax
jne 0x1400053f5
lea r12, [0x1400520b8]
lea ebx, [rax + 1]
test r14, r14
jle 0x140004131
xor edi, edi
lea r13, [0x140052098]
nop dword [rax]
mov rbx, qword [r15 + rdi*8]
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x140004047
cmp rax, 8
jne 0x14000408c
mov r8, rax
lea rdx, str._account
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000408c
inc rdi
mov rdx, qword [r15 + rdi*8]
mov r8, rsi
inc r8
cmp byte [rdx + r8], 0
jne 0x140004076
mov rcx, r12
call fcn.140003db0
mov rbx, qword [r15 + rdi*8]
mov rax, rsi
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140004090
cmp rax, 7
jne 0x1400040d6
mov r8, rax
lea rdx, str._region
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400040d6
inc rdi
mov rdx, qword [r15 + rdi*8]
mov r8, rsi
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x1400040c0
mov rcx, r13
call fcn.140003db0
mov rbx, qword [r15 + rdi*8]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400040e0
cmp rax, 2
jne 0x14000411c
cmp byte [rbx], 0x2d
jne 0x1400040fe
cmp byte [rbx + 1], 0x69
jne 0x1400040fe
xor ecx, ecx
jmp 0x140004103
sbb ecx, ecx
or ecx, 1
movzx eax, byte [0x140053021]
test ecx, ecx
mov ebx, 1
cmove eax, ebx
mov byte [0x140053021], al
jmp 0x140004121
mov ebx, 1
inc rdi
cmp rdi, r14
jl 0x140004040
mov r13d, dword [rbp - 0x68]
cmp byte [0x140053021], 0
jne 0x140004152
lea rcx, [0x1400520f8]
call fcn.140012d70
lea rcx, [0x140052118]
call fcn.140012d70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [0x140053070]
cmp qword [0x140053030], 0
cmove eax, ebx
mov byte [0x140053070], al
lea rdx, str.cfg.ini
call fcn.1400066e0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140005480
test al, al
jne 0x14000420e
lea rdx, str.Failed_to_open_GenshinImpact_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006a20
lea rdx, [0x140006bf0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [0x140018e28]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x140004207
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov r8, rcx
cmp rdx, 0x1000
jb 0x140004202
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x1400053b1
call fcn.140015ce4
mov eax, ebx
jmp 0x1400053bf
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae rcx, qword [rbp + 0x78]
call fcn.140015938
test eax, eax
jne 0x140005401
lea rax, str.Inject
mov qword [rbp], rax
xor r15d, r15d
mov qword [rbp + 8], r15
mov dword [rbp + 0x10], r15d
lea r8, [rbp]
lea rdx, [rbp - 0x20]
lea rcx, [0x140053050]
call fcn.14000a2b0
lea r8, [rbp]
mov rbx, qword [rbp - 0x10]
mov rdx, rbx
call fcn.14000a380
test al, al
je 0x1400042ab
cmp rbx, qword [0x140053050]
je 0x1400042ab
mov qword [rbp - 0x68], r15
lea rax, str.GenshinPath
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov dword [rbp + 0x10], r15d
lea r8, [rbp]
lea rdx, [rbp - 0x68]
lea rcx, [rbx + 0x38]
call fcn.140007f30
mov rax, qword [rbp - 0x68]
cmp rax, qword [rbx + 0x38]
je 0x1400042ab
mov rdx, qword [rax + 0x38]
jmp 0x1400042ae
mov rdx, r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], 0
mov r8, rsi
inc r8
cmp byte [rdx + r8], 0
jne 0x1400042c5
lea rcx, [rbp + 0x38]
call fcn.140003db0
nop
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x48]
cmp rcx, 0x11
jae 0x1400042f5
xor al, al
jmp 0x140004313
add rcx, 0xffffffffffffffef
add rcx, rax
mov r8d, 0x11
lea rdx, str.GenshinImpact.exe
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
sete al
mov byte [0x140053020], al
call fcn.1400067f0
lea rcx, [0x140053030]
call fcn.140006610
lea rax, str.SoftwaremiHoYoGenshin_Impact
lea rdx, str.SoftwaremiHoYo_
cmp byte [0x140053020], 0
cmovne rdx, rax
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], r15w
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004360
lea rcx, [rbp + 0x58]
call fcn.140006180
nop
mov edi, 0x80000000
movabs r14, 0x7fffffffffffffff
cmp qword [0x1400520c8], 0
je 0x1400047aa
movzx eax, byte [0x140053070]
cmp qword [0x140053030], 0
mov ecx, 1
cmove eax, ecx
mov byte [0x140053070], al
lea rdx, str.accounts.ini
call fcn.1400066e0
mov r8, r12
cmp qword [0x1400520d0], 0x10
cmovae r8, qword [0x1400520b8]
lea rdx, str.Accounts
call fcn.140006890
mov r8, r12
lea rdx, str.Accounts
test rax, rax
je 0x1400046c1
cmp qword [0x1400520d0], 0x10
cmovae r8, qword [0x1400520b8]
call fcn.140006890
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], 0
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004420
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140003db0
nop
lea r8, [rbp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140003670
mov rdi, rax
lea rcx, [rbp - 0x20]
mov r8, qword [rbp - 0x10]
cmp qword [rbp - 8], 0x10
jb 0x14000445f
mov rdx, qword [rbp - 0x20]
add r8, rdx
jmp 0x140004466
add r8, rcx
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.140006c30
mov rbx, rax
lea rax, str.MIHOYOSDK_ADL_PROD_OVERSEA_h1158948810
lea rdx, str.MIHOYOSDK_ADL_PROD_CN_h3123967166
cmp byte [0x140053020], 0
cmovne rdx, rax
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400044a0
mov r8, rsi
lea rcx, [rbp - 0x60]
call fcn.140006180
nop
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rcx
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000540d
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140004535
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004530
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004530
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
mov rcx, qword [rbp]
test rcx, rcx
je 0x14000458f
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000457e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000457e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov rcx, qword [rbp - 0x68]
mov edi, 0x80000000
test rcx, rcx
je 0x1400045c8
lea rax, [rcx + rdi]
cmp rax, 5
jbe 0x1400045c8
cmp rcx, 0xffffffff80000007
je 0x1400045c8
cmp rcx, 0xffffffff80000060
je 0x1400045c8
cmp rcx, 0xffffffff80000050
je 0x1400045c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1400520c8]
mov rax, r14
sub rax, rcx
cmp rax, 0x14
jb 0x140005432
cmp qword [0x1400520d0], 0x10
cmovae r12, qword [0x1400520b8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0x14
lea r9, str.Switched_account_to
lea rcx, [rbp - 0x40]
call fcn.1400081a0
mov r13d, 7
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r9, qword [rbp - 0x40]
lea r8d, [r13 + 0x4b]
lea rdx, str.D:_aMiraiMiraiinjector_srcmain.cpp
lea ecx, [r13 - 2]
call fcn.140013ec0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14000467a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004674
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004674
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14000479e
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
jmp 0x14000479e
cmp qword [0x1400520d0], 0x10
cmovae r8, qword [0x1400520b8]
call fcn.140006890
test rax, rax
jne 0x14000479e
mov rcx, qword [0x1400520c8]
mov rax, r14
sub rax, rcx
cmp rax, 0xf
jb 0x140005438
cmp qword [0x1400520d0], 0x10
cmovae r12, qword [0x1400520b8]
mov qword [rsp + 0x30], 0xf
lea rax, str._does_not_exist
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, r12
lea rcx, [rbp - 0x40]
call fcn.1400081a0
mov r13d, 0xb
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r9, qword [rbp - 0x40]
lea r8d, [r13 + 0x4b]
lea rdx, str.D:_aMiraiMiraiinjector_srcmain.cpp
lea ecx, [r13 - 9]
call fcn.140013ec0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140004793
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000478e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000478e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140053030]
call fcn.140006610
mov rdx, qword [0x1400520a8]
xor r12d, r12d
test rdx, rdx
je 0x140004ed3
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r12b
mov r10, qword [0x1400520b0]
cmp r10, 0x10
setae r11b
lea r15, [0x140052098]
mov rax, r15
mov r9, qword [0x140052098]
cmovae rax, r9
cmp rdx, 3
jne 0x140004826
cmp byte [rax], 0x75
jne 0x140004811
cmp byte [rax + 1], 0x73
jne 0x140004811
cmp byte [rax + 2], 0x61
jne 0x140004811
mov eax, r12d
jmp 0x140004816
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140004826
lea rdx, str.os_usa
jmp 0x1400048ed
mov rax, r15
test r11b, r11b
cmovne rax, r9
cmp rdx, 2
jne 0x14000485f
cmp byte [rax], 0x65
jne 0x140004846
cmp byte [rax + 1], 0x75
jne 0x140004846
mov eax, r12d
jmp 0x14000484b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14000485f
lea rdx, str.os_euro
lea r8d, [rax + 7]
jmp 0x1400048f3
mov r8, r15
test r11b, r11b
cmovne r8, r9
cmp rdx, 4
jne 0x1400048af
mov rcx, r12
lea rbx, str.asia
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rbx + rcx - 1]
jne 0x140004899
cmp rcx, 4
jne 0x140004880
mov eax, r12d
jmp 0x14000489e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400048af
lea rdx, str.os_asia
lea r8d, [rax + 7]
jmp 0x1400048f3
mov rax, r15
test r11b, r11b
cmovne rax, r9
cmp rdx, 3
jne 0x140004fee
cmp byte [rax], 0x74
jne 0x1400048d9
cmp byte [rax + 1], 0x68
jne 0x1400048d9
cmp byte [rax + 2], 0x6d
jne 0x1400048d9
mov eax, r12d
jmp 0x1400048de
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140004fee
lea rdx, str.os_cht
mov r8d, 6
lea rcx, [rbp - 0x40]
call fcn.140003db0
cmp qword [rbp - 0x30], 0
je 0x140004fd9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
lea r8, [rbp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140003670
mov rbx, rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
mov r8d, 0x18
lea rdx, str.GENERAL_DATA_h2389025596
lea rcx, [rsp + 0x40]
call fcn.140006180
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp]
mov rcx, rbx
call fcn.1400037b0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400049ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400049f8
lea rax, [rcx + rdi]
cmp rax, 5
jbe 0x1400049f4
cmp rcx, 0xffffffff80000007
je 0x1400049f4
cmp rcx, 0xffffffff80000060
je 0x1400049f4
cmp rcx, 0xffffffff80000050
je 0x1400049f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov rcx, r12
mov qword [rbp - 0x50], rcx
mov r8d, 0xf
mov qword [rbp - 0x48], r8
mov byte [rbp - 0x60], cl
mov rsi, qword [rbp + 8]
mov rdx, rsi
mov rdi, qword [rbp]
sub rdx, rdi
cmp rdx, r8
jbe 0x140004a37
lea rcx, [rbp - 0x60]
call fcn.140007520
mov rcx, r12
mov qword [rbp - 0x50], rcx
mov r8, qword [rbp - 0x48]
mov rbx, rdi
lea rax, [rbp - 0x60]
mov qword [rbp - 0x68], rax
cmp rdi, rsi
je 0x140004a8b
movzx r9d, byte [rbx]
cmp rcx, r8
jae 0x140004a70
lea rax, [rcx + 1]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
cmp r8, 0x10
cmovae rax, qword [rbp - 0x60]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140004a79
lea rcx, [rbp - 0x60]
call fcn.140007830
inc rbx
cmp rbx, rsi
je 0x140004a8b
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
jmp 0x140004a47
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x70]
mov qword [rbp - 0x68], rax
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x80]
call fcn.140007cc0
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x80]
call fcn.140006320
mov qword [rsp + 0x78], rax
lea r8, [0x14001902e]
lea rcx, [rsp + 0x68]
call fcn.140006f70
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
or r13d, 0x10
mov dword [rbp - 0x68], r13d
lea rcx, [rbp - 0x60]
mov r9, qword [rbp - 0x50]
cmp qword [rbp - 0x48], 0x10
jb 0x140004b0b
mov r8, qword [rbp - 0x60]
add r9, r8
jmp 0x140004b12
add r9, rcx
lea r8, [rbp - 0x60]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.14000a050
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140004b71
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x50], xmm1
and r13d, 0xffffffef
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.140006100
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140004bc9
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140004bc9
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
lea r8, [rbp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140003670
mov rsi, rax
lea rcx, [rbp - 0x60]
mov r8, qword [rbp - 0x50]
cmp qword [rbp - 0x48], 0x10
jb 0x140004bf1
mov rdx, qword [rbp - 0x60]
add r8, rdx
jmp 0x140004bf8
add r8, rcx
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140006c30
mov rbx, rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
mov r8d, 0x18
lea rdx, str.GENERAL_DATA_h2389025596
lea rcx, [rsp + 0x40]
call fcn.140006180
nop
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rcx
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000543e
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140004cb8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140004d15
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp - 0x20], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140004d4d
mov eax, 0x80000000
add rax, rcx
cmp rax, 5
jbe 0x140004d4d
cmp rcx, 0xffffffff80000007
je 0x140004d4d
cmp rcx, 0xffffffff80000060
je 0x140004d4d
cmp rcx, 0xffffffff80000050
je 0x140004d4d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1400520a8]
sub r14, rax
cmp r14, 0x13
jb 0x140005463
cmp qword [0x1400520b0], 0x10
cmovae r15, qword [0x140052098]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0x13
lea r9, str.Switched_region_to
lea rcx, [rsp + 0x40]
call fcn.1400081a0
or r13d, 0x20
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
mov r8d, 0x6c
lea rdx, str.D:_aMiraiMiraiinjector_srcmain.cpp
lea ecx, [r8 - 0x67]
call fcn.140013ec0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140004e02
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dfc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140004e40
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
test rdi, rdi
je 0x140004e8c
mov rdx, qword [rbp + 0x10]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140004e84
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140015ce4
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140004ed3
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ece
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400052b9
call fcn.140015ce4
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], 0
mov r8d, 9
lea rdx, str.mirai.dll
lea rcx, [rbp + 0x18]
call fcn.140003db0
nop
mov rdi, qword [rbp + 0x28]
lea rbx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rbx, qword [rbp + 0x18]
call fcn.14001569c
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140002520
or r13d, 0x180
mov qword [rbp - 0x40], r12
movdqa xmm0, xmmword [0x14004b210]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r12w
bts r13d, 9
mov dword [rbp - 0x68], r13d
lea rcx, [rbp - 0x40]
call fcn.140003450
test eax, eax
jne 0x140005469
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.140002b50
nop
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140002750
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.140002b50
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400050a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000509d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000509d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r10, qword [0x1400520b0]
mov rdx, qword [0x1400520a8]
mov r9, qword [0x140052098]
sub r14, rdx
cmp r14, 0x16
jb 0x1400053ef
cmp r10, 0x10
cmovae r15, r9
mov qword [rsp + 0x30], 0x16
lea rax, str._is_not_a_valid_region
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r9, r15
lea rcx, [rsp + 0x40]
call fcn.1400081a0
or r13d, 0x40
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
mov r8d, 0x6f
lea rdx, str.D:_aMiraiMiraiinjector_srcmain.cpp
lea ecx, [r8 - 0x6d]
call fcn.140013ec0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140004e8c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140015ce4
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1400050e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
movdqa xmm0, xmmword [0x14004b210]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r12w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000513d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005138
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005138
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
movdqa xmm0, xmmword [0x14004b210]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
lea rax, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rax, qword [rbp + 0x98]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 0x18], rax
call fcn.14001569c
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140009f10
nop
lea rdx, [rbp - 0x60]
mov rbx, qword [rbp - 0x70]
mov rcx, rbx
call fcn.140013020
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400051e4
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
cmp byte [0x140053022], 0
je 0x140005206
cmp qword [0x1400520e8], 0
je 0x140005206
lea rdx, [0x1400520d8]
mov rcx, rbx
call fcn.140013020
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 8
jb 0x14000526f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000526a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000526a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
movdqa xmm0, xmmword [0x14004b210]
movdqu xmmword [rbp + 0xa8], xmm0
mov word [rbp + 0x98], r12w
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x1400052c5
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp + 0x70]
cmp rdx, 8
jb 0x140005318
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005313
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005313
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], r12w
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140005367
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005362
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005362
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x1400053bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015ce4
xor eax, eax
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.140015a30
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001b90
nop
lea r8, [rbp + 0x78]
mov edx, eax
call fcn.1400033e0
int3
lea r8, [rbp + 0x78]
mov edx, eax
call fcn.1400033e0
nop
lea r8, str.Cannot_write_binary_data_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400039a0
lea rdx, [0x14004f340]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001b90
nop
call fcn.140001b90
nop
lea r8, str.Cannot_write_binary_data_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400039a0
lea rdx, [0x14004f340]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001b90
nop
mov edx, eax
call fcn.1400032f0
int3