Function at 0x1403f9280
Capabilities:
Encode data using xor
Execute anti-debugging instructions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov qword [rbp + 0x468], 0
xor ecx, ecx
xor edx, edx
mov r8d, 0x54d50a7c
mov r9d, 0xa22dfceb
call fcn.1403fae70
cmp rbx, 0x12345678
je 0x1403f9318
mov r15, rax
call fcn.1403f8c60
test rdi, rdi
setns al
sets cl
cmp rdi, 0x10000
setae r13b
setb dl
and r13b, cl
and cl, dl
and al, dl
or r13b, al
xor r13b, cl
rdtsc
mov qword [rbp + 0x440], rdx
mov qword [rbp + 0x400], rax
je 0x1403f935d
xor r14d, r14d
jmp 0x1403f936a
cmp qword [0x1405f7d8c], 0x33c0
jne 0x1403f98dc
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x1a223a2b
mov ecx, 1
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1403faad0
add rax, 0x33c0
mov qword [0x1405f7d8c], rax
jmp 0x1403f98dc
movzx eax, byte [rdi]
add al, byte [0x140615b48]
sete r14b
mov r12, rbx
test rbx, rbx
jne 0x1403f938d
mov ecx, 1
xor edx, edx
mov r8d, 0x7fb4a6fe
mov r9d, 0x5b1d481c
call fcn.1403fae20
mov r12, rax
movzx eax, byte [0x140615b20]
mov ecx, eax
xor cl, 0xfe
test cl, al
je 0x1403f93de
mov dword [rsp + 0x20], 0xde99c40c
mov ecx, 1
mov edx, 1
mov r8d, 0x7701725
mov r9d, 0x529ce0b2
call fcn.1403fbb20
test rax, rax
je 0x1403f93de
test r13b, r13b
je 0x1403f9429
lea r9, [rbp + 0x468]
mov rcx, rbx
xor edx, edx
mov r8d, edi
jmp 0x1403f949c
test r12, r12
je 0x1403f94b4
mov eax, dword [0x140612960]
add eax, dword [r12 + 0x3c]
je 0x1403f94b4
mov eax, eax
cmp dword [r12 + rax], 0x4550
jne 0x1403f94b4
cmp dword [r12 + rax + 0x88], 0
je 0x1403f9422
cmp dword [r12 + rax + 0x8c], 0
jne 0x1403f94b4
xor esi, esi
jmp 0x1403f94d1
mov qword [rbp - 0x20], 0
xor ecx, ecx
test rdi, rdi
je 0x1403f947d
mov edx, 1
xor r8d, r8d
xor r9d, r9d
cmp byte [rdi + rcx], 0
setne r9b
movzx r8d, r8b
cmove r8d, edx
add rcx, r9
mov r9d, r8d
not r9b
mov r10d, r9d
and r10b, 1
mov r11d, r8d
xor r11b, 1
and r11b, r8b
or r11b, r10b
and r9b, 0xfe
or r9b, r11b
cmp r9b, 0xff
je 0x1403f9440
mov word [rbp - 0x20], cx
inc ecx
mov word [rbp - 0x1e], cx
mov qword [rbp - 0x18], rdi
lea rdx, [rbp - 0x20]
lea r9, [rbp + 0x468]
mov rcx, rbx
xor r8d, r8d
call qword [case.0x14016c073.0]
cmp eax, 0xc0000138
jne 0x1403f94b4
mov qword [rbp + 0x468], 0
lea rcx, [rbp - 0x20]
mov r8d, 0x400
xor edx, edx
call fcn.1404ad740
mov sil, 1
test r14b, r14b
je 0x1403f95da
mov rax, qword [rbp + 0x440]
shl rax, 0x20
mov r14, qword [rbp + 0x400]
or r14, rax
lea rcx, [rbp - 0x20]
mov r8d, 0x400
xor edx, edx
call fcn.1404ad740
rdtsc
shl rdx, 0x20
or rdx, rax
sub rdx, r14
cmp qword [0x1405f7d28], 0
je 0x1403f9519
mov rax, qword [0x1405f7d28]
cmp rax, rdx
jae 0x1403f9520
mov qword [0x1405f7d28], rdx
cmp qword [rbp + 0x468], 0
setne al
xor sil, 1
or sil, al
jne 0x1403f9879
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x58], 0xb970ad78
mov dword [rsp + 0x50], 0xbf3883e9
mov dword [rsp + 0x48], 0xfbf13cfd
mov qword [rsp + 0x40], 0
mov ecx, 1
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call fcn.1403fbaa0
cmp eax, 0x4750412d
je 0x1403f9879
mov dword [rsp + 0x20], 0xde99c40c
mov ecx, 1
mov edx, 1
mov r8d, 0x7701725
mov r9d, 0x529ce0b2
call fcn.1403fbb20
test rax, rax
je 0x1403f9879
inc qword [0x1405f7cc8]
cmp rdi, 0xffff
ja 0x1403f96e1
lea r9, [rbp + 0x468]
mov rcx, rbx
xor edx, edx
mov r8d, edi
jmp 0x1403f976d
xor r12d, r12d
xor ecx, ecx
mov edx, 1
mov r8, rbx
mov r9d, 0xce7c9fb1
call fcn.1403fab70
test rax, rax
je 0x1403f94d1
nop dword [rax + rax]
mov r14d, r12d
movzx ecx, word [rax + r14*2]
test ecx, ecx
je 0x1403f9649
cmp ecx, 0x2e
je 0x1403f9649
mov byte [rbp + r14 - 0x20], cl
mov ecx, r12d
not ecx
mov edx, ecx
and edx, 1
mov r8d, r12d
and r8d, 0xfffffffe
or r8d, edx
xor r12d, 1
and ecx, 0x7ffffffe
or ecx, r12d
not ecx
add ecx, ecx
mov edx, r8d
xor edx, ecx
and ecx, r8d
lea r12d, [rdx + rcx*2]
jmp 0x1403f9600
mov eax, 0x400
sub eax, r12d
cmp eax, 2
jb 0x1403f94d1
mov dword [rbp + 0x414], eax
mov qword [rbp + 0x460], 0xf
mov qword [rbp + 0x458], 1
mov word [rbp + 0x448], 0x2e
test r13b, r13b
je 0x1403f97be
mov rax, qword [rbp + 0x458]
mov rcx, qword [rbp + 0x460]
cmp rcx, rax
jne 0x1403f98f7
mov dword [rsp + 0x20], 0x196c5e56
xor ecx, ecx
mov edx, 1
mov r8d, 0x4caa3e99
mov r9d, 0x47ea3fbc
call fcn.1403fbbf0
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x448]
mov edx, 1
mov r9, rax
call fcn.140089930
jmp 0x1403f9941
mov qword [rbp + 0x448], 0
xor ecx, ecx
test rdi, rdi
je 0x1403f972d
xor edx, edx
jmp 0x1403f971b
mov edx, 1
mov r8b, r9b
add rcx, r8
mov r8d, edx
not r8b
or r8b, 0xfe
cmp r8b, 0xff
jne 0x1403f972d
xor r8d, r8d
cmp byte [rdi + rcx], 0
setne r9b
je 0x1403f9700
movzx edx, dl
jmp 0x1403f9705
mov word [rbp + 0x448], cx
add ecx, 0xffff8240
mov edx, ecx
xor edx, 0x7dc1
and ecx, 0x7dc1
lea ecx, [rdx + rcx*2]
mov word [rbp + 0x44a], cx
mov qword [rbp + 0x450], rdi
lea rdx, [rbp + 0x448]
lea r9, [rbp + 0x468]
mov rcx, rbx
xor r8d, r8d
call qword [case.0x14016c073.0]
cmp eax, 0xc0000142
je 0x1403f9785
cmp eax, 0xc0000138
jne 0x1403f9810
mov qword [rbp + 0x468], 0
xor eax, eax
cmp rdi, 0x10000
setae al
lea rcx, [0x1405f7c60]
inc qword [0x1405f7d00]
inc qword [0x1405f7cd0]
lea rax, [rcx + rax*8]
add rax, 0x78
jmp 0x1403f9842
mov rcx, rdi
mov edx, 0xa2a5ba54
mov r8d, 0x86f9a3d2
mov r9d, 0x6bd7d4ac
call fcn.1400a9420
mov rcx, qword [rbp + 0x458]
mov rdx, qword [rbp + 0x460]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jae 0x1403f9911
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x448]
mov rdx, rax
mov r9, rdi
call fcn.140089930
jmp 0x1403f9b5c
cmp qword [rbp + 0x468], 0
je 0x1403f9790
xor eax, eax
cmp rdi, 0x10000
setae al
lea rcx, [0x1405f7c60]
inc qword [0x1405f7ce8]
lea rax, [rcx + rax*8]
add rax, 0x90
mov rcx, qword [rax]
mov rdx, rcx
not rdx
movabs r8, 0x7ffffffffffffffe
xor r8, rcx
mov r9, rcx
and r9, 0xfffffffffffffffe
and r8, rdx
and edx, 1
or rdx, r9
xor rcx, 1
or r8, rcx
not r8
lea rcx, [rdx + r8*2]
mov qword [rax], rcx
mov dword [rsp + 0x20], 0x3e5a555d
xor esi, esi
mov ecx, 1
xor edx, edx
mov r8, r15
mov r9d, 0x3381110e
call fcn.1403fad50
movzx r8d, r13b
xor r8d, 0xc0000139
cmp qword [rbp + 0x468], 0
cmovne r8d, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x40], 0x64f60ece
mov dword [rsp + 0x38], 0x5b1d481c
mov qword [rsp + 0x30], 0
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call fcn.1403fac40
mov rax, qword [rbp + 0x468]
add rsp, 0x4f8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [rax + 1]
mov qword [rbp + 0x458], rdx
cmp rcx, 0x10
jb 0x1403f9934
mov rcx, qword [rbp + 0x448]
jmp 0x1403f993b
mov r12, rax
add r12, rcx
mov qword [rbp + 0x458], r12
cmp rdx, 0x10
jb 0x1403f9a95
mov rdx, qword [rbp + 0x448]
jmp 0x1403f9a9c
lea rcx, [rbp + 0x448]
mov word [rcx + rax], 0x23
mov qword [rbp + 0x438], r15
movzx edx, di
mov r12d, 1
lea r9, [rbp + 0x3f4]
movabs r8, 0xcccccccccccccccd
nop word cs:[rax + rax]
mov rcx, rdx
mov rax, rdx
mul r8
shr rdx, 3
lea eax, [rdx + rdx]
lea eax, [rax + rax*4]
mov r10d, ecx
sub r10d, eax
mov r15d, r10d
not r15b
mov r11d, r10d
xor r11b, 0x30
mov eax, r15d
and al, 0xcf
or al, r11b
not al
and r15b, 0x30
and r10b, 0xcf
or r10b, r15b
or r10b, al
mov byte [r9], r10b
cmp rcx, 0xa
jb 0x1403f99bf
inc r12
dec r9
jmp 0x1403f9970
mov qword [rbp + 0x428], 0
mov qword [rbp + 0x430], 0xf
mov byte [rbp + 0x418], 0
test r12, r12
mov r15, qword [rbp + 0x438]
je 0x1403f9a21
cmp r12, 0xf
jbe 0x1403f99ff
lea rcx, [rbp + 0x418]
mov rdx, r12
call fcn.140088ed0
jmp 0x1403f9a21
mov qword [rbp + 0x428], r12
lea rcx, [rbp + 0x418]
mov rdx, r9
mov r8, r12
call fcn.1404ad090
mov byte [rbp + r12 + 0x418], 0
mov r8, qword [rbp + 0x428]
cmp qword [rbp + 0x430], 0x10
jb 0x1403f9a3b
mov r9, qword [rbp + 0x418]
jmp 0x1403f9a42
lea r9, [rbp + 0x418]
mov rcx, qword [rbp + 0x458]
mov rax, qword [rbp + 0x460]
mov rdx, rax
sub rdx, rcx
cmp rdx, r8
jae 0x1403f9a71
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x448]
mov rdx, r8
call fcn.140089930
jmp 0x1403f9ae0
lea r10, [rcx + r8]
mov rdx, r10
mov qword [rbp + 0x408], r10
mov qword [rbp + 0x458], r10
cmp rax, 0x10
jb 0x1403f9ac2
mov r12, qword [rbp + 0x448]
jmp 0x1403f9ac9
lea rdx, [rbp + 0x448]
mov qword [rbp + 0x438], rdx
add rcx, rdx
mov rdx, rdi
mov r8, rax
call fcn.1404ad090
mov rax, qword [rbp + 0x438]
mov byte [rax + r12], 0
jmp 0x1403f9b5c
lea r12, [rbp + 0x448]
add rcx, r12
mov rdx, r9
call fcn.1404ad090
mov rax, qword [rbp + 0x408]
mov byte [r12 + rax], 0
mov rax, qword [rbp + 0x430]
cmp rax, 0x10
jb 0x1403f9b5c
mov rcx, qword [rbp + 0x418]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1403f9b4b
mov r8, qword [rcx - 8]
movabs rdx, 0x9b3fc0e896bca77f
add rdx, rcx
movabs rcx, 0x7ffffffffffffff8
and rcx, rdx
xor rdx, 0xfffffffffffffff8
lea rcx, [rdx + rcx*2]
sub rcx, r8
movabs rdx, 0x64c03f1769435881
add rdx, rcx
cmp rdx, 0x20
jae 0x1403f9c55
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov r8d, 0x55519619
mov r9d, 0x9cb3b75c
call fcn.1400a8b80
mov rax, qword [rbp + 0x458]
mov ecx, dword [rbp + 0x414]
cmp rax, rcx
jae 0x1403f9be6
cmp qword [rbp + 0x460], 0x10
jb 0x1403f9b81
mov rdx, qword [rbp + 0x448]
jmp 0x1403f9b88
lea rdx, [rbp + 0x448]
lea rcx, [r14 + rbp]
add rcx, 0xffffffffffffffe0
xor r8d, r8d
test rax, rax
je 0x1403f9bbd
nop dword [rax + rax]
movzx r9d, byte [rdx + r8]
mov byte [rcx + r8], r9b
mov r9d, r8d
xor r9d, 1
and r8d, 1
lea r8d, [r9 + r8*2]
cmp rax, r8
ja 0x1403f9ba0
mov eax, r8d
mov byte [rcx + rax], 0
mov qword [rbp + 0x418], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x418]
call fcn.1403f60a0
mov qword [rbp + 0x468], rax
mov rax, qword [rbp + 0x460]
cmp rax, 0x10
jb 0x1403f94d1
mov rcx, qword [rbp + 0x448]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1403f9c3a
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x1403f9c50
mov ecx, eax
not ecx
and ecx, 0x28
mov rdx, rax
xor rdx, 0x28
and rdx, rax
or rdx, rcx
and eax, 0x28
lea rdx, [rdx + rax*2]
mov rcx, r8
mov r8d, 0x55519619
mov r9d, 0x9cb3b75c
call fcn.1400a8b80
jmp 0x1403f94d1
call fcn.1404652dc
call fcn.1404652dc
int3