Function at 0x140003deb
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebp, ecx
mov r13, rdx
mov ecx, 0x208
call fcn.1400bb630
mov r14, rax
mov word [rax], 0
mov word [rax + 2], 0
lea rax, [rax + 4]
lea rdx, [r14 + 0x208]
mov word [rax], 0
add rax, 2
cmp rdx, rax
jne 0x140003e23
mov ecx, 0x618
call fcn.1400bb630
mov r15, rax
mov word [rax], 0
mov word [rax + 2], 0
lea rax, [rax + 4]
lea rdx, [r15 + 0x618]
mov word [rax], 0
add rax, 2
cmp rax, rdx
jne 0x140003e54
cmp ebp, 1
jle 0x140003fcb
mov ebx, 1
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
jmp 0x140003f07
mov word [rsp + 0x46], 0x1f
mov word [rsp + 0x48], 0x57
mov word [rsp + 0x4a], 0x5b
mov word [rsp + 0x4c], 0x53
mov word [rsp + 0x4e], 0x36
lea rcx, [rsp + 0x46]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0x4ec4ec4f
sar rax, 0x24
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x34
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x32]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 5
jne 0x140003eac
lea rdx, [rsp + 0x46]
mov rcx, qword [rdi]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140003efc
lea edi, [rbx + 1]
cmp edi, ebp
jl 0x140003fb1
add ebx, 1
cmp ebp, ebx
jle 0x140003fcb
mov word [rsp + 0x3c], 0x1f
mov word [rsp + 0x3e], 0x57
mov word [rsp + 0x40], 0x5b
mov word [rsp + 0x42], 0x45
mov word [rsp + 0x44], 0x36
lea rcx, [rsp + 0x3c]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0x4ec4ec4f
sar rax, 0x24
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x34
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x32]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 5
jne 0x140003f34
movsxd rsi, ebx
shl rsi, 3
lea rdi, [r13 + rsi]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rdi]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140003e7f
lea r12d, [rbx + 1]
cmp r12d, ebp
jge 0x140003e7f
mov r8, qword [r13 + rsi + 8]
mov edx, 0x103
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov ebx, r12d
jmp 0x140003efc
mov r8, qword [r13 + rsi + 8]
mov edx, 0x30b
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov ebx, edi
jmp 0x140003efc
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov ebx, 0
cmp rax, 1
ja 0x140004056
mov rcx, r15
call sub.msvcrt.dll_wcslen
cmp rax, 2
jbe 0x140004033
mov ebx, 4
mov rdi, qword [0x1401c3f10]
mov rsi, rdi
mov rcx, r15
call qword [rdi + 0x198]
cmp eax, 0xffffffff
je 0x1400040ea
test al, 0x10
jne 0x1400040f4
mov rcx, r15
call qword [rsi + 0x1a0]
mov ecx, 0x64
call qword [rsi + 0x218]
sub ebx, 1
jne 0x140003ffb
mov ebx, 1
mov rcx, r14
call fcn.1400bb600
mov rcx, r15
call fcn.1400bb600
mov eax, ebx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wtoi]
mov ebp, eax
mov esi, 3
mov r12, qword [0x1401c3f10]
mov r13, r12
mov rdi, r12
mov r8d, ebp
mov edx, 0
mov ecx, 1
call qword [r12 + 0xe0]
mov rbx, rax
test rax, rax
je 0x1400040bc
mov edx, 0
mov rcx, rax
call qword [r13 + 0xf0]
test eax, eax
jne 0x1400040d8
mov rcx, rbx
call qword [rdi + 0xc0]
mov ecx, 0x64
call qword [rdi + 0x218]
sub esi, 1
jne 0x140004073
mov ecx, 0x64
mov rax, qword [0x1401c3f10]
call qword [rax + 0x218]
mov ebx, 1
jmp 0x140003fde
mov rcx, rbx
mov rax, qword [0x1401c3f10]
call qword [rax + 0xc0]
jmp 0x1400040bc
mov ebx, 1
jmp 0x140004033
mov ebx, 1
jmp 0x140004033