Function at 0x442690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
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 0x44270e
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 esi, eax
xor esi, 0x31cf466d
mov edi, eax
or edi, 0x4e30b992
and edi, esi
sub eax, edx
lea eax, [eax + edi*2]
add eax, 0xce30b992
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x26
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x4426c0
mov esi, dword [esp + 4]
mov eax, dword [0x44e374]
test eax, eax
je 0x44276e
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], 0x84aa3bd1
je 0x442740
inc ecx
cmp eax, ecx
jne 0x442730
jmp 0x44276e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x44276e
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push dword [esp + 0x44]
push dword [esp + 0x44]
push 6
push dword [0x44e37c]
push eax
call fcn.0043e4b0
add esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x718e8fa9
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4427c9
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
mov edx, eax
xor edx, 0xd39d
and eax, 0xd39d
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xef
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x442790
cmp esi, dword [esp + 4]
jne 0x4429b3
push dword [esp + 0x14]
call fcn.0043b530
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
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 0x442860
nop
nop
nop
nop
nop
nop
mov ebx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
lea edi, [ebx + ebx]
and edi, 0x9c617324
mov ebp, ebx
xor ebp, 0x31cf466d
mov edx, ebx
or edx, 0x4e30b992
and edx, ebp
sub ebx, edi
lea edx, [ebx + edx*2]
add edx, 0xce30b992
xor edx, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
add dl, 0x26
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 7
jb 0x442810
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 4]
mov edx, dword [0x44e374]
test edx, edx
je 0x4428c0
xor edi, edi
mov ebx, dword [0x44e378]
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x84aa3bd1
je 0x442890
inc edi
cmp edx, edi
jne 0x442880
jmp 0x4428c0
mov edx, dword [ebx + edi*8 + 4]
cmp edx, esi
je 0x4428c0
lea esi, [esp + 0x14]
push esi
push ecx
mov eax, dword [esp + 0x14]
push eax
push 0
push dword [esp + 0x44]
push dword [esp + 0x44]
push 6
push dword [0x44e37c]
push edx
call fcn.0043e4b0
add esp, 0x24
mov esi, eax
test ebp, ebp
je 0x4429a7
test esi, esi
js 0x4429a7
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x44299b
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
shr edx, 1
mov eax, dword [ebp]
cmp eax, edx
jb 0x4428ee
mov eax, edx
test eax, eax
je 0x442992
mov edx, dword [esp + 0xc]
add edx, 0x10
mov ebx, eax
and ebx, 3
je 0x4429bd
mov dword [esp + 0x18], eax
xor edi, edi
nop
nop
movzx ebp, word [edx]
xor eax, eax
test bp, bp
setne al
lea edx, [edx + eax*2]
mov word [ecx], bp
add ecx, 2
inc edi
cmp ebx, edi
jne 0x442910
mov eax, dword [esp + 0x18]
mov ebp, eax
sub ebp, edi
cmp eax, 4
jb 0x442992
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
lea edi, [edx + ebx*2]
mov word [ecx], ax
movzx eax, word [edx + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [edi + edx*2]
mov word [ecx + 2], ax
movzx eax, word [edi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea edi, [ebx + edx*2]
mov word [ecx + 4], ax
movzx eax, word [ebx + edx*2]
xor edx, edx
test ax, ax
setne dl
mov word [ecx + 6], ax
add ecx, 8
lea edx, [edi + edx*2]
add ebp, 0xfffffffc
jne 0x442940
mov word [ecx], 0
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
shr eax, 1
mov dword [ebp], eax
push dword [esp + 0xc]
call fcn.0043b5c0
add esp, 4
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, eax
cmp eax, 4
jae 0x442940
jmp 0x442992