Function at 0x42e9f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
push esi
push edi
mov dword [ebx], 0x4a80f4
mov dword [ebx + 4], ebp
mov al, byte [0x4ededd]
test al, 1
jne 0x42ea2d
or al, 1
push 0xa
mov ecx, 0x4edee0
mov byte [0x4ededd], al
call fcn.0042ed40
push 0x42ec20
call fcn.0041faec
add esp, 4
mov ecx, dword [0x4edee4]
test ecx, ecx
je 0x42ea56
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [0x4edee8]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x42ea56
cmp dword [edx + 8], ebp
je 0x42eace
mov edx, dword [edx]
test edx, edx
jne 0x42ea4b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebx + 8], ecx
mov al, byte [0x4ededd]
test al, 1
jne 0x42ea8e
or al, 1
push 0xa
mov ecx, 0x4edee0
mov byte [0x4ededd], al
call fcn.0042ed40
push 0x42ec20
call fcn.0041faec
add esp, 4
mov eax, dword [ebx + 8]
mov ecx, dword [0x4edee8]
mov dword [esp + 0x10], eax
mov eax, ebp
shr eax, 4
xor edx, edx
div ecx
mov eax, dword [0x4edee4]
test eax, eax
mov esi, edx
je 0x42eb3b
mov eax, dword [eax + esi*4]
test eax, eax
je 0x42eb76
cmp dword [eax + 8], ebp
je 0x42eb31
mov eax, dword [eax]
test eax, eax
jne 0x42eabe
jmp 0x42eb76
test edx, edx
je 0x42ea56
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x18]
push eax
push 4
push edx
push ebp
mov dword [ebx + 8], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 4]
xor esi, esi
test eax, eax
jbe 0x42eb12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0xff
div ecx
mov al, byte [esi + edi]
xor al, dl
mov byte [esi + edi], al
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jb 0x42eaf3
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 4
test eax, eax
jne 0x42ebf9
jmp 0x42eb76
mov eax, ecx
mov dword [esp + 0x18], eax
lea edi, [eax*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [0x4edee4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov dword [0x4edee8], eax
mov eax, dword [0x4edef0]
xor edi, edi
cmp eax, edi
jne 0x42ebc4
mov ecx, dword [0x4edef8]
push 0x10
push ecx
push 0x4edef4
call sub.MFC42.DLL_CPlex::Create
mov edx, dword [0x4edef8]
add eax, 4
mov ecx, edx
shl ecx, 4
lea ecx, [eax + ecx - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x42ec0a
lea edx, [eax + 1]
mov eax, dword [0x4edef0]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x10
dec edx
jne 0x42ebb5
mov dword [0x4edef0], eax
mov ecx, dword [0x4edeec]
mov edx, dword [eax]
inc ecx
mov dword [0x4edef0], edx
mov dword [0x4edeec], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebp
mov ecx, dword [0x4edee4]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
mov ecx, dword [0x4edee4]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x10]
pop edi
mov dword [eax + 0xc], edx
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [0x4edef0]
jmp 0x42ebc4