Function at 0x442840
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov rax, qword [0x004498e0]
mov byte [rax], 1
nop
lea rcx, [0x0043e7d0]
call fcn.0040ebd0
nop
lea rcx, [0x00467670]
lea rdx, [0x0043dff0]
call fcn.0040e3a0
mov rax, qword [0x00449748]
mov qword [rax], 0
mov rax, qword [0x00449620]
mov byte [rax], 0
mov rax, qword [0x00449358]
mov byte [rax], 1
mov cl, 1
call fcn.00404600
mov rax, qword [0x00449678]
mov rcx, qword [0x004496d8]
movzx rcx, word [rcx]
mov qword [rax], rcx
xor rcx, rcx
call fcn.004239b0
mov rcx, qword [0x004494a8]
mov rdx, qword [0x00423250]
mov r8d, 1
xor r9, r9
call fcn.0040c1d0
mov rcx, qword [0x00449918]
mov rdx, qword [0x00423290]
mov r8d, 1
xor r9, r9
call fcn.0040c1d0
mov rcx, qword [0x0043e010]
mov dl, 1
call fcn.0043e330
mov qword [0x00467640], rax
mov rcx, qword [0x00467640]
lea rdx, [0x00442e0c]
call fcn.0043e440
test al, al
je 0x44295d
mov rax, qword [0x00467640]
mov rcx, qword [rax + 0x58]
lea rdx, [0x00467648]
mov rax, qword [0x00467640]
movsxd r8, dword [rax + 0x60]
call fcn.00404eb0
mov rcx, qword [0x00467640]
call fcn.0043e420
mov rax, qword [0x00449970]
mov ecx, dword [0x00467654]
mov dword [rax], ecx
mov rcx, qword [0x00467640]
lea rdx, [0x00442e20]
call fcn.0043e440
test al, al
je 0x442d75
lea rcx, [rbp + 0x28]
call fcn.00423410
mov rcx, qword [rbp + 0x28]
call fcn.0040af50
mov qword [0x00467638], rax
mov rcx, qword [0x00467638]
mov edx, 0x8000
call fcn.00436650
mov dword [0x00467630], eax
mov rcx, qword [0x00467638]
call fcn.0040a830
mov dword [0x00467620], eax
mov rax, qword [0x004494a8]
mov rcx, qword [rax]
call fcn.0040be30
mov dword [0x00467624], eax
mov rcx, qword [0x004494a8]
mov rdx, qword [0x00423250]
mov r8d, 1
mov r9d, dword [0x00467624]
add r9d, 1
movsxd r9, r9d
call fcn.0040c1d0
mov ecx, dword [0x00467620]
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00404ae0
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, dword [0x00467624]
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, dword [0x00467624]
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8]
mov rdx, qword [0x00467638]
call fcn.0041b6b0
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, dword [0x00467624]
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov edx, dword [0x00467630]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [0x00467630]
call sub.msvcrt.dll__get_osfhandle
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, dword [0x00467624]
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x10], rax
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, dword [0x00467624]
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rdx, qword [0x00467640]
mov edx, dword [rdx + 0x60]
mov dword [rax + rcx*8 + 0x18], edx
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, dword [0x00467624]
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.00404ae0
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, dword [0x00467624]
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x20], rax
mov rax, qword [0x00467640]
mov rcx, qword [rax + 0x58]
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rdx, dword [0x00467624]
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov rdx, qword [rax + rdx*8 + 0x20]
mov rax, qword [0x00467640]
movsxd r8, dword [rax + 0x60]
call fcn.00404eb0
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, dword [0x00467624]
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rax, qword [rax + rcx*8 + 0x20]
mov qword [0x00467628], rax
xor rax, rax
mov rcx, qword [0x00467640]
mov ecx, dword [rcx + 0x60]
sub ecx, 1
mov dword [0x0046761c], eax
cmp dword [0x0046761c], ecx
jg 0x442baa
add ecx, 1
mov rax, qword [0x00467628]
xor byte [rax], 0xff
add qword [0x00467628], 1
add dword [0x0046761c], 1
cmp dword [0x0046761c], ecx
jne 0x442b89
nop
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, dword [0x00467624]
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov dword [rax + rcx*8 + 0x28], 0
mov rcx, qword [0x00467640]
call fcn.00407460
mov rcx, qword [0x004494b0]
lea rdx, [0x00442e34]
call fcn.00406db0
mov rcx, rax
call fcn.00406f20
call fcn.00404e20
lea rcx, [rbp + 0x20]
lea rdx, [0x0043e000]
call fcn.0040e3a0
mov rcx, qword [0x004494b0]
mov rdx, qword [rbp + 0x20]
call fcn.00406db0
mov rcx, rax
call fcn.00406f20
call fcn.00404e20
mov rcx, qword [0x004494b0]
lea rdx, [0x00442e34]
call fcn.00406db0
mov rcx, rax
call fcn.00406f20
call fcn.00404e20
mov rcx, qword [0x004494b0]
lea rdx, [0x00442ec8]
call fcn.00406db0
mov rcx, rax
call fcn.00406f20
call fcn.00404e20
mov rcx, qword [0x00449728]
call fcn.00406270
call fcn.00404e20
call fcn.0043c960
mov rcx, qword [0x00449880]
mov qword [rcx], rax
mov rax, qword [0x00449880]
cmp qword [rax], 0
je 0x442d81
mov rcx, qword [0x004498c8]
call fcn.00422fd0
test eax, eax
je 0x442cc8
mov rax, qword [0x00449608]
cmp byte [rax], 0
je 0x442cbd
mov rax, qword [0x00449620]
mov byte [rax], 1
jmp 0x442cc8
mov ecx, 0xff
call fcn.0043dc00
mov rax, qword [0x00449620]
cmp byte [rax], 0
jne 0x442d81
mov ecx, 1
mov rax, qword [0x00449880]
mov edx, dword [rax]
mov rax, qword [0x00449550]
mov r8d, dword [rax]
call fcn.00424690
mov rcx, qword [0x00449928]
mov qword [rcx], rax
mov rax, qword [0x00449928]
cmp qword [rax], 1
jne 0x442d18
mov ecx, 1
call fcn.0043dc00
mov rax, qword [0x00449928]
cmp qword [rax], 0xffffffffffffffff
jne 0x442d2d
xor rcx, rcx
call fcn.0043dc00
xor rcx, rcx
mov rax, qword [0x00449928]
mov rdx, qword [rax]
call fcn.00432ad0
mov rcx, qword [0x00449368]
mov word [rcx], ax
call fcn.00437480
mov rax, qword [0x00449608]
cmp byte [rax], 0
jne 0x442d69
mov rax, qword [0x00449368]
movzx ecx, word [rax]
call fcn.0043dc00
mov rax, qword [0x00449608]
mov byte [rax], 0
jmp 0x442d81
mov rcx, qword [0x00467640]
call fcn.00407460
xor rcx, rcx
call fcn.0043dc00
mov rax, qword [0x00449240]
mov dword [rax], 0
nop
lea rcx, [rbp + 0x20]
mov edx, 2
call fcn.0040a1f0
call fcn.00409d70
jmp 0x442db5
lea rsp, [rbp + 0x30]
pop rbp
ret