Function at 0x445810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], 0xfcfdfafb
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
and edx, 2
xor edx, 0x56
mov ecx, eax
and ecx, 1
sub ecx, edx
xor cl, byte [esp + eax + 0x10]
add cl, 0xae
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 4
jne 0x445840
mov ebp, dword [esp + 0x10]
mov eax, dword [0x45064c]
test eax, eax
je 0x4458be
xor ecx, ecx
mov edx, dword [0x450650]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3602324e
je 0x445890
inc ecx
cmp eax, ecx
jne 0x445880
jmp 0x4458be
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x4458be
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push dword [0x450654]
push eax
call fcn.00441b40
add esp, 0x24
mov ebp, eax
cmp ebp, 0xc0000023
jne 0x445abc
push dword [esp + 0xc]
call fcn.0043e7c0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], 0xfcfdfafb
xor edx, edx
nop
nop
nop
nop
nop
mov esi, edx
and esi, 2
xor esi, 0x56
mov ecx, edx
and ecx, 1
sub ecx, esi
xor cl, byte [esp + edx + 0x14]
add cl, 0xae
mov byte [esp + edx + 0x14], cl
inc edx
cmp edx, 4
jne 0x4458f0
mov ebp, dword [esp + 0x14]
mov edx, dword [0x45064c]
test edx, edx
je 0x445976
xor esi, esi
mov ecx, dword [0x450650]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0x3602324e
je 0x445940
inc esi
cmp edx, esi
jne 0x445930
jmp 0x445976
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
je 0x445976
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 8]
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push dword [0x450654]
push edx
mov esi, eax
call fcn.00441b40
add esp, 0x24
mov ebp, eax
mov eax, esi
test ebp, ebp
mov ecx, dword [esp]
js 0x445ab3
mov edx, dword [esp + 0x38]
test edx, edx
mov esi, dword [esp + 0x3c]
je 0x445a37
test edi, edi
je 0x445a30
mov ecx, dword [ecx + 0x10]
shr ecx, 1
mov edx, dword [edx]
cmp edx, ecx
jb 0x4459a6
mov edx, ecx
test edx, edx
je 0x445a24
add eax, 0x14
mov ecx, edx
test dl, 1
je 0x4459e4
not ecx
lea ecx, [ecx + edx*2]
movzx esi, word [eax]
mov word [esp + 4], si
test si, si
mov ebx, 0
setne bl
mov esi, ebx
mov ebx, dword [esp + 0x44]
lea eax, [eax + esi*2]
movzx esi, word [esp + 4]
mov word [edi], si
mov esi, dword [esp + 0x3c]
add edi, 2
cmp edx, 1
je 0x445a24
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx edx, word [eax + ebx*2]
xor eax, eax
test dx, dx
setne al
lea eax, [esi + eax*2]
mov word [edi + 2], dx
add edi, 4
add ecx, 0xfffffffe
jne 0x4459f0
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov word [edi], 0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp]
mov eax, dword [ecx + 0x10]
shr eax, 1
mov dword [edx], eax
test esi, esi
je 0x445a40
mov eax, dword [ecx + 4]
mov dword [esi], eax
test ebx, ebx
je 0x445ab3
cmp dword [esp + 0x40], 0
je 0x445aae
mov eax, dword [ebx]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x445a56
mov eax, ecx
mov ebx, dword [esp]
mov esi, dword [ebx + 8]
add esi, ebx
mov ecx, eax
xor ecx, 3
mov edx, eax
or edx, 0xfffffffc
and edx, ecx
mov ecx, eax
shr ecx, 2
mov edi, dword [esp + 0x40]
add dword [esp + 8], edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, dword [esp + 8]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebx
mov esi, dword [esp + 8]
test al, 1
mov ebx, dword [esp + 0x44]
je 0x445aae
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov ecx, dword [esp]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
push ecx
call fcn.0043e820
add esp, 4
mov eax, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret