Function at 0x42afb8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
mov eax, 0x4cab84
push ebx
push esi
push edi
call fcn.0049fef4
mov word [ebp - 0x24], 8
push 0x14
push 0x30
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049fac0
add esp, 0xc
lea ecx, [ebp - 0x50]
push 0x14
push 0
push ecx
call fcn.0049fac0
add esp, 0xc
lea eax, [ebp - 0x64]
push 0x14
push 0
push eax
call fcn.0049fac0
add esp, 0xc
mov dl, 1
mov eax, dword [0x488ef0]
call fcn.00405e40
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00405758
add esp, 8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x42b067
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00405758
add esp, 8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x42b067
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x42b240
mov word [ebp - 0x24], 0x14
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 4], 0
je 0x42b08d
mov eax, dword [ebp - 4]
jmp 0x42b092
mov eax, 0x4c60f9
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 4]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x18]
call fcn.004adc4c
mov word [ebp - 0x24], 0x20
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
inc dword [ebp - 0x18]
mov edx, 1
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 8], 0
je 0x42b0ed
mov eax, dword [ebp - 8]
jmp 0x42b0f2
mov eax, 0x4c60fa
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 8]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x18]
call fcn.004adc4c
lea ecx, [ebp - 0x50]
push ecx
call fcn.0049fbf4
pop ecx
mov edx, eax
cmp edx, 0x14
jle 0x42b13a
mov edx, 0x14
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x50]
cmp edx, eax
jle 0x42b153
mov bl, byte [ecx]
mov byte [esi], bl
inc eax
inc esi
inc ecx
cmp edx, eax
jg 0x42b148
lea eax, [ebp - 0x64]
push eax
call fcn.0049fbf4
pop ecx
mov edx, eax
cmp edx, 0x14
jle 0x42b169
mov edx, 0x14
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x64]
cmp edx, eax
jle 0x42b182
mov bl, byte [ecx]
xor byte [esi], bl
inc eax
inc esi
inc ecx
cmp edx, eax
jg 0x42b177
cmp dword [ebp - 0x3c], 0
jne 0x42b1a6
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], 0x17
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x11], 0x16
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x12], 0x15
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x13], 0x14
jmp 0x42b1c8
cmp dword [ebp - 0x3c], 1
jne 0x42b1c8
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x10], 0x16
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x11], 0x17
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x12], 0x14
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x13], 0x15
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x42b1f0
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x24], 0x38
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x24], 0x2c
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x14], 0
push 0x14
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405e94
mov word [ebp - 0x24], 0
add esp, 0xc
jmp 0x42b231
mov eax, 1
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret