Function at 0x440e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [esp + 0x30]
mov dword [esp], 0x4c4d4a4b
mov dword [esp + 4], 0
xor eax, eax
xor ecx, ecx
nop
nop
movzx esi, byte [esp + ecx]
mov edi, eax
and edi, 4
mov edx, ecx
xor edx, 0xbadbc4f2
add edx, edi
xor edx, esi
lea esi, [edx + 0x59b52745]
mov edi, esi
and edi, 1
and esi, 0xfe
and edx, 1
or edx, esi
lea edx, [edx + edi*2]
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 8
jne 0x440e60
mov esi, dword [esp]
mov eax, dword [0x44cff0]
test eax, eax
je 0x440eee
xor ecx, ecx
mov edx, dword [0x44cff4]
nop
nop
cmp dword [edx + ecx*8], 0x3052ea03
je 0x440ec0
inc ecx
cmp eax, ecx
jne 0x440eb0
jmp 0x440eee
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x440eee
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push eax
push dword [0x44cff8]
call fcn.0043def0
add esp, 0x24
mov esi, eax
mov dword [esp], 0x511e1f39
mov dword [esp + 4], 0
mov eax, 0xf171fc45
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0xe8e03bb]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xa7
mov byte [esp + eax + 0xe8e03bb], cl
inc eax
cmp eax, 0xf171fc4d
jne 0x440f10
cmp esi, dword [esp]
jne 0x4410bf
push dword [esp + 0x10]
call fcn.0043b840
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp], 0x4c4d4a4b
mov dword [esp + 4], 0
xor ecx, ecx
xor edi, edi
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi]
mov edx, ecx
and edx, 4
mov esi, edi
xor esi, 0xbadbc4f2
add esi, edx
xor esi, ebp
lea edx, [esi + 0x59b52745]
mov ebp, edx
and ebp, 1
and edx, 0xfe
and esi, 1
or esi, edx
lea edx, [esi + ebp*2]
mov byte [esp + edi], dl
inc edi
add ecx, 2
cmp edi, 8
jne 0x440f70
mov esi, dword [esp]
mov edx, dword [0x44cff0]
test edx, edx
je 0x440fd3
xor edi, edi
mov ebp, dword [0x44cff4]
nop
cmp dword [ebp + edi*8], 0x3052ea03
je 0x4410c9
inc edi
cmp edx, edi
jne 0x440fc0
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4410b6
test esi, esi
js 0x4410b6
test ebx, ebx
je 0x4410af
mov ecx, dword [ebp + 0xc]
shr ecx, 1
mov edx, dword [edx]
cmp edx, ecx
jb 0x441000
mov edx, ecx
test edx, edx
je 0x4410a2
add eax, 0x10
mov ecx, edx
and ecx, 3
je 0x441109
mov dword [esp + 0xc], edx
xor edi, edi
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [ebx], bp
add ebx, 2
inc edi
cmp ecx, edi
jne 0x441020
mov edx, dword [esp + 0xc]
mov ebp, edx
sub ebp, edi
cmp edx, 4
jb 0x4410a2
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 0x441050
mov word [ebx], 0
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 0xc]
shr eax, 1
mov dword [edx], eax
push ebp
call fcn.0043b890
add esp, 4
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + edi*8 + 4]
cmp edx, esi
mov ebp, dword [esp + 8]
je 0x440fd7
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push ebp
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44cff8]
mov edi, eax
call fcn.0043def0
add esp, 0x24
mov esi, eax
mov eax, edi
jmp 0x440fd7
mov ebp, edx
cmp edx, 4
jae 0x441050
jmp 0x4410a2