Function at 0x442140
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x442199
lea ecx, [eax - 2]
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add ecx, 2
cmp word [edx], 0
lea edx, [edx + 2]
jne 0x442160
mov esi, ecx
xor esi, eax
mov edx, eax
not edx
and edx, ecx
add edx, edx
sub edx, esi
sar edx, 1
mov esi, edx
or esi, 2
mov ecx, edx
and ecx, 2
imul esi, ecx
and edx, 0xfffd
xor ecx, 2
imul ecx, edx
add ecx, esi
jmp 0x44219b
xor ecx, ecx
mov word [esp + 0x10], cx
mov edx, eax
test eax, eax
je 0x4421ab
add ecx, 2
mov edx, ecx
mov edi, dword [esp + 0x38]
mov word [esp + 0x12], dx
mov dword [esp + 0x14], eax
mov dword [esp], 0xf4f5f6f7
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax]
mov ecx, eax
or ecx, 0x9cdb5cd4
xor ecx, edx
mov edx, ecx
not edx
add ecx, 0xdb
and edx, 1
or ecx, 1
add ecx, edx
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x4421d0
mov ebx, dword [esp]
mov eax, dword [0x44dee4]
test eax, eax
je 0x44225f
xor ecx, ecx
mov edx, dword [0x44dee8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x442230
inc ecx
cmp eax, ecx
jne 0x442220
jmp 0x44225f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44225f
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x44]
push 0x18
push eax
push dword [0x44deec]
call fcn.0043e980
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x37f6f987
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
mov ecx, eax
add cl, 0x56
xor cl, byte [esp + eax]
add cl, 0x52
mov byte [esp + eax], cl
inc eax
cmp eax, 5
jne 0x442270
cmp ebx, dword [esp]
jne 0x442419
push dword [esp + 8]
call fcn.0043bfb0
add esp, 4
mov esi, dword [esp + 8]
mov dword [esp], 0x292a2b22
mov dword [esp + 4], 0
mov edx, 0xdc5e7647
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx + 0x23a189b9]
mov ebx, ecx
and ebx, edx
add bl, bl
sub cl, bl
movzx ecx, cl
add ecx, edx
add cl, 0x9d
mov byte [esp + edx + 0x23a189b9], cl
inc edx
cmp edx, 0xdc5e764f
jne 0x4422c0
mov edx, dword [esp]
mov dword [esp + 0xc], 0xf4f5f6f7
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebp + 0xc]
mov ebx, ebp
or ebx, 0x9cdb5cd4
xor ebx, ecx
mov ecx, ebx
not ecx
add ebx, 0xdb
and ecx, 1
or ebx, 1
add ebx, ecx
mov byte [esp + ebp + 0xc], bl
mov ecx, ebp
and ecx, 1
xor ebp, 1
lea ebp, [ebp + ecx*2]
cmp ebp, 4
jb 0x442300
mov ebx, dword [esp + 0xc]
mov ebp, dword [0x44dee4]
test ebp, ebp
je 0x442398
xor edi, edi
mov ecx, dword [0x44dee8]
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0x877f203a
je 0x442360
inc edi
cmp ebp, edi
jne 0x442350
jmp 0x442394
mov ebp, dword [ecx + edi*8 + 4]
cmp ebp, ebx
mov edi, dword [esp + 0x38]
je 0x442398
lea ecx, [esp + 8]
lea edi, [esp + 0x10]
push ecx
push esi
push eax
push edx
push edi
push dword [esp + 0x44]
push 0x18
push ebp
push dword [0x44deec]
mov edi, eax
call fcn.0043e980
add esp, 0x24
mov ebx, eax
mov eax, edi
mov edi, dword [esp + 0x38]
test ebx, ebx
mov esi, dword [esp + 0x3c]
js 0x442410
test edi, edi
je 0x4423a9
mov ecx, dword [eax + 4]
mov dword [edi], ecx
cmp dword [esp + 0x40], 0
je 0x442410
test esi, esi
je 0x442407
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x4423c3
mov edx, ecx
lea ebp, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, esi
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, edx
and ecx, 0xfffffffc
add esi, ecx
lea ebp, [eax + ecx]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x18], ebp
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
je 0x442407
and edx, 2
mov ecx, dword [esp + 0x18]
movzx ecx, byte [ecx + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x40]
mov dword [edx], ecx
push eax
call fcn.0043c070
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret