Function at 0x14000e7a0
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, rdx
mov qword [rbp - 0x11], rdx
mov rbx, rcx
xor edi, edi
add rcx, 0x70
mov qword [rbp - 0x19], rcx
mov rdx, rcx
mov rcx, rax
call fcn.140005ff0
test al, al
jne 0x14000ec5f
movaps xmm0, xmmword [0x140048230]
movups xmmword [rbx + 0x60], xmm0
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], rdi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], dil
jne 0x14000e820
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140001e80
nop
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rdx, qword [rbp + 7]
sub rax, rdx
cmp rax, 9
jb 0x14000ecd9
lea r12, [rbp - 9]
mov r13, qword [rbp + 0xf]
cmp r13, 0xf
seta byte [rbp - 0x79]
mov r14, qword [rbp - 9]
cmova r12, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], rdi
lea r15, [rdx + 9]
mov edi, 0xf
mov ebx, edi
lea rsi, [rbp - 0x59]
movabs rax, 0x8000000000000000
lea r8d, [rdi + 7]
cmp r15, rbx
jbe 0x14000e90e
mov rbx, r15
or rbx, rdi
cmp rbx, rcx
jbe 0x14000e8d2
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.14003e440
test rax, rax
je 0x14000ea12
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
mov rdx, qword [rbp + 7]
jmp 0x14000e90a
cmp rbx, r8
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000e8f5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000eccd
jmp 0x14000e8af
test rcx, rcx
je 0x14000e905
call fcn.14003e440
mov rdx, qword [rbp + 7]
jmp 0x14000e907
xor eax, eax
mov rsi, rax
mov qword [rbp - 0x59], rsi
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], rbx
mov r8, rdx
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.load.dll]
mov r12, qword [rbp + 7]
movsd qword [r12 + rsi], xmm0
movzx eax, byte [0x140047628]
mov byte [r12 + rsi + 8], al
mov byte [rsi + r15], 0
lea rax, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rax, qword [rbp - 0x59]
mov qword [rbp - 0x69], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
call fcn.14003db10
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea r8, [rbp - 0x69]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.1400041e0
nop
lea rcx, [rbp - 0x39]
call fcn.140005b80
movzx ebx, al
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14000e9ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e9c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e9c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e484
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], ax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14000ea20
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e484
xor eax, eax
test bl, bl
je 0x14000ec23
lea rsi, [rbp - 9]
cmp byte [rbp - 0x79], 0
cmovne rsi, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
lea rbx, [rbp - 0x59]
cmp r15, 0xf
jbe 0x14000ead1
mov rdi, r15
or rdi, 0xf
movabs rcx, 0x7fffffffffffffff
cmp rdi, rcx
jbe 0x14000ea97
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14003e440
test rax, rax
je 0x14000ebe4
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000eacd
cmp rdi, 0x16
mov ecx, 0x16
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14000eac0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000ecd3
jmp 0x14000ea78
test rcx, rcx
je 0x14000eaca
call fcn.14003e440
mov rbx, rax
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], rdi
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.load.dll]
movsd qword [r12 + rbx], xmm0
movzx eax, byte [0x140047628]
mov byte [r12 + rbx + 8], al
mov byte [rbx + r15], 0
lea rax, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rax, qword [rbp - 0x59]
mov qword [rbp - 0x69], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
call fcn.14003db10
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea r8, [rbp - 0x69]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.1400041e0
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rcx, qword [rbp - 0x39]
call fcn.14003e1a4
shr rax, 0x20
test eax, eax
jne 0x14000ecba
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14000eba0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eb9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000eb9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e484
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], ax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14000ebf0
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ebeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ebeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e484
mov rdx, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x11]
call fcn.140005ff0
test al, al
jne 0x14000ec23
xor r9d, r9d
lea r8, str.diablo
lea rdx, str.Please_re_open_the_loader
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
cmp r13, 0xf
jbe 0x14000ec93
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14000ec55
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ec55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14003e484
jmp 0x14000ec93
mov ecx, 0x50
call fcn.14003e440
mov qword [rbp - 0x69], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov rcx, rax
call fcn.14000c880
nop
mov qword [0x1400b2b00], rax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14003e420
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x39]
mov edx, eax
lea rcx, str.remove
call fcn.140005240
nop
call fcn.1400014e0
int3
call fcn.1400014e0
int3
call fcn.140001580
int3