Function at 0x4422a0
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 + 4], 0xd8dbdac5
mov word [esp + 8], 0
mov eax, 0xf
mov ecx, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, ecx
and esi, 0x14
mov edx, eax
and edx, 0xb
or edx, esi
xor dl, byte [esp + eax - 0xb]
xor dl, 0xb4
add dl, 0x95
mov byte [esp + eax - 0xb], dl
inc eax
dec ecx
cmp eax, 0x15
jne 0x4422d0
mov eax, dword [esp + 4]
mov esi, dword [0x44e0c0]
test esi, esi
je 0x44234c
xor ecx, ecx
mov edx, dword [0x44e0c4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x4f699cd4
je 0x442320
inc ecx
cmp esi, ecx
jne 0x442310
jmp 0x44234c
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x44234c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44e0c8]
call fcn.0043eca0
add esp, 0x24
cmp eax, 0xc0000023
jne 0x44258f
push dword [esp + 0x10]
call fcn.0043c7d0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0xd8dbdac5
mov word [esp + 8], 0
mov edx, 0xf
mov ebx, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, ebx
and esi, 0x14
mov ecx, edx
and ecx, 0xb
or ecx, esi
xor cl, byte [esp + edx - 0xb]
xor cl, 0xb4
add cl, 0x95
mov byte [esp + edx - 0xb], cl
inc edx
dec ebx
cmp edx, 0x15
jne 0x442390
mov ebp, dword [esp + 4]
mov edx, dword [0x44e0c0]
test edx, edx
je 0x4423e0
xor esi, esi
mov ecx, dword [0x44e0c4]
mov ebx, dword [esp + 0x3c]
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0x4f699cd4
je 0x4423e6
inc esi
cmp edx, esi
jne 0x4423d0
jmp 0x44241c
mov ebx, dword [esp + 0x3c]
jmp 0x44241c
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
mov esi, dword [esp]
je 0x44241f
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44e0c8]
mov esi, eax
call fcn.0043eca0
add esp, 0x24
mov ebp, eax
mov eax, esi
mov esi, dword [esp]
mov dword [esp + 0xc], ebp
test ebp, ebp
mov ebp, dword [esp + 0x40]
js 0x442582
mov edx, dword [esp + 0x34]
test edx, edx
je 0x442519
test edi, edi
je 0x442512
mov ecx, dword [esi + 0x10]
shr ecx, 1
mov ebp, dword [edx]
cmp ebp, ecx
jb 0x442450
mov ebp, ecx
test ebp, ebp
je 0x44249c
add eax, 0x14
mov ecx, ebp
and ecx, 3
je 0x4424a2
mov ebx, ebp
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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 0x442470
mov ebp, ebx
mov ecx, ebx
sub ecx, esi
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp]
jmp 0x4424a4
mov ebp, dword [esp + 0x40]
jmp 0x44250d
mov ecx, ebp
cmp ebp, 4
mov ebp, dword [esp + 0x40]
jb 0x44250d
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 0x4424b0
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp]
mov word [edi], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x442526
mov eax, dword [esi + 4]
mov dword [ecx], eax
test ebp, ebp
je 0x442582
test ebx, ebx
je 0x44257c
mov eax, dword [ebp]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x44253a
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 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 0x44257c
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
mov eax, dword [esi + 0xc]
mov dword [ebp], eax
push esi
call fcn.0043c860
add esp, 4
mov eax, dword [esp + 0xc]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret