Function at 0x48f5f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
push edi
push 0x4b1b50
push esi
call fcn.00491550
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x48f637
push esi
push 0x4b1b54
push 0x4b06c4
call fcn.00492257
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
push 0x558
call fcn.0048f240
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x48f673
mov eax, dword [esp + 0x10]
push eax
call fcn.00491570
push 0x4b1b68
push 0x4b06c4
call fcn.00492257
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004915c0
mov eax, dword [esp + 0x18]
push eax
push 0x1c
push ebp
call fcn.004915e0
mov ecx, dword [esp + 0x24]
push 4
push ecx
call fcn.004915c0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004916e0
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004916e0
mov dword [ebp + 0x550], eax
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004916e0
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x550]
lea edx, [eax + eax*2]
shl edx, 4
push edx
call fcn.0048f240
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x550]
lea eax, [eax + eax*8]
shl eax, 2
push eax
call fcn.0048f240
mov ecx, dword [ebp + 0x20]
add esp, 0x30
test ecx, ecx
mov dword [ebp + 0x2c], eax
je 0x48fe5f
test eax, eax
je 0x48fe5f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004916e0
mov edx, dword [esp + 0x14]
push edx
call fcn.004916e0
mov eax, dword [esp + 0x18]
push eax
call fcn.004916e0
mov ecx, dword [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x3c], eax
call fcn.004915c0
mov edx, dword [esp + 0x24]
push edx
call fcn.00491600
mov dword [ebp + 0x554], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00491600
mov dword [ebp + 0x53c], eax
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00491600
mov dword [ebp + 0x540], eax
mov edx, dword [esp + 0x30]
push edx
call fcn.00491600
mov eax, dword [esp + 0x34]
push eax
call fcn.00491600
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491600
mov edx, dword [esp + 0x3c]
mov ebx, eax
push 0xa
push edx
mov dword [esp + 0x6c], ebx
call fcn.004915c0
mov eax, dword [esp + 0x44]
push eax
push 0x20
push 0x4b64d8
call fcn.004915e0
mov eax, dword [ebp + 0x53c]
add esp, 0x40
test eax, eax
jne 0x48f7be
mov dword [ebp + 0x53c], 6
mov eax, dword [ebp + 0x540]
test eax, eax
jne 0x48f7d2
mov dword [ebp + 0x540], 0x7d
mov eax, dword [ebp + 0x30]
xor esi, esi
test eax, eax
jle 0x48f7f8
lea edi, [ebp + 0x38]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00491600
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp + 0x30]
inc esi
add edi, 4
cmp esi, eax
jl 0x48f7de
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x550]
add edx, eax
shl edx, 2
push edx
call fcn.0048f240
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x48f831
push ebp
call fcn.0048b880
mov eax, dword [esp + 0x14]
push eax
call fcn.00491570
push str.Unable_to_allocate_enough_memory_for_parapointer
jmp 0x48fe74
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x550]
add ecx, edx
xor esi, esi
test ecx, ecx
jle 0x48f86b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
call fcn.004916e0
shl eax, 4
mov dword [edi], eax
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x550]
add esp, 4
inc esi
add eax, edx
add edi, 4
cmp esi, eax
jl 0x48f846
cmp ebx, 0xfc
jne 0x48f891
lea esi, [esp + 0x3c]
mov edi, 0x20
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00491600
mov dword [esi], eax
add esp, 4
add esi, 4
dec edi
jne 0x48f87c
mov eax, dword [ebp + 0x550]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x48fb67
mov edx, dword [esp + 0x14]
xor esi, esi
xor edi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x2c]
add edi, eax
mov eax, dword [esp + 0xc4]
mov edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0xc0]
push eax
lea eax, [esp + 0x14]
push edx
push eax
add esi, ebx
call fcn.00491580
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491600
add esp, 0x10
cmp eax, 1
je 0x48f90b
push 0
call fcn.0048f240
add esp, 4
mov dword [esi + 0x20], eax
jmp 0x48fb2f
mov edx, dword [esp + 0x10]
push 0xc
push edx
call fcn.004915c0
mov eax, dword [esp + 0x18]
push eax
call fcn.00491600
mov ecx, dword [esp + 0x1c]
mov ebx, eax
push ecx
shl ebx, 8
call fcn.00491600
mov edx, dword [esp + 0x20]
add ebx, eax
push edx
shl ebx, 8
call fcn.00491600
add ebx, eax
mov eax, dword [esp + 0x24]
push eax
shl ebx, 4
call fcn.00491720
mov dword [edi], eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00491720
mov dword [edi + 0x14], eax
mov edx, dword [esp + 0x2c]
push edx
call fcn.00491720
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.00491600
mov dword [edi + 0xc], eax
mov dword [edi + 8], 0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00491600
mov edx, dword [esp + 0x38]
push edx
call fcn.00491600
mov eax, dword [esp + 0x3c]
push eax
call fcn.00491600
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], eax
push ecx
call fcn.00491720
and eax, 0xffff
push 0xc
mov dword [edi + 4], eax
mov edx, dword [esp + 0x48]
push edx
call fcn.004915c0
mov eax, dword [esp + 0x4c]
push 0x1c
push eax
call fcn.004915c0
mov ecx, dword [esp + 0x54]
add esp, 0x44
lea edx, [esp + 0x34]
push ecx
push 4
push edx
call fcn.004915e0
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
add ebx, eax
lea edx, [esp + 0x1c]
push ebx
push ecx
push edx
call fcn.00491580
mov eax, dword [edi + 4]
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov ecx, dword [edi]
add esp, 0x18
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], 0xc0
mov edx, dword [edi + 0x14]
mov ecx, str.SCRS
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x34]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xffffffff
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
je 0x48fa4c
push 0
call fcn.0048f240
add esp, 4
mov dword [esi + 0x20], eax
jmp 0x48fb2f
mov eax, dword [esp + 0x20]
and eax, 4
mov dword [esp + 0x18], eax
je 0x48fa5f
mov ecx, dword [esi + 0x10]
push ecx
jmp 0x48fa63
mov edx, dword [esi + 0x10]
push edx
call fcn.0048f240
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esi + 0x20], eax
je 0x48fba3
mov eax, dword [esp + 0x18]
mov dword [esi], 8
test eax, eax
je 0x48fae3
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
jbe 0x48faba
mov eax, dword [esp + 0x10]
push eax
call fcn.004916e0
mov ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 8
add esp, 4
mov byte [eax + ebx], cl
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x48fa95
mov eax, dword [esp + 0x28]
mov ecx, 1
cmp eax, ecx
jne 0x48fb1c
mov edx, dword [esi + 0x10]
xor eax, eax
test edx, edx
jbe 0x48fb1c
mov dl, byte [eax + ebx]
xor dl, 0x80
mov byte [eax + ebx], dl
mov edx, dword [esi + 0x10]
inc eax
cmp eax, edx
jb 0x48fad0
jmp 0x48fb1c
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
push edx
push eax
push ebx
call fcn.004915e0
mov eax, dword [esp + 0x34]
mov ecx, 1
add esp, 0xc
cmp eax, ecx
jne 0x48fb1c
mov edx, dword [esi + 0x10]
xor eax, eax
test edx, edx
jbe 0x48fb1c
mov dl, byte [ebx + eax]
xor dl, 0x80
mov byte [ebx + eax], dl
mov edx, dword [esi + 0x10]
inc eax
cmp eax, edx
jb 0x48fb0b
test byte [esp + 0x20], 1
je 0x48fb28
mov dword [edi + 0x1c], ecx
jmp 0x48fb2f
mov dword [edi + 0x1c], 0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x550]
inc eax
add edi, 0x30
add esi, 0x24
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edx
jl 0x48f8bb
xor esi, esi
mov ecx, 8
or eax, 0xffffffff
mov edi, 0x4b64b8
mov dword [ebp + 0x548], esi
rep stosd dword es:[edi], eax
cmp dword [0x4b1afc], eax
jne 0x48fbdc
xor eax, eax
cmp byte [eax + 0x4b64d8], 0x20
jae 0x48fb98
mov byte [eax + 0x4b64b8], 0
inc eax
cmp eax, 0x20
jl 0x48fb88
jmp 0x48fc25
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049211e
push ebp
call fcn.0048b880
mov edx, dword [esp + 0x18]
push edx
call fcn.00491570
push str.Unable_to_allocate_enough_memory_for_data_sample
push 0x4b06c4
call fcn.00492257
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
cmp dword [ebp + 0x34], esi
jle 0x48fc25
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0xc4]
mov ecx, dword [ebp + 0x550]
mov eax, esi
add eax, ecx
mov ecx, dword [edi + eax*4]
mov eax, dword [esp + 0xc0]
lea edx, [ecx + ebx + 2]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00491580
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048f420
mov eax, dword [ebp + 0x34]
add esp, 0x10
inc esi
cmp esi, eax
jl 0x48fbec
xor eax, eax
mov cl, byte [eax + 0x4b64b8]
test cl, cl
jne 0x48fc4a
mov cl, byte [ebp + 0x548]
mov byte [eax + 0x4b64b8], cl
mov ecx, dword [ebp + 0x548]
inc ecx
mov dword [ebp + 0x548], ecx
inc eax
cmp eax, 0x20
jl 0x48fc27
xor ecx, ecx
mov bl, 0x10
mov esi, 0x40
mov dl, byte [ecx + 0x4b64d8]
cmp dl, bl
jae 0x48fc8c
mov al, byte [ecx + 0x4b64b8]
cmp al, 0xff
je 0x48fc8c
cmp dl, 8
jae 0x48fc7e
movsx edx, al
mov dword [ebp + edx*4 + 0x438], esi
jmp 0x48fc8c
movsx eax, al
mov dword [ebp + eax*4 + 0x438], 0xc0
inc ecx
cmp ecx, 0x20
jl 0x48fc59
cmp dword [esp + 0x38], 0xfc
jne 0x48fcd8
xor edx, edx
lea esi, [esp + 0x3c]
mov eax, dword [esi]
test al, 0x20
je 0x48fccf
cmp byte [edx + 0x4b64d8], bl
jae 0x48fccf
mov cl, byte [edx + 0x4b64b8]
cmp cl, 0xff
je 0x48fccf
and eax, 0xf
mov edi, eax
movsx ecx, cl
shl edi, 4
add edi, eax
mov dword [ebp + ecx*4 + 0x438], edi
inc edx
add esi, 4
cmp edx, 0x20
jl 0x48fca2
mov eax, dword [ebp + 0x30]
xor edx, edx
xor ecx, ecx
test eax, eax
jle 0x48fd05
lea eax, [ebp + 0x38]
mov esi, eax
mov edi, dword [eax]
mov dword [esi], edi
mov edi, dword [eax]
cmp edi, 0xfe
jge 0x48fcfa
inc edx
add esi, 4
mov edi, dword [ebp + 0x30]
inc ecx
add eax, 4
cmp ecx, edi
jl 0x48fce8
mov dword [ebp + 0x30], edx
push edx
lea edx, [ebp + 0x38]
push edx
call fcn.0048f210
mov ebx, eax
lea eax, [ebx*8]
push eax
call fcn.0048f240
add esp, 0xc
mov dword [ebp + 0x24], eax
test eax, eax
jne 0x48fd64
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049211e
push ebp
call fcn.0048b880
mov edx, dword [esp + 0x18]
push edx
call fcn.00491570
push 0x4b1c4c
push 0x4b06c4
call fcn.00492257
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
xor edi, edi
test ebx, ebx
jle 0x48fd9c
mov eax, dword [ebp + 0x24]
mov dword [eax + edi*8 + 4], 0x40
lea esi, [eax + edi*8]
mov eax, dword [ebp + 0x548]
lea ecx, [eax + eax*4]
shl ecx, 8
push ecx
call fcn.0048f240
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x48fe26
inc edi
cmp edi, ebx
jl 0x48fd6a
xor esi, esi
test ebx, ebx
jle 0x48fdf9
cmp esi, dword [ebp + 0x34]
jge 0x48fdf4
mov eax, dword [ebp + 0x550]
mov ecx, dword [ebp + 0x24]
mov edx, esi
add edx, eax
mov eax, dword [esp + 0x14]
lea edi, [ecx + esi*8]
mov ecx, dword [eax + edx*4]
mov edx, dword [esp + 0xc4]
lea eax, [ecx + edx + 2]
mov ecx, dword [esp + 0xc0]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00491580
mov eax, dword [ebp + 0x548]
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push ebp
push edx
call fcn.0048f490
add esp, 0x1c
inc esi
cmp esi, ebx
jl 0x48fda2
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x34], ebx
push eax
call fcn.0049211e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00491570
push ebp
call fcn.0048b9d0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
mov edx, dword [esp + 0x14]
push edx
call fcn.0049211e
push ebp
call fcn.0048b880
mov eax, dword [esp + 0x18]
push eax
call fcn.00491570
push 0x4b1c80
push 0x4b06c4
call fcn.00492257
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
push ebp
call fcn.0048b880
mov edx, dword [esp + 0x14]
push edx
call fcn.00491570
push 0x4b1ba0
push 0x4b06c4
call fcn.00492257
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret