Function at 0x446560
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp], 0x707f7e7d
mov word [esp + 4], 0
mov eax, 0xea
mov ecx, 0x17478415
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x17478415]
lea edx, [eax - 0x17478500]
mov ebp, eax
and ebp, 0xcd
mov edi, ecx
and edi, 2
or edi, ebp
xor edi, 0x22
or edi, eax
and edi, esi
and edx, 0xdfffffff
or edx, esi
xor edx, 0xdfffffff
or edx, edi
mov esi, edx
and esi, 1
or edx, 1
add edx, esi
add dl, 0x96
mov byte [esp + ecx - 0x17478415], dl
dec eax
inc ecx
cmp eax, 0xe4
jne 0x446590
mov esi, dword [esp]
mov eax, dword [0x4528cc]
test eax, eax
je 0x44663e
xor ecx, ecx
mov edx, dword [0x4528d0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x8784ccde
je 0x446610
inc ecx
cmp eax, ecx
jne 0x446600
jmp 0x44663e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x44663e
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push dword [0x4528d4]
push eax
call fcn.004428e0
add esp, 0x24
mov esi, eax
mov dword [esp], 0xd39291b3
mov dword [esp + 4], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
and edi, 8
mov edx, ecx
xor edx, 0xdc
add edx, edi
xor dl, byte [esp + ecx]
add dl, 0xb4
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 8
jne 0x446660
cmp esi, dword [esp]
jne 0x446897
push dword [esp + 0x14]
call fcn.0043fce0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp], 0x707f7e7d
mov word [esp + 4], 0
mov edx, 0xea
mov ebp, 0x17478415
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ebp - 0x17478415]
lea ecx, [edx - 0x17478500]
mov edi, edx
and edi, 0xcd
mov esi, ebp
and esi, 2
or esi, edi
xor esi, 0x22
or esi, edx
and esi, ebx
and ecx, 0xdfffffff
or ecx, ebx
xor ecx, 0xdfffffff
or ecx, esi
mov esi, ecx
and esi, 1
or ecx, 1
add ecx, esi
add cl, 0x96
mov byte [esp + ebp - 0x17478415], cl
dec edx
inc ebp
cmp edx, 0xe4
jne 0x4466c0
mov esi, dword [esp]
mov ecx, dword [0x4528cc]
test ecx, ecx
je 0x446740
xor edx, edx
mov edi, dword [0x4528d0]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
nop
cmp dword [edi + edx*8], 0x8784ccde
je 0x44674a
inc edx
cmp ecx, edx
jne 0x446730
jmp 0x446780
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
jmp 0x446780
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x446780
lea edx, [esp + 0x14]
push edx
push dword [esp + 0x14]
push dword [esp + 0x10]
push 0
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push dword [0x4528d4]
push ecx
mov edi, eax
call fcn.004428e0
add esp, 0x24
mov esi, eax
mov eax, edi
test ebx, ebx
mov edx, dword [esp + 8]
je 0x44688e
test esi, esi
js 0x44688e
test ebp, ebp
je 0x446887
mov ecx, dword [edx + 0xc]
shr ecx, 1
mov edi, dword [ebx]
cmp edi, ecx
jb 0x4467a9
mov edi, ecx
test edi, edi
je 0x44687e
add eax, 0x10
mov ecx, edi
and ecx, 3
je 0x446807
mov dword [esp + 0x10], edi
xor edi, edi
mov ebp, dword [esp + 0x34]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, word [eax]
xor edx, edx
test bx, bx
setne dl
lea eax, [eax + edx*2]
mov word [ebp], bx
add ebp, 2
inc edi
cmp ecx, edi
jne 0x4467d0
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x10]
mov ebp, ecx
sub ebp, edi
mov edi, ecx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 8]
cmp edi, 4
jae 0x44680e
jmp 0x44687e
mov ebp, edi
cmp edi, 4
jb 0x44687e
mov ebx, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
setne cl
lea edi, [eax + ecx*2]
mov word [ebx], dx
movzx eax, word [eax + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [edi + ecx*2]
mov word [ebx + 2], ax
movzx eax, word [edi + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edi, [edx + ecx*2]
mov word [ebx + 4], ax
movzx ecx, word [edx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [ebx + 6], cx
add ebx, 8
lea eax, [edi + eax*2]
add ebp, 0xfffffffc
jne 0x446820
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov word [eax], 0
mov eax, dword [edx + 0xc]
shr eax, 1
mov dword [ebx], eax
push edx
call fcn.0043fd50
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret