Function at 0x446977
Capabilities:
Encode data using xor

Disassembly:
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1010
ret 0x14
mov eax, dword [esi + 0x54]
movzx eax, word [eax + ebp*2]
mov edx, dword [esp + 0x1034]
lea ecx, [eax + eax*2]
mov ebx, dword [edx + ecx*4 + 0x3c]
lea eax, [edx + ecx*4 + 0x38]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov dword [esp + 0x18], eax
xor ecx, ecx
lea eax, [edi + ebx]
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x24], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0044df64
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + ebp*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x1038]
add esp, 4
cmp byte [esp + 0x13], 0
mov dword [ecx + edx*4 + 0x40], eax
je 0x4468ae
test ebx, ebx
jbe 0x4468a1
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
sub dword [esp + 0x1c], 1
jne 0x446892
mov eax, dword [esp + 0x18]
push eax
call fcn.0044df69
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + ebp*2]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
add dword [eax + edx*4 + 0x3c], edi
test edi, edi
lea eax, [eax + edx*4 + 0x3c]
mov dword [esp + 0x18], 0
jbe 0x446a4c
mov ecx, dword [esp + 0x1024]
add ecx, 4
add ebx, ebx
mov dword [esp + 0x1c], ecx
add ebx, ebx
jmp 0x4468f2
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x1028]
ja 0x446378
cmp byte [esp + 0x12], 0
mov eax, dword [esp + 0x1024]
mov edi, dword [eax]
mov dword [esp + 0x28], edi
je 0x446936
xor eax, eax
mov ah, byte [esp + 0x2a]
mov ecx, edi
mov edx, edi
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shl ecx, 8
add ecx, eax
shr edi, 0x18
add edi, ecx
cmp byte [esp + 0x23], 0
je 0x446966
cmp byte [esp + 0x13], 0
je 0x44696d
mov edx, dword [esi + 0x54]
movzx eax, word [edx + ebp*2]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x1034]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 0x40]
add ecx, edi
mov dword [ebx + eax], ecx
jmp 0x446a22
cmp byte [esp + 0x13], 0
jne 0x44698a
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + ebp*2]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
mov ecx, dword [eax + edx*4 + 0x40]
mov dword [ebx + ecx], edi
jmp 0x446a22
mov edx, dword [esi + 0x30]
movzx eax, word [edx + edi*2]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + edi*4]
add edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x28]
movzx ecx, word [eax + edi*2]
push edx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + edi*4]
add eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x54]
push eax
movzx eax, word [ecx + ebp*2]
mov ecx, dword [esp + 0x1044]
lea edx, [eax + eax*2]
mov eax, dword [ecx + edx*4 + 0x40]
mov edx, dword [esp + 0x34]
push eax
push edx
push edi
call fcn.00446202
test al, al
je 0x446a05
mov eax, dword [esi + 0x28]
mov word [eax + edi*2], 0
mov ecx, dword [esi + 0x30]
mov word [ecx + edi*2], 0
mov edx, dword [esi + 0x54]
movzx eax, word [edx + ebp*2]
mov ecx, dword [esp + 0x1034]
lea eax, [eax + eax*2]
add dword [ecx + eax*4 + 0x3c], 0xffffffff
add dword [esi + 4], 0xffffffff
lea eax, [ecx + eax*4 + 0x3c]
jmp 0x446a25
mov eax, dword [esi + 0x54]
movzx eax, word [eax + ebp*2]
mov edx, dword [esi + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
mov ecx, dword [eax + ecx*4 + 0x40]
add edx, edi
mov dword [ebx + ecx], edx
add ebx, 4
mov edx, dword [esp + 0x14]
mov eax, 4
add dword [esp + 0x1024], eax
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [edx]
mov dword [esp + 0x18], eax
jb 0x4468f2
add dword [esp + 0x14], 4
add ebp, 1
cmp ebp, dword [esi + 8]
jb 0x446822
mov ebx, dword [esp + 0x1024]
mov edx, dword [esp + 0x1028]
lea ecx, [ebx + 4]
cmp ecx, edx
ja 0x446378
cmp byte [esp + 0x12], 0
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov dword [esi + 0xc], eax
je 0x446aa6
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 + 0xf]
add edi, eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0xc], 0
mov eax, ecx
je 0x446c93
lea ebx, [eax + 4]
cmp ebx, edx
ja 0x446378
cmp byte [esp + 0x12], 0
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x1c], eax
je 0x446aed
mov ecx, eax
and eax, 0xff00
shl ecx, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1f]
add ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0xc]
lea ebp, [eax*4]
lea edi, [ebx + ebp]
cmp edi, 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 ebx
push eax
mov dword [esi + 0x58], eax
call fcn.00492f62
mov eax, dword [esi + 0xc]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
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 + 0x34], eax
call fcn.00492f62
mov eax, dword [esi + 0xc]
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 + 0x38], eax
call fcn.00492f62
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x446c35
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x446c35
add byte [eax], al
mov ecx, dword [esi + 0x38]
movzx dx, byte [ecx + eax*2 + 1]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov bh, byte [ecx]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x34]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x24], ecx
shl edi, 0x10
and ecx, 0xff00
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
mov ebx, dword [esp + 0x28]
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x58]
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, ecx
mov dword [esp + 0x24], ecx
shl edi, 0x10
and ecx, 0xff00
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
add eax, 1
add edi, ecx
mov dword [edx], edi
cmp eax, dword [esi + 0xc]
jb 0x446bb6
mov eax, dword [esi + 0x1c]
lea edx, [eax + ebx]
cmp edx, dword [esp + 0x1028]
ja 0x446378
push eax
call fcn.0044df64
mov ecx, dword [esi + 0x1c]
push ecx
push ebx
push eax
mov dword [esi + 0x44], eax
call fcn.00492f62
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x446c93
mov ecx, dword [esi + 0x44]
xor eax, eax
test dword [esi + 0x1c], 0xfffffffe
jbe 0x446c93
movzx dx, byte [ecx + eax*2 + 1]
xor ebx, ebx
mov bh, byte [ecx + eax*2]
add eax, 1
xor dx, bx
mov word [ecx + eax*2 - 2], dx
mov edx, dword [esi + 0x1c]
shr edx, 1
cmp eax, edx
jb 0x446c74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret 0x14