Function at 0x443060
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
mov ecx, 0xfffffffe
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x443070
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov edi, ecx
and edi, 2
or ecx, 2
imul ecx, edi
xor edi, 2
imul edi, edx
add ecx, edi
mov word [esp + 0x14], cx
mov edx, ecx
and edx, 2
xor ecx, 2
lea ecx, [ecx + edx*2]
mov word [esp + 0x16], cx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x44312e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
lea edx, [eax + eax]
and edx, 0x9c617324
mov edi, eax
xor edi, 0x31cf466d
mov ebx, eax
or ebx, 0x4e30b992
and ebx, edi
sub eax, edx
lea eax, [eax + ebx*2]
add eax, 0xce30b992
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x26
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x4430e0
mov ebx, dword [esp + 4]
mov eax, dword [0x44e374]
test eax, eax
je 0x44318f
xor ecx, ecx
mov edx, dword [0x44e378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xf81c0144
je 0x443160
inc ecx
cmp eax, ecx
jne 0x443150
jmp 0x44318f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44318f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push dword [0x44e37c]
push eax
call fcn.0043e4b0
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0x89cacb11
mov dword [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x4431e9
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
mov edx, eax
xor edx, 0xd2f72933
and eax, 0xd2f72933
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x4431b0
cmp ebx, dword [esp + 4]
jne 0x44336d
push dword [esp + 0x10]
call fcn.0043b530
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 6
ja 0x443284
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebp, dword [esp]
mov edi, dword [esp]
movzx edi, byte [esp + edi + 4]
lea ebx, [ebp*2]
and ebx, 0x9c617324
mov esi, ebp
xor esi, 0x31cf466d
mov edx, ebp
or edx, 0x4e30b992
and edx, esi
sub ebp, ebx
lea edx, [edx*2 - 0x31cf466e]
add edx, ebp
xor edx, edi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x26
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 7
jb 0x443230
mov ebx, dword [esp + 4]
mov edx, dword [0x44e374]
test edx, edx
je 0x4432b0
xor ebp, ebp
mov edi, dword [0x44e378]
mov esi, dword [esp + 0x44]
nop
nop
cmp dword [edi + ebp*8], 0xf81c0144
je 0x4432b6
inc ebp
cmp edx, ebp
jne 0x4432a0
jmp 0x4432eb
mov esi, dword [esp + 0x44]
jmp 0x4432eb
mov edx, dword [edi + ebp*8 + 4]
cmp edx, ebx
je 0x4432eb
lea esi, [esp + 0x10]
lea edi, [esp + 0x14]
push esi
mov esi, dword [esp + 0x48]
push ecx
push eax
push 2
push edi
push dword [esp + 0x48]
push 6
push dword [0x44e37c]
push edx
mov edi, eax
call fcn.0043e4b0
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
mov edx, dword [esp + 0x3c]
js 0x443364
test edx, edx
je 0x4432fc
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test esi, esi
je 0x443364
cmp dword [esp + 0x40], 0
je 0x44335f
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x443312
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x1c], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [esp + 0x44]
je 0x44335f
and edx, 2
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.0043b5c0
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret