Function at 0x14005c500
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov eax, 0x118
call fcn.1400035e0
sub rsp, rax
mov eax, 0xffffffff
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x110], rsi
xor esi, esi
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xe8], r15
mov r13, rdx
lea r15d, [rsi + 0x20]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov r14d, eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x50], 0x1fffffff
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
xor r9w, r9w
mov r11w, 4
lea rbx, [rcx + 0x10]
lea rdi, [0x140000000]
nop
mov r8d, dword [rbx]
test r11w, r11w
mov eax, 0x1e
cmovg ax, r15w
test ax, ax
jle 0x14005c60e
movzx r10d, ax
nop
nop
test r8b, 1
je 0x14005c602
movsx rdx, r9w
movsx rcx, word [rdi + rdx*2 + 0x1fbea0]
mov eax, dword [rdi + rdx*4 + 0x1fb720]
or dword [rsp + rcx*4 + 0x28], eax
movsx rcx, word [rdi + rdx*2 + 0x1fbfdc]
mov eax, dword [rdi + rdx*4 + 0x1fb998]
or dword [rsp + rcx*4 + 0x28], eax
inc r9w
shr r8d, 1
dec r10
jne 0x14005c5d0
sub rbx, 4
dec r11w
jns 0x14005c5b0
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x138], rbp
mov bp, 9
mov qword [rsp + 0x100], r12
mov qword [rsp + 0xa0], rsi
mov word [rsp + 0x20], bp
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0xa4], 1
xor r12w, r12w
nop
nop
nop
movzx ecx, dl
lea r9, [rsp + 0x28]
mov r10d, 0xa
movzx r11d, byte [rcx + rdi + 0x1fc120]
add r12w, r11w
xor cx, cx
movsx rbx, r11w
mov edi, r11d
nop
nop
nop
mov r8d, dword [r9]
movsx edx, cx
mov eax, r15d
sub eax, ebx
add r9, 4
movzx ecx, al
mov eax, r8d
shl edx, cl
mov ecx, edi
shr eax, cl
movzx ecx, r8w
or edx, eax
dec r10
mov dword [r9 - 4], edx
jne 0x14005c6d0
cmp r11w, 8
jne 0x14005c713
mov edx, dword [rsp + 0x4c]
lea rdi, [0x140000000]
test dl, 1
je 0x14005c6a0
jmp 0x14005c717
mov edx, dword [rsp + 0x4c]
xor cx, cx
nop
nop
movsx rax, cx
cmp dword [rsp + rax*4 + 0x28], 0
jne 0x14005c736
inc cx
cmp cx, 9
jb 0x14005c720
jmp 0x14005c73c
cmp cx, 9
jb 0x14005c750
cmp edx, 1
je 0x14005cc1f
nop
nop
nop
movsx rax, si
shl rax, 2
cmp dword [rsp + rax + 0x28], 0
jne 0x14005c779
nop
cmp dword [rsp + rax + 0x50], 0
jne 0x14005c779
inc si
movsx rax, si
shl rax, 2
cmp dword [rsp + rax + 0x28], 0
je 0x14005c760
movsx rax, si
lea r15, [rax*4]
mov qword [rsp + 0x78], r15
lea rax, [rsp + r15 + 0x50]
lea r13, [rsp + r15 + 0x28]
mov qword [rsp + 0xa8], rax
mov eax, dword [rax]
cmp dword [r13], eax
jb 0x14005c9e2
cmp si, 9
ja 0x14005c7d1
mov eax, 0xa
mov rcx, r15
sub ax, si
movzx edx, ax
nop
mov eax, dword [rsp + rcx + 0x50]
add rcx, 4
xor dword [rsp + rcx + 0x24], eax
dec rdx
jne 0x14005c7c0
cmp bp, 9
ja 0x14005c804
movsx rcx, bp
mov eax, 0xa
shl rcx, 2
sub ax, bp
movzx edx, ax
nop
nop
mov eax, dword [rsp + rcx + 0xb0]
add rcx, 4
xor dword [rsp + rcx + 0x7c], eax
dec rdx
jne 0x14005c7f0
mov edx, dword [rsp + 0x4c]
mov r14d, 0x20
lea r15, [0x140000000]
nop
nop
nop
movzx ecx, dl
xor r9w, r9w
movzx edi, byte [rcx + r15 + 0x1fc120]
add r12w, di
cmp bp, 9
mov word [rsp + 0x22], r12w
jg 0x14005c8cb
mov eax, 0xa
mov r10d, 9
movsx ebp, di
sub ax, word [rsp + 0x20]
movsx r12, di
lea r11, [rsp + 0xd4]
movzx ebx, ax
sub r10w, bx
nop
nop
mov r8d, dword [r11]
movsx eax, r9w
mov ecx, ebp
mov edx, r8d
mov r9d, r8d
sub r11, 4
shl edx, cl
mov ecx, r14d
or edx, eax
sub ecx, r12d
mov dword [r11 + 4], edx
shr r9d, cl
dec rbx
jne 0x14005c870
test r9w, r9w
je 0x14005c8c0
movzx r12d, word [rsp + 0x22]
movsx rax, r10w
movsx ecx, r9w
movzx ebp, r10w
mov word [rsp + 0x20], r10w
mov dword [rsp + rax*4 + 0xb0], ecx
jmp 0x14005c8cb
mov bp, word [rsp + 0x20]
mov r12w, word [rsp + 0x22]
xor cx, cx
cmp si, 9
ja 0x14005c91b
mov eax, 0xa
movsx r11, di
movsx ebx, di
sub ax, si
mov r9, r13
movzx r10d, ax
nop
nop
mov r8d, dword [r9]
movsx edx, cx
mov eax, r14d
sub eax, r11d
add r9, 4
movzx ecx, al
mov eax, r8d
shl edx, cl
mov ecx, ebx
shr eax, cl
movzx ecx, r8w
or edx, eax
dec r10
mov dword [r9 - 4], edx
jne 0x14005c8f0
cmp edi, 8
jne 0x14005c92f
mov edx, dword [rsp + 0x4c]
test dl, 1
je 0x14005c820
jmp 0x14005c933
mov edx, dword [rsp + 0x4c]
cmp si, 9
mov r14d, dword [rsp + 0x74]
mov r15, qword [rsp + 0x78]
movzx ecx, si
jae 0x14005c970
nop
nop
nop
movsx rax, cx
cmp dword [rsp + rax*4 + 0x28], 0
jne 0x14005c966
inc cx
cmp cx, 9
jb 0x14005c950
jmp 0x14005c970
cmp cx, 9
jb 0x14005c750
cmp edx, 1
jne 0x14005c750
test cx, cx
jg 0x14005cc17
lea r13, [rsp + r15 + 0x50]
cmp dword [r13], 0
jne 0x14005c9af
nop
cmp dword [rsp + r15 + 0x28], 0
jne 0x14005c9af
inc si
movsx rax, si
lea r15, [rax*4]
cmp dword [rsp + r15 + 0x50], 0
je 0x14005c990
movsx rax, si
lea r15, [rax*4]
mov eax, dword [rsp + r15 + 0x28]
cmp dword [rsp + r15 + 0x50], eax
lea rcx, [rsp + r15 + 0x50]
lea r13, [rsp + r15 + 0x28]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0xa8], rcx
jb 0x14005c7a8
cmp si, 9
ja 0x14005ca16
mov eax, 0xa
mov rcx, r15
sub ax, si
movzx edx, ax
nop
nop
nop
mov eax, dword [rsp + rcx + 0x28]
add rcx, 4
xor dword [rsp + rcx + 0x4c], eax
dec rdx
jne 0x14005ca00
mov r14d, dword [rsp + 0x74]
cmp bp, 9
ja 0x14005ca47
movsx rcx, bp
mov eax, 0xa
shl rcx, 2
sub ax, bp
movzx edx, ax
nop
mov eax, dword [rsp + rcx + 0x80]
add rcx, 4
xor dword [rsp + rcx + 0xac], eax
dec rdx
jne 0x14005ca30
mov r15w, word [rsp + 0x20]
mov r13, qword [rsp + 0xa8]
nop
nop
nop
lea rax, [0x140000000]
movzx ecx, r14b
xor r9w, r9w
movzx r11d, byte [rcx + rax + 0x1fc120]
add r12w, r11w
cmp r15w, 9
mov word [rsp + 0x22], r12w
jg 0x14005cb18
mov eax, 0xa
mov edi, 9
movsx ebp, r11w
sub ax, r15w
movsx r12, r11w
lea r10, [rsp + 0xa4]
movzx ebx, ax
mov r13d, 0x20
sub di, bx
nop
nop
nop
mov r8d, dword [r10]
movsx eax, r9w
mov ecx, ebp
mov edx, r8d
mov r9d, r8d
sub r10, 4
shl edx, cl
mov ecx, r13d
or edx, eax
sub ecx, r12d
mov dword [r10 + 4], edx
shr r9d, cl
dec rbx
jne 0x14005cac0
test r9w, r9w
mov r13, qword [rsp + 0xa8]
je 0x14005cb12
mov r12w, word [rsp + 0x22]
movsx rax, di
movsx ecx, r9w
mov dword [rsp + rax*4 + 0x80], ecx
mov r15w, di
jmp 0x14005cb18
mov r12w, word [rsp + 0x22]
xor cx, cx
cmp si, 9
ja 0x14005cb71
mov eax, 0xa
movsx rbx, r11w
movsx edi, r11w
sub ax, si
mov r9, r13
movzx r10d, ax
nop
nop
mov r8d, dword [r9]
movsx edx, cx
mov eax, 0x20
sub eax, ebx
add r9, 4
movzx ecx, al
mov eax, r8d
shl edx, cl
mov ecx, edi
shr eax, cl
movzx ecx, r8w
or edx, eax
dec r10
mov dword [r9 - 4], edx
jne 0x14005cb40
mov r14d, dword [rsp + 0x74]
cmp r11d, 8
jne 0x14005cb81
test r14b, 1
je 0x14005ca60
cmp si, 9
mov word [rsp + 0x20], r15w
mov r15, qword [rsp + 0x78]
movzx ecx, si
jae 0x14005cbba
movsx rax, cx
cmp dword [rsp + rax*4 + 0x50], 0
jne 0x14005cbab
inc cx
cmp cx, 9
jb 0x14005cb95
jmp 0x14005cbba
cmp cx, 9
mov bp, word [rsp + 0x20]
jb 0x14005c987
cmp r14d, 1
je 0x14005cbca
mov bp, word [rsp + 0x20]
jmp 0x14005c987
mov r13, qword [rsp + 0x128]
lea rcx, [rsp + 0xb0]
mov rax, qword [rcx]
mov qword [rsp + 0x80], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0xa0], rax
jmp 0x14005cc1f
mov r13, qword [rsp + 0x128]
movsx ecx, r12w
mov eax, 0x33af3e2f
lea r8, [rsp + 0x80]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13d
sub ecx, edx
mov edx, Ordinal_319
sub edx, ecx
lea rcx, [rsp + 0x80]
call fcn.14005c300
test byte [rsp + 0xa4], 1
mov r15, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xf0]
mov r12, qword [rsp + 0x100]
je 0x14005cc86
mov rcx, r13
call fcn.140060860
xor esi, esi
jmp 0x14005cc94
xor esi, esi
mov qword [r13], rsi
mov qword [r13 + 8], rsi
mov dword [r13 + 0x10], esi
lea r11, [r13 + 0x10]
mov r13, qword [rsp + 0xf8]
xor r8w, r8w
mov bx, 4
lea rdi, [0x140000000]
mov ebp, 0xffffffff
nop
nop
nop
mov r10d, 0x3fffffff
test bx, bx
mov r9d, esi
cmovg r10d, ebp
mov edx, 1
nop
nop
nop
movsx rcx, r8w
movsx rax, word [rdi + rcx*2 + 0x1fbea0]
mov eax, dword [rsp + rax*4 + 0x80]
test dword [rdi + rcx*4 + 0x1fb720], eax
je 0x14005cd00
xor r9d, edx
add edx, edx
inc r8w
test edx, r10d
jne 0x14005cce0
xor dword [r11], r9d
sub r11, 4
dec bx
jns 0x14005ccc0
mov rdi, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
add rsp, 0x118
ret