Function at 0x14004b820
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rcx + 0x78]
mov rdi, rcx
test rbx, rbx
je 0x14004bd49
movzx eax, byte [rbx + 2]
add rbx, 4
mov qword [r11 + 0x10], rsi
movzx esi, byte [rbx - 3]
shl esi, 8
add esi, eax
je 0x14004b91e
mov qword [r11 + 0x18], r14
lea r14, str.data
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
lea rdx, str.__Cb
mov rcx, rbx
call fcn.1400807b0
test eax, eax
jne 0x14004b8fd
xor r8d, r8d
lea rdx, [rbx + 3]
lea r9d, [rax + 7]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx + 2]
lea rdx, [rdx + 4]
xor ecx, eax
movzx eax, byte [rdx - 3]
xor ecx, eax
movzx eax, byte [rdx - 4]
xor ecx, eax
xor r8d, ecx
sub r9, 1
jne 0x14004b8b0
movzx eax, byte [rbx + 0x1e]
cmp r8d, eax
jne 0x14004b8fd
movzx eax, byte [rbx + 4]
sub al, 4
cmp al, 1
ja 0x14004b8fd
mov edx, dword [rdi + 0x18]
mov r8, rbx
mov rcx, qword [rdi + 0x10]
mov r9d, esi
mov qword [rsp + 0x20], r14
call fcn.140032fe0
lea ecx, [rsi + 3]
add rbx, rcx
movzx esi, byte [rbx - 3]
movzx eax, byte [rbx - 2]
shl esi, 8
add esi, eax
jne 0x14004b880
mov r14, qword [rsp + 0xa0]
cmp byte [rdi + 0xc4], 0
jne 0x14004bb52
mov r8d, dword [rdi]
lea r9, str.Loading_Posn_from_SHMEM
lea rdx, str.ONCORE__d_:__s
mov ecx, 5
call fcn.14005c0d0
mov rcx, qword [rdi + 0x10]
lea r9, str.Loading_Posn_from_SHMEM
mov r8d, dword [rdi]
lea rdx, str.ONCORE__d_:__s
add rcx, 0x20
call fcn.14003d3f0
mov rbx, qword [rdi + 0x78]
add rbx, 4
movzx esi, byte [rbx - 3]
movzx eax, byte [rbx - 2]
shl esi, 8
add esi, eax
je 0x14004bb52
nop
cmp byte [rdi + 0xd4], 6
jne 0x14004b9da
mov r8d, 4
lea rdx, str.__Ba
mov rcx, rbx
call fcn.1400807b0
test eax, eax
jne 0x14004b9da
xor r8d, r8d
lea rdx, [rbx + 3]
lea r9d, [rax + 0x15]
nop dword [rax]
movzx eax, byte [rdx + 1]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx + 3]
xor ecx, eax
movzx eax, byte [rdx - 3]
xor ecx, eax
xor r8d, ecx
sub r9, 1
jne 0x14004b9b0
movzx eax, byte [rbx + 0x41]
cmp r8d, eax
je 0x14004ba81
cmp byte [rdi + 0xd4], 8
jne 0x14004ba27
mov r8d, 4
lea rdx, str.__Ea
mov rcx, rbx
call fcn.1400807b0
test eax, eax
jne 0x14004ba27
xor edx, edx
mov ecx, 2
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
inc rcx
xor edx, eax
cmp rcx, 0x49
jl 0x14004ba10
movzx eax, byte [rbx + 0x49]
cmp edx, eax
je 0x14004ba81
cmp byte [rdi + 0xd4], 0xc
jne 0x14004bb39
mov r8d, 4
lea rdx, str.__Ha
mov rcx, rbx
call fcn.1400807b0
test eax, eax
jne 0x14004bb39
xor edx, edx
mov ecx, 2
nop dword [rax + rax]
movzx eax, byte [rcx + rbx]
inc rcx
xor edx, eax
cmp rcx, 0x97
jl 0x14004ba60
movzx eax, byte [rbx + 0x97]
cmp edx, eax
jne 0x14004bb39
mov byte [rdi + 0xc4], 1
movzx eax, byte [rbx + 0xf]
movzx ecx, al
shl ecx, 8
test al, al
movzx eax, byte [rbx + 0x10]
or ecx, eax
movzx eax, byte [rbx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x13]
movzx edx, al
shl edx, 8
test al, al
movzx eax, byte [rbx + 0x14]
or edx, eax
movzx eax, byte [rbx + 0x15]
shl edx, 8
or edx, eax
movzx eax, byte [rbx + 0x16]
shl edx, 8
or edx, eax
movzx eax, byte [rbx + 0x17]
movzx r8d, al
shl r8d, 8
test al, al
movzx eax, byte [rbx + 0x18]
or r8d, eax
movzx eax, byte [rbx + 0x19]
shl r8d, 8
or r8d, eax
movzx eax, byte [rbx + 0x1a]
shl r8d, 8
or r8d, eax
test ecx, ecx
jne 0x14004bb08
test edx, edx
jne 0x14004bb08
test r8d, r8d
je 0x14004bb39
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, edx
movsd qword [rdi + 0xa0], xmm0
movd xmm0, r8d
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [rdi + 0xb0], xmm0
movsd qword [rdi + 0xa8], xmm1
lea ecx, [rsi + 3]
add rbx, rcx
movzx esi, byte [rbx - 3]
movzx eax, byte [rbx - 2]
shl esi, 8
add esi, eax
jne 0x14004b980
mov rcx, rdi
call fcn.14004c230
mov rax, qword [0x1400d50a8]
mov rsi, qword [rsp + 0x98]
test rax, rax
jne 0x14004bba7
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.GetSystemTimePreciseAsFileTime
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004bb99
mov qword [0x1400d50a0], rax
jmp 0x14004bba0
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov qword [0x1400d50a8], rax
lea rcx, [rbp - 0x40]
call rax
mov rcx, qword [rbp - 0x40]
movabs rax, 0x19db1ded53e8000
sub rcx, rax
movabs rax, 0xd6bf94d5e57a42bd
mul rcx
mov r8, rdx
shr r8, 0x17
imul eax, r8d, 0x989680
mov qword [rbp - 0x38], r8
sub ecx, eax
mov eax, 0x66666667
imul edx, ecx, 0x64
lea rcx, [rbp - 0x38]
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x30], edx
call fcn.140081ca8
cmp byte [rdi + 0xd4], 0xc
mov rbx, rax
jne 0x14004bc78
mov ecx, dword [0x1400cd330]
mov r8d, reloc.WS2_32.dll_inet_ntoa
movsd xmm0, qword [0x1400cd328]
mov dword [rbp - 0x20], ecx
movzx ecx, byte [rax + 0x10]
movsd qword [rbp - 0x28], xmm0
inc cl
mov byte [rbp - 0x26], cl
movzx ecx, byte [rax + 0xc]
mov eax, dword [rax + 0x14]
add eax, 0x76c
mov byte [rbp - 0x25], cl
cdq
mov word [rbp - 0x1f], 0
movzx edx, dl
add eax, edx
mov byte [rbp - 0x1d], 0
mov ecx, eax
movzx eax, al
sub eax, edx
mov byte [rbp - 0x23], al
movzx eax, byte [rbx + 8]
mov byte [rbp - 0x22], al
movzx eax, byte [rbx + 4]
mov byte [rbp - 0x21], al
movzx eax, byte [rbx]
sar ecx, 8
mov byte [rbp - 0x20], al
mov byte [rbp - 0x24], cl
jmp 0x14004bd04
mov r8d, 5
lea rdx, [0x1400ccdc8]
mov rcx, rdi
call fcn.14004bff0
mov eax, dword [0x1400cd398]
mov r8d, 6
mov dword [rbp - 0x28], eax
movzx eax, word [0x1400cd39c]
mov word [rbp - 0x24], ax
movzx eax, byte [rbx + 0x10]
inc al
mov byte [rbp - 0x26], al
movzx eax, byte [rbx + 0xc]
mov byte [rbp - 0x25], al
mov eax, dword [rbx + 0x14]
add eax, 0x76c
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sar ecx, 8
sub eax, edx
mov byte [rbp - 0x24], cl
lea rdx, [rbp - 0x28]
mov rcx, rdi
mov byte [rbp - 0x23], al
call fcn.14004bff0
mov eax, dword [0x1400cd434]
mov r8d, 5
mov dword [rbp - 0x28], eax
movzx eax, byte [rbx + 8]
mov byte [rbp - 0x26], al
movzx eax, byte [rbx + 4]
mov byte [rbp - 0x25], al
movzx eax, byte [rbx]
mov byte [rbp - 0x24], al
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14004bff0
mov r8d, dword [rdi]
lea r9, str.Setting_Posn_and_Time_after_Loading_Almanac
lea rdx, str.ONCORE__d_:__s
mov ecx, 6
call fcn.14005c0d0
mov rcx, qword [rdi + 0x10]
lea r9, str.Setting_Posn_and_Time_after_Loading_Almanac
mov r8d, dword [rdi]
lea rdx, str.ONCORE__d_:__s
add rcx, 0x20
call fcn.14003d3f0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140073c20
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret