Function at 0x48703e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], edx
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 0x18]
div esi
mov dword [ebp - 0xc], ecx
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov eax, 0x1000
div esi
push edi
mov dword [ebp - 0x20], eax
xor edi, edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x487083
test dword [eax], 0x800
je 0x487083
mov eax, dword [eax + 0x10]
jmp 0x487088
mov eax, dword [0x4b86c4]
cmp eax, esi
ja 0x487091
xor eax, eax
inc eax
jmp 0x4870a0
mov edx, 0x8000
cmp eax, edx
jb 0x48709c
mov eax, edx
xor edx, edx
div esi
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4872c6
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp + 0xc], edx
cmp ecx, eax
jae 0x4870c0
mov dword [ebp + 0x1c], ecx
jmp 0x4870c5
mov ecx, eax
mov dword [ebp + 0x1c], eax
lea eax, [ecx - 1]
mov ebx, eax
mov dword [ebp - 0x10], eax
imul ebx, esi
shr ebx, 0xc
mov dword [ebp - 8], ebx
test ecx, ecx
je 0x48710a
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x490]
mov edx, ecx
xor ecx, ecx
mov dword [eax - 8], ebx
add ebx, esi
mov dword [eax - 4], edi
adc edi, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [eax + 0x10]
sub edx, 1
jne 0x4870e7
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x498]
push eax
mov eax, ecx
lea edx, [ebp - 0x498]
mov ecx, dword [ebp - 0xc]
shl eax, 4
push eax
call fcn.00485de0
mov edi, eax
test edi, edi
js 0x4872c6
mov ecx, dword [ebp - 4]
add ecx, 0x1000
test ebx, ebx
je 0x48715a
lea eax, [ebp - 0x98]
mov edx, ebx
mov esi, ecx
mov edi, eax
add ecx, 0x1000
add eax, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub edx, 1
jne 0x487144
mov esi, ebx
lea edi, [ebp - 0x98]
shl esi, 4
cmp esi, 0x10
jb 0x487185
mov ebx, dword [ebp - 0xc]
shr esi, 4
push edi
mov edx, edi
mov ecx, ebx
call fcn.0045e948
add edi, 0x10
sub esi, 1
jne 0x487170
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4871bf
mov edx, dword [ebp - 0x20]
lea esi, [ebp - 0x490]
shl edx, 4
lea ecx, [ebp - 0x90]
add esi, edx
mov edi, ebx
mov eax, dword [esi - 8]
xor dword [ecx - 8], eax
mov eax, dword [esi - 4]
xor dword [ecx - 4], eax
mov eax, dword [esi]
xor dword [ecx], eax
lea ecx, [ecx + 0x10]
mov eax, dword [esi + 4]
add esi, edx
xor dword [ecx - 0xc], eax
sub edi, 1
jne 0x48719f
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0x1c]
lea edx, [esi - 0x10]
add edx, eax
cmp edi, 1
jbe 0x487201
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x480]
mov eax, dword [edx]
xor dword [ecx - 8], eax
mov eax, dword [edx + 4]
xor dword [ecx - 4], eax
mov eax, dword [edx + 8]
xor dword [ecx], eax
lea ecx, [ecx + 0x10]
mov eax, dword [edx + 0xc]
add edx, esi
xor dword [ecx - 0xc], eax
sub edi, 1
jne 0x4871db
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x498]
mov esi, edi
imul esi, dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push eax
call fcn.0045e9de
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x24], 0
lea ecx, [eax + edx]
cmp edi, 1
jbe 0x487261
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x480]
mov eax, dword [edi - 8]
xor dword [ecx], eax
mov eax, dword [edi - 4]
xor dword [ecx + 4], eax
mov eax, dword [edi]
lea edi, [edi + 0x10]
xor dword [ecx + 8], eax
mov eax, dword [edi - 0xc]
xor dword [ecx + 0xc], eax
add ecx, edx
sub esi, 1
jne 0x487238
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
lea edx, [eax + 0x1000]
test ebx, ebx
je 0x4872a1
lea ecx, [ebp - 0x90]
mov eax, dword [ecx - 8]
mov dword [edx], eax
lea edx, [edx + 0x1000]
mov eax, dword [ecx - 4]
mov dword [edx - 0xffc], eax
mov eax, dword [ecx]
lea ecx, [ecx + 0x10]
mov dword [edx - 0xff8], eax
mov eax, dword [ecx - 0xc]
mov dword [edx - 0xff4], eax
sub ebx, 1
jne 0x487271
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
add eax, esi
add dword [ebp - 4], esi
sub dword [ebp + 0x10], esi
sub ecx, edi
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jne 0x4870b7
mov edi, dword [ebp - 0x24]
push 0x70
pop ecx
lea eax, [ebp - 0x98]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4872cf
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18