Function at 0x441440
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x30]
mov dword [esp + 8], 0x4c4d4a4b
mov dword [esp + 0xc], 0
xor eax, eax
xor ecx, ecx
nop
movzx esi, byte [esp + ecx + 8]
mov ebx, eax
and ebx, 4
mov edx, ecx
xor edx, 0xbadbc4f2
add edx, ebx
xor edx, esi
lea esi, [edx + 0x59b52745]
mov ebx, esi
and ebx, 1
and esi, 0xfe
and edx, 1
or edx, esi
lea edx, [edx + ebx*2]
mov byte [esp + ecx + 8], dl
inc ecx
add eax, 2
cmp ecx, 8
jne 0x441460
mov ebx, dword [esp + 8]
mov eax, dword [0x44cff0]
test eax, eax
je 0x4414fe
xor ecx, ecx
mov edx, dword [0x44cff4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x4f699cd4
je 0x4414d0
inc ecx
cmp eax, ecx
jne 0x4414c0
jmp 0x4414fe
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4414fe
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push eax
push dword [0x44cff8]
call fcn.0043def0
add esp, 0x24
mov ebx, eax
cmp ebx, 0xc0000023
jne 0x44175c
push dword [esp + 0x10]
call fcn.0043b840
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x4c4d4a4b
mov dword [esp + 0xc], 0
xor ebp, ebp
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebx + 8]
mov edx, ebp
and edx, 4
mov esi, ebx
xor esi, 0xbadbc4f2
add esi, edx
xor esi, ecx
lea ecx, [esi + 0x59b52745]
mov edx, ecx
and edx, 1
and ecx, 0xfe
and esi, 1
or esi, ecx
lea ecx, [esi + edx*2]
mov byte [esp + ebx + 8], cl
inc ebx
add ebp, 2
cmp ebx, 8
jne 0x441540
mov ebx, dword [esp + 8]
mov edx, dword [0x44cff0]
test edx, edx
je 0x4415b0
xor esi, esi
mov ecx, dword [0x44cff4]
mov ebp, dword [esp + 0x40]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0x4f699cd4
je 0x4415b6
inc esi
cmp edx, esi
jne 0x4415a0
jmp 0x4415ec
mov ebp, dword [esp + 0x40]
jmp 0x4415ec
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebx
mov esi, dword [esp]
je 0x4415ef
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 8]
push esi
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44cff8]
mov esi, eax
call fcn.0043def0
add esp, 0x24
mov ebx, eax
mov eax, esi
mov esi, dword [esp]
test ebx, ebx
js 0x441753
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4416db
test edi, edi
je 0x4416d4
mov edx, dword [esi + 0x10]
shr edx, 1
mov ecx, dword [ecx]
cmp ecx, edx
jb 0x441618
mov ecx, edx
test ecx, ecx
je 0x4416cb
add eax, 0x14
mov edx, ecx
and ecx, 3
je 0x44165f
mov dword [esp + 4], edx
xor esi, esi
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x441630
mov edx, dword [esp + 4]
mov ecx, edx
sub ecx, esi
mov ebp, dword [esp + 0x40]
mov esi, dword [esp]
cmp edx, 4
jae 0x441666
jmp 0x4416cb
mov ecx, edx
cmp edx, 4
jb 0x4416cb
mov ebp, ebx
nop
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 eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x441670
mov esi, dword [esp]
mov ebx, ebp
mov ebp, dword [esp + 0x40]
mov word [edi], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4416e8
mov eax, dword [esi + 4]
mov dword [ecx], eax
test ebp, ebp
je 0x441753
mov dword [esp + 4], ebx
cmp dword [esp + 0x3c], 0
je 0x441749
mov eax, dword [ebp]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x441703
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov ebx, dword [esp + 0x3c]
mov edi, ebx
add ebx, 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, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp]
test al, 1
je 0x441749
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
mov eax, dword [esi + 0xc]
mov dword [ebp], eax
mov ebx, dword [esp + 4]
push esi
call fcn.0043b890
add esp, 4
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret