Function at 0x42d37e
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 [0x491c0c], 0x42d9fa
mov dword [0x491c20], 0x42d6c3
mov dword [0x491c48], 0x42d8e0
mov dword [0x491c34], 0x42e19e
mov dword [0x491c3c], 0x42e1a5
jne 0x42d40a
mov edx, dword [eax + 8]
mov ecx, cr3
mov dword [0x48e610], ecx
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 4]
lea ecx, [ecx + eax - 8]
jmp 0x42d3e9
cmp dword [ecx + 0x24], 0xd0000007
je 0x42d3ed
dec edx
add ecx, dword [eax + 0xc]
test edx, edx
jne 0x42d3dc
mov eax, dword [ecx + 8]
shl eax, 0xc
mov dword [0x491c38], eax
mov eax, dword [ecx + 0x18]
shl eax, 0xc
mov dword [0x491c08], eax
xor eax, eax
jmp 0x42d681
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x42d41b
mov eax, 0xc0000002
jmp 0x42d681
push ebx
push ebx
push 0xd0000006
push ebx
push 7
lea eax, [ebp - 0x10]
push eax
mov dword [0x48e610], ebx
mov dword [0x491c38], ebx
call fcn.00428c66
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42d65e
mov esi, dword [ebp - 0x10]
push 0x7000
push ebx
push esi
mov dword [0x48e610], esi
call fcn.00450c60
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov cl, 0xc
call fcn.00453150
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 0x42d479
lea ecx, [esi + 0x4000]
mov edx, esi
sub edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp + 0xc], ebx
jmp 0x42d4cc
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 0x42d4c9
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.00445a30
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, 0x494480
push edi
call fcn.0042bdb8
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42d65e
push esi
push ebx
push 0x400
push ebx
push 0xffc00
push edi
call fcn.0042bdb8
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42d65e
push ebx
push ebx
push 0xd0000007
push ebx
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [0x491c08], 0x2000
call fcn.00428c66
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42d65e
push dword [0x491c08]
mov edi, dword [ebp - 0x10]
push ebx
push edi
mov dword [0x491c38], edi
call fcn.00450c60
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 0x42d61e
push dword [ebp + 8]
push 1
call fcn.0042cfe9
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42d65e
mov eax, dword [0x48e610]
push ebx
push eax
push ebx
push 0x20
or eax, esi
call fcn.0042d185
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x42d65e
mov eax, dword [0x48e610]
mov cr3, eax
call fcn.0042d688
jmp 0x42d67e
mov eax, dword [0x491c38]
cmp eax, ebx
je 0x42d66e
push ebx
push eax
call fcn.00428ece
mov eax, dword [0x48e610]
cmp eax, ebx
je 0x42d67e
push ebx
push eax
call fcn.00428ece
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8