Function at 0x42db6f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp dword [ebp + 0xc], 2
push ebx
push esi
push edi
mov dword [0x490910], 0x42e1eb
mov dword [0x490930], 0x42deb4
mov dword [0x490958], 0x42e0d1
mov dword [0x490944], 0x42e994
mov dword [0x49094c], 0x42e99b
jne 0x42dbfb
mov edx, dword [eax + 8]
mov ecx, cr3
mov dword [0x48d384], ecx
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 4]
lea ecx, [ecx + eax - 8]
jmp 0x42dbda
cmp dword [ecx + 0x24], 0xd0000007
je 0x42dbde
dec edx
add ecx, dword [eax + 0xc]
test edx, edx
jne 0x42dbcd
mov eax, dword [ecx + 8]
shl eax, 0xc
mov dword [0x490948], eax
mov eax, dword [ecx + 0x18]
shl eax, 0xc
mov dword [0x49090c], eax
xor eax, eax
jmp 0x42de72
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x42dc0c
mov eax, 0xc0000002
jmp 0x42de72
push ebx
push ebx
push 0xd0000006
push ebx
push 7
lea eax, [ebp - 0x10]
push eax
mov dword [0x48d384], ebx
mov dword [0x490948], ebx
call fcn.004292e4
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42de4f
mov esi, dword [ebp - 0x10]
push 0x7000
push ebx
push esi
mov dword [0x48d384], esi
call fcn.0044db40
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov cl, 0xc
call fcn.0044ffc0
add eax, 1
adc edx, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp + 0xc], ebx
mov edi, 0xfffff000
mov ecx, dword [ebp + 0xc]
mov ebx, eax
shld edx, ebx, 0xc
lea ecx, [esi + ecx*8]
xor edx, dword [ecx + 4]
shl ebx, 0xc
xor ebx, dword [ecx]
and edx, 0x3f
xor dword [ecx + 4], edx
mov edx, dword [ecx + 4]
and ebx, edi
xor dword [ecx], ebx
or dword [ecx], 1
inc dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
add eax, 1
push 4
adc edx, 0
pop ebx
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], ebx
jb 0x42dc6a
lea ecx, [esi + 0x4000]
mov edx, esi
sub edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp + 0xc], ebx
jmp 0x42dcbd
mov edx, dword [ebp - 4]
mov ebx, dword [edx + ecx]
mov edx, dword [edx + ecx + 4]
xor edx, dword [ecx + 4]
xor ebx, dword [ecx]
and edx, 0x3f
xor dword [ecx + 4], edx
mov edx, dword [ecx + 4]
and ebx, edi
xor dword [ecx], ebx
or dword [ecx], 2
or dword [ecx], 1
mov dword [ecx + 4], edx
add ecx, 8
dec dword [ebp + 0xc]
jne 0x42dcba
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov ebx, ecx
shld ebx, edx, 0xc
xor ebx, dword [esi + 0x4ff4]
shl edx, 0xc
xor edx, dword [esi + 0x4ff0]
push 0
and edx, edi
xor dword [esi + 0x4ff0], edx
or dword [esi + 0x4ff0], 2
or dword [esi + 0x4ff0], 1
and ebx, 0x3f
xor dword [esi + 0x4ff4], ebx
mov edx, dword [esi + 0x4ff4]
pop ebx
push ebx
add eax, 1
push 0x1000
adc ecx, ebx
push ecx
push eax
mov dword [esi + 0x4ff4], edx
call fcn.00443810
xor eax, dword [esi + 0x4ff8]
xor edx, dword [esi + 0x4ffc]
and eax, edi
xor dword [esi + 0x4ff8], eax
or dword [esi + 0x4ff8], 2
or dword [esi + 0x4ff8], 1
and edx, 0x3f
xor dword [esi + 0x4ffc], edx
mov eax, dword [esi + 0x4ffc]
mov dword [esi + 0x4ffc], eax
mov esi, 0x80000000
push esi
push ebx
push 0x800
push ebx
push 0xc0000
mov edi, 0x4931a0
push edi
call fcn.0042c5a9
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42de4f
push esi
push ebx
push 0x400
push ebx
push 0xffc00
push edi
call fcn.0042c5a9
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42de4f
push ebx
push ebx
push 0xd0000007
push ebx
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [0x49090c], 0x2000
call fcn.004292e4
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42de4f
push dword [0x49090c]
mov edi, dword [ebp - 0x10]
push ebx
push edi
mov dword [0x490948], edi
call fcn.0044db40
add esp, 0xc
lea eax, [edi + 0x1ff8]
inc dword [eax]
inc dword [eax + 4]
push 4
lea eax, [edi + 0x1800]
pop ecx
inc dword [eax]
add eax, 4
dec ecx
jne 0x42de0f
push dword [ebp + 8]
push 1
call fcn.0042d7da
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42de4f
mov eax, dword [0x48d384]
push ebx
push eax
push ebx
push 0x20
or eax, esi
call fcn.0042d976
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42de4f
mov eax, dword [0x48d384]
mov cr3, eax
call fcn.0042de79
jmp 0x42de6f
mov eax, dword [0x490948]
cmp eax, ebx
je 0x42de5f
push ebx
push eax
call fcn.0042954c
mov eax, dword [0x48d384]
cmp eax, ebx
je 0x42de6f
push ebx
push eax
call fcn.0042954c
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8