Function at 0x446a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x38]
mov dword [esp + 8], 0xecedeeef
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov eax, 0x12f58828
mov ecx, 0x6d0a77d7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x12f58820]
mov esi, eax
xor esi, edx
or esi, ecx
lea ebp, [esi + esi]
not ebp
add ebp, ecx
lea ebx, [eax + esi*2]
add ebx, 0xed0a7801
and ebx, edx
not edx
and edx, ebp
sub ebx, edx
add bl, 0x38
mov byte [esp + eax - 0x12f58820], bl
inc eax
dec ecx
cmp eax, 0x12f5882f
jne 0x446aa0
mov esi, dword [esp + 8]
mov eax, dword [0x452d58]
test eax, eax
je 0x446b2e
xor ecx, ecx
mov edx, dword [0x452d5c]
nop
nop
cmp dword [edx + ecx*8], 0xc59b8bcb
je 0x446b00
inc ecx
cmp eax, ecx
jne 0x446af0
jmp 0x446b2e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x446b2e
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 1
push dword [esp + 0x44]
push dword [esp + 0x44]
push 6
push dword [0x452d60]
push eax
call fcn.004427e0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x446dc3
push dword [esp + 0x18]
call fcn.0043f540
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xecedeeef
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov edx, 0x12f58828
mov ebx, 0x6d0a77d7
movzx esi, byte [esp + edx - 0x12f58820]
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 - 0x12f58820], cl
inc edx
dec ebx
cmp edx, 0x12f5882f
jne 0x446b70
mov esi, dword [esp + 8]
mov edx, dword [0x452d58]
test edx, edx
je 0x446be3
mov dword [esp], esi
xor esi, esi
mov ecx, dword [0x452d5c]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0xc59b8bcb
je 0x446bed
inc esi
cmp edx, esi
jne 0x446bd0
mov esi, dword [esp]
jmp 0x446c25
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
jmp 0x446c25
mov edx, dword [ecx + esi*8 + 4]
mov esi, dword [esp]
cmp edx, esi
je 0x446c25
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 8]
push ebx
push 1
push dword [esp + 0x44]
push dword [esp + 0x44]
push 6
push dword [0x452d60]
push edx
mov esi, eax
call fcn.004427e0
add esp, 0x24
mov ecx, eax
mov eax, esi
mov esi, ecx
test esi, esi
js 0x446dba
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x446d19
test edi, edi
je 0x446d12
mov ebp, dword [ebx + 0x10]
shr ebp, 1
mov ecx, dword [edx]
cmp ecx, ebp
jb 0x446c4e
mov ecx, ebp
test ecx, ecx
mov ebp, dword [esp + 0x48]
je 0x446d0d
add eax, 0x14
mov dword [esp + 4], ecx
and ecx, 3
mov dword [esp], esi
je 0x446ca3
xor esi, esi
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x446c70
mov ecx, dword [esp + 4]
sub ecx, esi
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp]
cmp dword [esp + 4], 4
jae 0x446cb0
jmp 0x446d0d
mov ecx, dword [esp + 4]
cmp dword [esp + 4], 4
jb 0x446d0d
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x446cb0
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp]
mov word [edi], 0
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x446d26
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test ebp, ebp
je 0x446dba
mov dword [esp], esi
cmp dword [esp + 0x44], 0
je 0x446db1
mov esi, dword [ebp]
mov eax, dword [ebx + 0xc]
cmp esi, eax
jb 0x446d44
mov esi, eax
mov eax, dword [ebx + 8]
add eax, ebx
mov ecx, esi
shr ecx, 2
mov edx, esi
and edx, 0xfffffffc
mov edi, dword [esp + 0x44]
add dword [esp + 0x14], edx
add edx, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, esi
and eax, 3
mov ecx, eax
shr ecx, 1
mov ebx, edx
mov edi, dword [esp + 0x14]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
or ecx, 1
xor eax, 0xfffffffe
and eax, ecx
je 0x446db1
and esi, 2
movzx ecx, byte [edx + esi]
mov byte [edi + esi], cl
cmp eax, 1
je 0x446db1
movzx ecx, byte [edx + esi + 1]
mov byte [edi + esi + 1], cl
cmp eax, 2
je 0x446db1
movzx eax, byte [edx + esi + 2]
mov byte [edi + esi + 2], al
mov eax, dword [ebx + 0xc]
mov dword [ebp], eax
mov esi, dword [esp]
push ebx
call fcn.0043f5b0
add esp, 4
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret