Function at 0x43703f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 2
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [0x52bbb4], 0x437a17
mov dword [0x52bbac], 0x437610
mov dword [0x52bb98], 0x43782f
mov dword [0x52bb90], 0x437946
mov dword [0x52bba4], 0x437bb6
mov dword [0x52bb9c], 0x437bbd
mov dword [0x52bbcc], 0x4384c2
jne 0x4370df
mov edx, dword [ebx + 8]
mov eax, cr3
mov dword [0x4e9870], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 4]
lea ecx, [ebx - 8]
add ecx, eax
test edx, edx
je 0x4370c2
cmp dword [ecx + 0x24], 0xd0000007
je 0x4370c2
add ecx, dword [ebx + 0xc]
dec edx
jne 0x4370b3
mov eax, dword [ecx + 8]
shl eax, 0xc
mov dword [0x52bba0], eax
mov eax, dword [ecx + 0x18]
shl eax, 0xc
mov dword [0x52bbc8], eax
xor eax, eax
jmp 0x437341
cmp dword [ebp + 0xc], 0
je 0x4370ef
mov eax, 0xc0000002
jmp 0x437341
xor eax, eax
push eax
push 0x52bca0
push eax
push eax
push 0xd0000006
push eax
mov dword [0x4e9870], eax
mov dword [0x52bbc0], eax
mov dword [0x52bbc4], eax
mov dword [0x52bba0], eax
push 5
lea eax, [ebp - 8]
push eax
xor edi, edi
call fcn.00433554
mov esi, eax
test esi, esi
js 0x437304
mov esi, dword [ebp - 8]
push 0x5000
push edi
push esi
mov dword [0x4e9870], esi
call fcn.0049cd10
mov ebx, dword [ebp - 8]
mov edi, esi
mov esi, dword [ebp - 4]
shrd edi, esi, 0xc
sar esi, 0xc
add esp, 0xc
add edi, 1
adc esi, 0
xor eax, eax
mov dword [ebp + 0xc], eax
lea edx, [ebx + eax*8]
mov eax, edi
mov ecx, esi
shld ecx, eax, 0xc
xor ecx, dword [edx + 4]
shl eax, 0xc
xor eax, dword [edx]
and ecx, 0x3f
xor dword [edx + 4], ecx
and eax, 0xfffff000
xor dword [edx], eax
mov eax, dword [edx + 4]
or dword [edx], 1
mov dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
inc eax
add edi, 1
adc esi, 0
mov dword [ebp + 0xc], eax
cmp eax, 4
jb 0x43715c
xor edi, edi
push edi
push 0x800
push 0x52bbc0
mov ecx, 0x200
call fcn.00432890
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
js 0x437306
push 0x800000
push edi
push dword [0x52bbc0]
call fcn.0049cd10
mov edx, dword [0x52bbc0]
mov esi, edx
shr esi, 0x15
mov ecx, edx
and esi, 0x1ff
shr edx, 0x1e
add edx, esi
mov eax, esi
shl edx, 0x15
and ecx, 0xc0000000
shl eax, 0xc
shl esi, 0x15
add edx, ecx
or edx, eax
mov eax, dword [ebp - 8]
or esi, ecx
mov dword [0x52bbd4], esi
shr esi, 0x15
add esp, 0xc
add eax, 0x1000
mov dword [0x52bbb8], edx
lea edx, [eax + esi*8]
mov esi, dword [0x4e9870]
push 4
sub esi, edx
pop edi
mov eax, dword [esi + edx + 4]
mov ecx, dword [esi + edx]
xor eax, dword [edx + 4]
xor ecx, dword [edx]
and eax, 0x3f
xor dword [edx + 4], eax
mov eax, dword [edx + 4]
and ecx, 0xfffff000
xor dword [edx], ecx
or dword [edx], 2
or dword [edx], 1
mov dword [edx + 4], eax
add edx, 8
dec edi
jne 0x437223
push 0x80000000
push edi
push 0x800
push edi
push 0xc0000
push 0x52bc40
call fcn.004360dd
mov esi, eax
test esi, esi
js 0x437306
push 0x80000000
push edi
push 0x400
push edi
push 0xffc00
push 0x52bc40
call fcn.004360dd
mov esi, eax
test esi, esi
js 0x437306
push edi
push edi
push 0xd0000007
push edi
push 2
lea eax, [ebp - 8]
push eax
mov dword [0x52bbc8], 0x2000
call fcn.00431bc4
mov esi, eax
test esi, esi
js 0x437306
push dword [0x52bbc8]
mov esi, dword [ebp - 8]
push edi
push esi
mov dword [0x52bba0], esi
call fcn.0049cd10
mov eax, dword [0x52bbd4]
add esp, 0xc
shr eax, 0x15
push 4
lea eax, [esi + eax*4]
pop ecx
inc dword [eax]
add eax, 4
dec ecx
jne 0x4372df
push ebx
push 1
call fcn.00435437
mov esi, eax
test esi, esi
js 0x437306
mov eax, dword [0x4e9870]
mov cr3, eax
call fcn.0040b9cf
jmp 0x43733f
xor edi, edi
mov eax, dword [0x52bba0]
test eax, eax
je 0x437316
push edi
push eax
call fcn.00431bf1
mov eax, dword [0x4e9870]
test eax, eax
je 0x437326
push edi
push eax
call fcn.00431bf1
mov ecx, dword [0x52bbc0]
mov edx, dword [0x52bbc4]
mov eax, ecx
or eax, edx
je 0x43733f
push edx
push ecx
call fcn.0043280b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8