Function at 0x140108040
Capabilities:
Encode data using xor
Parse pe header
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 - 0x80]
sub rsp, 0x180
mov rax, qword [0x14012d010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, rdx
mov qword [rbp - 0x80], rdx
mov r14, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rdx
mov esi, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_BlockInput]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor r12d, r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov rdi, qword [r13 + 0x10]
mov r15, r13
cmp qword [r13 + 0x18], 8
jb 0x1401080ad
mov r15, qword [r13]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x1401088a2
mov qword [rbp - 0x38], 7
cmp rdi, 8
jae 0x1401080dc
mov qword [rbp - 0x40], rdi
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x50], xmm0
jmp 0x14010811f
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x1401080f7
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
call fcn.140052280
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rbx
lea r8, [rdi*2 + 2]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.140050d30
nop
lea rcx, [rbp + 0x30]
call fcn.140051550
test al, al
jne 0x1401081c6
lea rcx, [rbp + 0x50]
call fcn.140051a90
lea rcx, [rbp + 0x30]
call fcn.140051a90
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x140108195
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140108185
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140108859
mov rcx, r8
call fcn.14010ef38
mov qword [r14], r12
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov rcx, r13
call fcn.140051a90
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14010e990
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, esi
call qword [sym.imp.USER32.dll_BlockInput]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor edi, edi
mov qword [rsp + 0x78], rdi
mov rdx, qword [r14 + 8]
sub rdx, qword [r14]
je 0x14010823b
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x14010889c
lea rcx, [rsp + 0x68]
call fcn.140050cb0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [r14 + 8]
mov rdx, qword [r14]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea r8, [rbx + rdi]
mov qword [rsp + 0x70], r8
xor edi, edi
jmp 0x140108240
mov r8, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
movdqa xmmword [rbp + 0x10], xmm0
mov rdx, qword [rsp + 0x68]
sub r8, rdx
lea rcx, [rbp - 0x10]
call fcn.140050b80
mov r12, qword [rbp - 0x10]
mov qword [rbp + 0x20], r12
movsxd rbx, dword [r12 + 0x3c]
add rbx, r12
mov qword [rbp + 0x28], rbx
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x140108860
cmp dword [rbx], 0x4550
jne 0x140108860
mov eax, 0x20b
cmp word [rbx + 0x18], ax
jne 0x140108860
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401082fc
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401082e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401082e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010ef38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x48], 7
mov dword [rsp + 0x4c], 0xde00dd
mov dword [rsp + 0x50], 0xd800ad
mov dword [rsp + 0x54], 0xe700cb
mov dword [rsp + 0x58], 0x8800eb
mov edx, edi
mov r8d, 0x81
nop dword [rax]
mov eax, edx
lea rcx, [rsp + 0x4c]
lea rcx, [rcx + rax*2]
lea eax, [r8 + rdx]
xor word [rcx], ax
inc edx
mov eax, dword [rsp + 0x48]
cmp edx, eax
jb 0x140108330
mov word [rsp + rax*2 + 0x4c], di
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14010838c
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ebx, dword [rbx + 0x50]
mov eax, 0xe
mov dword [rbp - 0x50], eax
movdqa xmm0, xmmword [0x140120c60]
movdqu xmmword [rbp - 0x4c], xmm0
mov edx, edi
test eax, eax
je 0x1401083c7
nop word [rax + rax]
mov eax, edx
lea rcx, [rbp - 0x4c]
add rcx, rax
lea eax, [rdx - 0x7f]
xor byte [rcx], al
inc edx
mov eax, dword [rbp - 0x50]
cmp edx, eax
jb 0x1401083b0
mov byte [rbp + rax - 0x4c], 0
mov eax, 0xc
mov dword [rsp + 0x48], eax
movdqa xmm0, xmmword [0x140120b20]
movdqu xmmword [rsp + 0x4c], xmm0
mov edx, edi
test eax, eax
je 0x140108409
nop dword [rax]
mov eax, edx
lea rcx, [rsp + 0x4c]
add rcx, rax
lea eax, [rdx - 0x7f]
xor byte [rcx], al
inc edx
mov eax, dword [rsp + 0x48]
cmp edx, eax
jb 0x1401083f0
mov byte [rsp + rax + 0x4c], 0
lea rdx, [rsp + 0x4c]
call fcn.14004ffb0
test rax, rax
jne 0x140108424
xor bl, bl
jmp 0x1401085f0
mov r8, rax
lea rdx, [rbp - 0x4c]
lea rcx, [rbp - 0x58]
call fcn.140050170
test rax, rax
jne 0x140108440
xor bl, bl
jmp 0x1401085f0
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14010e220
mov byte [rsp + 0x40], al
test al, al
je 0x1401085ed
mov ecx, esi
call qword [sym.imp.USER32.dll_BlockInput]
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x10]
call fcn.1400507a0
lea rax, [0x1401208c8]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.140050910
mov rcx, qword [rbp + 0x10]
cmp qword [rbp + 8], rcx
cmovne rcx, qword [rbp + 8]
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x28]
mov edx, dword [rax + 0x50]
lea rcx, [rbp + 8]
call fcn.140050530
mov r13, qword [rbp + 0x28]
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov r15, qword [rbp + 8]
mov r12, qword [rbp - 0x10]
xor eax, eax
cmp ax, word [r13 + 6]
jae 0x140108517
add rbx, r13
mov eax, dword [rbx + 0x18]
not eax
bt eax, 0x19
jae 0x140108506
mov ecx, dword [rbx]
add rcx, r15
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r12
test r8d, r8d
je 0x140108506
call sub.VCRUNTIME140.dll_memmove
inc rdi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp rdi, rax
jb 0x1401084e2
mov eax, dword [r13 + 0x50]
mov rcx, qword [rbp - 0x58]
xor edi, edi
cmp rcx, 0xffffffffffffffff
je 0x14010856a
mov qword [rbp - 0x50], 0x33
mov qword [rbp - 0x40], r15
mov rdx, qword [rsp + 0x60]
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x28]
lea r8, [rbp - 0x50]
mov edx, 0x80862007
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [r13 + 0x28]
add rdx, qword [rsp + 0x60]
lea r8, [rbp - 0x60]
lea rcx, [rbp - 0x58]
call fcn.14010d6a0
test al, al
je 0x14010858e
cmp dword [rbp - 0x60], 0
jge 0x14010864f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esi
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x5c], 0x82a1
mov r8d, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, r8d
lea rdx, [rbp - 0x5c]
add rdx, rax
lea eax, [r8 - 0x7f]
xor byte [rdx], al
inc r8d
mov eax, dword [rbp - 0x60]
cmp r8d, eax
jb 0x1401085b0
mov byte [rbp + rax - 0x5c], 0
lea rdx, [rbp - 0x5c]
call fcn.14004f570
lea rdx, [0x14004f740]
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]
xor bl, bl
jmp 0x140108654
movzx ebx, al
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esi
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x5c], 0x82a1
mov r8d, edi
nop word [rax + rax]
mov eax, r8d
lea rdx, [rbp - 0x5c]
add rdx, rax
lea eax, [r8 - 0x7f]
xor byte [rdx], al
inc r8d
mov eax, dword [rbp - 0x60]
cmp r8d, eax
jb 0x140108610
mov byte [rbp + rax - 0x5c], 0
lea rdx, [rbp - 0x5c]
call fcn.14004f570
lea rdx, [0x14004f740]
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]
mov r15, qword [rbp + 8]
jmp 0x140108658
movzx ebx, byte [rsp + 0x40]
mov r13, qword [rbp - 0x80]
lea rcx, [rbp + 0x30]
call fcn.1400517d0
test al, al
jne 0x1401086b9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esi
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x5c], 0x82a1
mov r8d, edi
nop dword [rax + rax]
mov eax, r8d
lea rdx, [rbp - 0x5c]
add rdx, rax
lea eax, [r8 - 0x7f]
xor byte [rdx], al
inc r8d
mov eax, dword [rbp - 0x60]
cmp r8d, eax
jb 0x140108680
mov byte [rbp + rax - 0x5c], 0
lea rdx, [rbp - 0x5c]
call fcn.14004f570
lea rdx, [0x14004f740]
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]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140108719
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esi
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x5c], 0x82a1
mov r8d, edi
nop dword [rax]
mov eax, r8d
lea rdx, [rbp - 0x5c]
add rdx, rax
lea eax, [r8 - 0x7f]
xor byte [rdx], al
inc r8d
mov eax, dword [rbp - 0x60]
cmp r8d, eax
jb 0x1401086e0
mov byte [rbp + rax - 0x5c], 0
lea rdx, [rbp - 0x5c]
call fcn.14004f570
lea rdx, [0x14004f740]
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, [rbp + 0x30]
call fcn.140051950
test al, al
jne 0x14010877a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [rbp - 0x60], esi
mov dword [rbp - 0x5c], 0x82a1
mov r9d, edi
nop word [rax + rax]
mov eax, r9d
lea r8, [rbp - 0x5c]
add r8, rax
lea eax, [r9 - 0x7f]
xor byte [r8], al
inc r9d
mov esi, dword [rbp - 0x60]
cmp r9d, esi
jb 0x140108740
mov byte [rbp + rsi - 0x5c], 0
lea rdx, [rbp - 0x5c]
call fcn.14004f570
lea rdx, [0x14004f740]
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]
xor ecx, ecx
call qword [sym.imp.USER32.dll_BlockInput]
nop
test r15, r15
je 0x1401087b8
mov rdx, qword [rbp + 0x18]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1401087b0
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401087e6
mov rcx, r15
call fcn.14010ef38
test r12, r12
je 0x1401087f6
mov rdx, qword [rbp]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x1401087ed
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401087ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.14010ef38
nop
lea rcx, [rbp + 0x50]
call fcn.140051a90
lea rcx, [rbp + 0x30]
call fcn.140051a90
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x140108849
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140108839
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140108859
mov rcx, r8
call fcn.14010ef38
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
mov rcx, r13
call fcn.140051a90
movzx eax, bl
jmp 0x14010819f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r10, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x78]
call fcn.140050780
mov rcx, rax
call fcn.14004e230
mov rdx, rax
mov rcx, r10
call fcn.14004f570
lea rdx, [0x14004f740]
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]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.140050760
nop
call fcn.14004c210
int3