Function at 0x42e900
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], 0x49f654
mov dword [ebx + 4], ebp
mov al, byte [0x4dd7b5]
test al, 1
jne 0x42e93d
or al, 1
push 0xa
mov ecx, 0x4dd7c0
mov byte [0x4dd7b5], al
call fcn.0042ec50
push 0x42eb30
call fcn.0041ea7a
add esp, 4
mov ecx, dword [0x4dd7c4]
test ecx, ecx
je 0x42e966
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [0x4dd7c8]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x42e966
cmp dword [edx + 8], ebp
je 0x42e9de
mov edx, dword [edx]
test edx, edx
jne 0x42e95b
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 [0x4dd7b5]
test al, 1
jne 0x42e99e
or al, 1
push 0xa
mov ecx, 0x4dd7c0
mov byte [0x4dd7b5], al
call fcn.0042ec50
push 0x42eb30
call fcn.0041ea7a
add esp, 4
mov eax, dword [ebx + 8]
mov ecx, dword [0x4dd7c8]
mov dword [esp + 0x10], eax
mov eax, ebp
shr eax, 4
xor edx, edx
div ecx
mov eax, dword [0x4dd7c4]
test eax, eax
mov esi, edx
je 0x42ea4b
mov eax, dword [eax + esi*4]
test eax, eax
je 0x42ea86
cmp dword [eax + 8], ebp
je 0x42ea41
mov eax, dword [eax]
test eax, eax
jne 0x42e9ce
jmp 0x42ea86
test edx, edx
je 0x42e966
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 0x42ea22
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 0x42ea03
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 0x42eb09
jmp 0x42ea86
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 [0x4dd7c4], 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 [0x4dd7c8], eax
mov eax, dword [0x4dd7d0]
xor edi, edi
cmp eax, edi
jne 0x42ead4
mov ecx, dword [0x4dd7d8]
push 0x10
push ecx
push 0x4dd7d4
call sub.MFC42.DLL_CPlex::Create
mov edx, dword [0x4dd7d8]
add eax, 4
mov ecx, edx
shl ecx, 4
lea ecx, [eax + ecx - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x42eb1a
lea edx, [eax + 1]
mov eax, dword [0x4dd7d0]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x10
dec edx
jne 0x42eac5
mov dword [0x4dd7d0], eax
mov ecx, dword [0x4dd7cc]
mov edx, dword [eax]
inc ecx
mov dword [0x4dd7d0], edx
mov dword [0x4dd7cc], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebp
mov ecx, dword [0x4dd7c4]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
mov ecx, dword [0x4dd7c4]
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 [0x4dd7d0]
jmp 0x42ead4