Function at 0x446312
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1010
call fcn.004939a2
mov eax, dword [esp + 0x1024]
mov edx, dword [esp + 0x1018]
push ebx
mov bl, byte [eax + 0x3030]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x1020]
test ecx, ecx
push edi
lea edi, [eax + 4]
seta byte [esp + 0x13]
cmp edi, edx
mov byte [esp + 0x12], bl
ja 0x446378
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x10], eax
je 0x44635f
mov ebp, eax
and eax, 0xff00
shl ebp, 0x10
add ebp, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebp, 8
add ebp, eax
movzx eax, byte [esi + 0x13]
add ebp, eax
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x10]
test eax, eax
seta byte [esp + 0x23]
test eax, eax
je 0x446390
cmp byte [esp + 0x13], 0
je 0x446388
cmp eax, ecx
je 0x446388
test eax, eax
mov bl, byte [esp + 0x12]
jne 0x4463a4
cmp byte [esp + 0x13], 0
mov bl, byte [esp + 0x12]
je 0x4463a0
mov dword [esi + 0x10], ecx
jmp 0x4463b2
test eax, eax
je 0x4463b2
cmp byte [esp + 0x13], 0
jne 0x4463b2
mov dword [esi + 0x10], 0
lea eax, [edi + 1]
cmp eax, edx
ja 0x446378
mov cl, byte [edi]
cmp cl, 0x59
jne 0x4463c6
mov byte [esi + 0x20], 1
jmp 0x4463cf
cmp cl, 0x4e
jne 0x4463cf
mov byte [esi + 0x20], 0
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x446378
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi], eax
je 0x446401
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 3]
add edi, eax
mov dword [esi], edi
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x446378
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 4], eax
je 0x44643b
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 7]
add edi, eax
mov dword [esi + 4], edi
lea eax, [ecx + 4]
cmp eax, edx
ja 0x446378
test bl, bl
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esi + 8], ecx
je 0x446474
mov edi, ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
shl edi, 8
add edi, ecx
movzx ecx, byte [esi + 0xb]
add edi, ecx
mov dword [esi + 8], edi
mov cl, byte [esi + 0x20]
test cl, cl
je 0x4464b5
lea edi, [eax + 4]
cmp edi, edx
ja 0x446378
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x14], eax
je 0x4464b3
mov ebp, eax
and eax, 0xff00
shl ebp, 0x10
add ebp, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebp, 8
add ebp, eax
movzx eax, byte [esi + 0x17]
add ebp, eax
mov dword [esi + 0x14], ebp
mov eax, edi
lea edi, [eax + 4]
cmp edi, edx
ja 0x446378
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], eax
je 0x4464ed
mov ebx, eax
and eax, 0xff00
shl ebx, 0x10
add ebx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0x1b]
add ebx, eax
mov dword [esi + 0x18], ebx
test cl, cl
je 0x44656d
mov eax, dword [esi]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
cmp ebx, edx
ja 0x446378
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044df64
push ebp
push edi
push eax
mov dword [esi + 0x24], eax
call fcn.00492f62
mov eax, dword [esi]
mov ebp, ebx
lea edi, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x446378
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044df64
push edi
push ebp
push eax
mov dword [esi + 0x28], eax
call fcn.00492f62
mov edx, dword [esp + 0x1038]
add esp, 0x10
mov edi, ebx
mov eax, dword [esi]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
cmp ebx, edx
ja 0x446378
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044df64
push ebp
push edi
push eax
mov dword [esi + 0x2c], eax
call fcn.00492f62
mov eax, dword [esi]
mov edi, ebx
lea ebp, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x446378
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044df64
push ebp
push edi
push eax
mov dword [esi + 0x30], eax
call fcn.00492f62
add esp, 0x10
cmp byte [esp + 0x12], 0
mov ebp, ebx
je 0x44668c
xor eax, eax
cmp dword [esi], eax
jbe 0x44668c
cmp byte [esi + 0x20], 0
je 0x44663f
mov ecx, dword [esi + 0x24]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x18], ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
xor ebx, ebx
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x28]
mov bh, byte [edx + eax*2]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x2c]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x18], ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
xor ebx, ebx
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x30]
mov bh, byte [edx + eax*2]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
add eax, 1
xor dx, bx
mov word [ecx], dx
cmp eax, dword [esi]
jb 0x4465f7
cmp byte [esi + 0x20], 0
je 0x4466bb
mov edi, dword [esi + 0x14]
lea ebx, [edi + ebp]
cmp ebx, dword [esp + 0x1028]
ja 0x446378
push edi
call fcn.0044df64
push edi
push ebp
push eax
mov dword [esi + 0x3c], eax
call fcn.00492f62
add esp, 0x10
mov ebp, ebx
mov edi, dword [esi + 0x18]
lea ebx, [edi + ebp]
cmp ebx, dword [esp + 0x1028]
ja 0x446378
push edi
call fcn.0044df64
push edi
push ebp
push eax
mov dword [esi + 0x40], eax
call fcn.00492f62
add esp, 0x10
cmp byte [esp + 0x12], 0
mov dword [esp + 0x1024], ebx
je 0x446729
mov ecx, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x446729
lea esp, [esp]
movzx dx, byte [ecx + eax*2 + 1]
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov bh, byte [ecx + eax*2]
add eax, 1
xor dx, bx
mov ebx, dword [esp + 0x18]
mov word [ecx + eax*2 - 2], dx
mov edx, dword [esi + 0x18]
shr edx, 1
cmp eax, edx
jb 0x446702
cmp byte [esi + 0x20], 0
je 0x446a64
mov eax, dword [esi + 8]
lea ebp, [eax + eax]
lea edi, [ebx + ebp]
cmp edi, dword [esp + 0x1028]
ja 0x446378
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044df64
push ebp
push ebx
push eax
mov dword [esi + 0x54], eax
call fcn.00492f62
mov eax, dword [esi + 8]
add eax, eax
add eax, eax
mov ecx, edi
lea edi, [eax + ecx]
add esp, 0x10
cmp edi, dword [esp + 0x1028]
ja 0x446378
push eax
push ecx
lea eax, [esp + 0x34]
push eax
call fcn.00492f62
add esp, 0xc
cmp byte [esp + 0x12], 0
mov ebx, edi
mov dword [esp + 0x1024], ebx
je 0x446803
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x446803
lea ebx, [ebx]
mov ecx, dword [esi + 0x54]
movzx dx, byte [ecx + eax*2 + 1]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov bh, byte [ecx]
add eax, 1
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esp + eax*4 + 0x28]
mov ebx, dword [esp + 0x1c]
mov edx, ecx
mov dword [esp + 0x18], ecx
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [esp + eax*4 + 0x2b]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
add edx, ecx
cmp eax, dword [esi + 8]
mov dword [esp + eax*4 + 0x28], edx
jb 0x4467b2
cmp byte [esi + 0x20], 0
je 0x446a64
xor ebp, ebp
cmp dword [esi + 8], ebp
jbe 0x446a64
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edi, edi