Function at 0x428c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfd98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4fe080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x18], 0x78563412
test eax, eax
je 0x428e48
cmp eax, 1
je 0x428e48
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
test esi, esi
jne 0x428cb3
cmp ebx, 0x7e
jae 0x428cb3
xor edx, edx
jmp 0x428cb8
mov edx, 2
test esi, esi
jne 0x428cc8
cmp ebx, 0x10000
jae 0x428cc8
xor ecx, ecx
jmp 0x428ccd
mov ecx, 6
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xd]
push eax
xor eax, eax
mov dword [ebp - 0x24], 0
mov edi, 4
cmp byte [esi + 0x30], al
cmovne eax, edi
add edx, 2
add eax, ecx
lea ecx, [ebp - 0x28]
add eax, edx
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00429090
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
or al, 0x80
mov byte [edi], al
test edx, edx
ja 0x428d76
jb 0x428d16
cmp ebx, 0x7e
jae 0x428d3a
mov al, byte [esi + 0x30]
neg al
sbb al, al
and al, 0x80
or al, bl
mov byte [edi + 1], al
cmp byte [esi + 0x30], 0
je 0x428dd9
mov dword [edi + 2], 0x78563412
jmp 0x428dd9
test edx, edx
ja 0x428d76
jb 0x428d48
cmp ebx, 0x10000
jae 0x428d76
mov al, byte [esi + 0x30]
mov ecx, ebx
neg al
sbb al, al
and al, 0x80
or al, 0x7e
mov byte [edi + 1], al
mov eax, edx
shrd ecx, eax, 8
mov byte [edi + 2], cl
shr eax, 8
mov byte [edi + 3], bl
cmp byte [esi + 0x30], 0
je 0x428dd9
mov dword [edi + 4], 0x78563412
jmp 0x428dd9
mov al, byte [esi + 0x30]
mov ecx, ebx
neg al
sbb al, al
and al, 0x80
or al, 0x7f
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 3], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shrd ecx, eax, 0x18
mov byte [edi + 5], dl
shr eax, 0x18
mov byte [edi + 6], cl
mov eax, edx
mov ecx, ebx
shrd ecx, eax, 0x10
shr eax, 0x10
mov byte [edi + 7], cl
mov eax, edx
mov ecx, ebx
shrd ecx, eax, 8
mov byte [edi + 8], cl
shr eax, 8
mov byte [edi + 9], bl
cmp byte [esi + 0x30], 0
je 0x428dd9
mov dword [edi + 0xa], 0x78563412
push dword [ebp - 0x1c]
mov eax, esi
lea ecx, [esi + 0x10]
push dword [ebp - 0x24]
push edi
push dword [eax + 0x14]
call fcn.00428820
push dword [ebp - 0x1c]
mov eax, esi
lea ecx, [esi + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [eax + 0x14]
call fcn.00428820
mov eax, esi
cmp byte [eax + 0x30], 0
je 0x428e3f
mov esi, dword [ebp + 0x10]
xor edx, edx
test ebx, ebx
jne 0x428e18
test esi, esi
je 0x428e3f
mov edi, eax
lea ebx, [ebx]
mov ecx, dword [edi + 0x14]
mov eax, edx
and eax, 3
sub ecx, ebx
mov al, byte [ebp + eax - 0x18]
xor byte [ecx + edx], al
inc edx
xor eax, eax
cmp edx, ebx
jne 0x428e20
cmp eax, esi
jne 0x428e20
mov edi, dword [ebp - 0x28]
push edi
call fcn.0047a557
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14