Function at 0x446dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
xor ecx, ecx
test eax, eax
je 0x446e03
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x446df0
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x10], cx
mov edx, eax
test eax, eax
je 0x446e13
add ecx, 2
mov edx, ecx
mov word [esp + 0x12], dx
mov dword [esp + 0x14], eax
mov dword [esp], 0xecedeeef
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0x12f58828
mov ecx, 0x6d0a77d7
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x12f58828]
mov esi, eax
xor esi, edx
or esi, ecx
lea edi, [esi + esi]
not edi
add edi, ecx
lea ebx, [eax + esi*2]
add ebx, 0xed0a7801
and ebx, edx
not edx
and edx, edi
sub ebx, edx
add bl, 0x38
mov byte [esp + eax - 0x12f58828], bl
inc eax
dec ecx
cmp eax, 0x12f5882f
jne 0x446e40
mov ebx, dword [esp]
mov eax, dword [0x452d58]
test eax, eax
je 0x446ecf
xor ecx, ecx
mov edx, dword [0x452d5c]
nop
nop
nop
cmp dword [edx + ecx*8], 0xbbe848dd
je 0x446ea0
inc ecx
cmp eax, ecx
jne 0x446e90
jmp 0x446ecf
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x446ecf
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x44]
push 6
push dword [0x452d60]
push eax
call fcn.004427e0
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x612627f9
mov dword [esp + 4], 0
mov eax, 0x2ee8d79
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x2ee8d79]
xor ecx, eax
mov edx, ecx
and edx, 1
mov esi, 1
sub esi, ecx
and esi, 1
and ecx, 0xfe
or ecx, esi
lea ecx, [ecx + edx*2]
add cl, 0xa2
mov byte [esp + eax - 0x2ee8d79], cl
inc eax
cmp eax, 0x2ee8d81
jne 0x446ef0
cmp ebx, dword [esp]
jne 0x4470bd
push dword [esp + 0xc]
call fcn.0043f540
add esp, 4
mov dword [esp + 8], eax
mov edi, dword [esp + 0xc]
mov dword [esp], 0xecedeeef
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov edx, 0x12f58828
mov ebx, 0x6d0a77d7
movzx esi, byte [esp + edx - 0x12f58828]
mov ecx, edx
xor ecx, esi
or ecx, ebx
lea ebp, [ecx + ecx]
not ebp
add ebp, ebx
lea ecx, [edx + ecx*2]
add ecx, 0xed0a7801
and ecx, esi
not esi
and esi, ebp
sub ecx, esi
add cl, 0x38
mov byte [esp + edx - 0x12f58828], cl
inc edx
dec ebx
cmp edx, 0x12f5882f
jne 0x446f60
mov ebx, dword [esp]
mov edx, dword [0x452d58]
test edx, edx
je 0x446ff2
xor esi, esi
mov ebp, dword [0x452d5c]
nop
cmp dword [ebp + esi*8], 0xbbe848dd
je 0x446fc1
inc esi
cmp edx, esi
jne 0x446fb0
jmp 0x446ff2
mov edx, dword [ebp + esi*8 + 4]
cmp edx, ebx
je 0x446ff2
lea ecx, [esp + 0xc]
lea esi, [esp + 0x10]
push ecx
push edi
mov eax, dword [esp + 0x10]
push eax
push 2
push esi
push dword [esp + 0x44]
push 6
push dword [0x452d60]
push edx
call fcn.004427e0
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
js 0x4470b1
mov edx, dword [esp + 0x38]
test edx, edx
je 0x447013
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test edi, edi
je 0x4470b1
test ebp, ebp
je 0x4470a8
mov esi, dword [edi]
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
cmp esi, ecx
jb 0x447032
mov esi, ecx
mov eax, dword [esp + 8]
lea edx, [eax + 0xc]
mov ecx, esi
shr ecx, 2
mov edi, ebp
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, esi
and ecx, 0xfffffffc
add ebp, ecx
lea edi, [eax + ecx]
add edi, 0xc
mov dword [esp + 0x18], edi
mov edx, esi
and edx, 3
mov ecx, edx
shr ecx, 1
mov eax, ebp
mov ebp, edi
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ebp, dword [esp + 0x18]
mov ecx, edx
or ecx, 1
xor edx, 0xfffffffe
and edx, ecx
mov edi, dword [esp + 0x40]
je 0x4470a8
and esi, 2
movzx ecx, byte [ebp + esi]
mov byte [eax + esi], cl
cmp edx, 1
je 0x4470a8
movzx ecx, byte [ebp + esi + 1]
mov byte [eax + esi + 1], cl
cmp edx, 2
je 0x4470a8
movzx ecx, byte [ebp + esi + 2]
mov byte [eax + esi + 2], cl
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
push dword [esp + 8]
call fcn.0043f5b0
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret