Function at 0x446e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x40]
test eax, eax
je 0x446e9a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x446e70
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
add ecx, esi
jmp 0x446e9c
xor ecx, ecx
mov word [esp + 0x1c], cx
mov edx, eax
test eax, eax
je 0x446eac
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x48]
mov word [esp + 0x1e], dx
mov dword [esp + 0x20], eax
mov dword [esp + 4], 0xe8ebeae5
mov byte [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x27
xor cl, byte [esp + eax + 4]
add cl, 0x3d
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 5
jne 0x446ed0
mov eax, dword [esp + 4]
mov edi, dword [0x452b74]
test edi, edi
mov dword [esp + 0xc], esi
je 0x446f3d
xor ecx, ecx
mov edx, dword [0x452b78]
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x446f10
inc ecx
cmp edi, ecx
jne 0x446f00
jmp 0x446f3d
mov esi, dword [edx + ecx*8 + 4]
cmp esi, eax
je 0x446f3d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x50]
push 6
push esi
push dword [0x452b7c]
call fcn.00442710
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0x4f0e092f
mov byte [esp + 8], 0
mov eax, 0x4c24faf7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp], eax
movzx edx, byte [esp + eax - 0x4c24faf3]
lea ecx, [eax - 0x4c24fab5]
and ecx, edx
mov ebx, edx
mov edx, ecx
and edx, 0x4d
mov eax, ecx
or eax, 0xfffffffd
lea edi, [eax + 1]
imul edi, edx
inc al
mul dl
mov esi, ecx
and esi, 2
mov edx, dword [esp]
add dl, bl
and dl, 1
add dl, bl
mov ebp, ebx
add dl, al
mov ebx, ecx
or ebx, 2
imul esi, ebx
shr cl, 1
and cl, 1
mov eax, ecx
mul bl
mov ecx, edi
sub ecx, esi
mov ebx, ebp
add ebx, dword [esp]
add ecx, ebx
xor cl, 1
add cl, dl
add al, al
sub cl, al
add ebx, edi
sub ebx, esi
and bl, 0xfe
sub cl, bl
movzx eax, cl
add eax, dword [esp]
mov ecx, dword [esp]
mov byte [esp + ecx - 0x4c24faf3], al
mov eax, dword [esp]
inc eax
cmp eax, 0x4c24fafc
jne 0x446f60
mov ebp, dword [esp + 0x24]
cmp ebp, dword [esp + 4]
jne 0x44715c
push dword [esp + 0x10]
call fcn.0043f6a0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 0x14], 0x393a3b32
mov byte [esp + 0x18], 0
xor edx, edx
xor esi, esi
nop
nop
nop
nop
nop
mov edi, edx
and edi, 6
mov ebx, esi
xor ebx, 0xb
add ebx, edi
xor bl, byte [esp + esi + 0x14]
add bl, 0xc9
mov byte [esp + esi + 0x14], bl
inc esi
add edx, 2
cmp esi, 5
jne 0x447020
mov edx, dword [esp + 0x14]
mov dword [esp + 4], 0xe8ebeae5
mov byte [esp + 8], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
add cl, 0x27
xor cl, byte [esp + ebx + 4]
add cl, 0x3d
mov byte [esp + ebx + 4], cl
inc ebx
cmp ebx, 5
jne 0x447060
mov ebp, dword [esp + 4]
mov esi, dword [0x452b74]
test esi, esi
je 0x4470d3
xor edi, edi
mov ebx, dword [0x452b78]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xc0a4c970
je 0x4470a0
inc edi
cmp esi, edi
jne 0x447090
jmp 0x4470d3
mov esi, dword [ebx + edi*8 + 4]
cmp esi, ebp
je 0x4470d3
lea ecx, [esp + 0x10]
lea edi, [esp + 0x1c]
push ecx
push dword [esp + 4]
push eax
push edx
push edi
push dword [esp + 0x50]
push 6
push esi
push dword [0x452b7c]
mov esi, eax
call fcn.00442710
add esp, 0x24
mov ebp, eax
mov eax, esi
test ebp, ebp
mov edx, dword [esp + 0x48]
js 0x447153
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4470e8
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x4c], 0
je 0x447153
test edx, edx
je 0x44714a
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x447102
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, dword [esp + 0x48]
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add dword [esp + 0xc], ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebx, esi
mov edi, dword [esp + 0xc]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0xc]
test dl, 1
je 0x44714a
and edx, 2
movzx ecx, byte [esi + edx]
mov byte [edi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x4c]
mov dword [edx], ecx
push eax
call fcn.0043f710
add esp, 4
mov eax, ebp
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret