Function at 0x1002ff20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [ebp - 4], ecx
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x14], 0
movzx eax, byte [edx + 7]
movzx edx, byte [edx + 6]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 5]
movzx eax, byte [eax + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
je 0x10030148
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp + 0x14], edx
test ecx, ecx
js 0x1003005c
mov eax, dword [ebp + 8]
shr eax, 3
mov dword [ebp + 8], eax
shl eax, 3
sub ecx, eax
mov dword [ebp - 4], ecx
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
mov edx, dword [ebp + 0xc]
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
xor ecx, ebx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
or eax, ecx
lea ecx, [ebp - 0x1c]
xor eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
call fcn.1002f8b0
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov edx, dword [ebp - 0x18]
shr eax, 8
mov ecx, dword [ebp + 8]
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
mov eax, ecx
mov byte [edi + 4], dl
dec ecx
add edi, 8
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], edx
cmp eax, 1
jne 0x1002ffb0
mov ecx, dword [ebp - 4]
cmp ecx, 0xfffffff8
je 0x1003011e
mov eax, dword [ebp - 4]
add esi, 8
add ecx, esi
add eax, 7
xor edx, edx
xor esi, esi
cmp eax, 7
jbe switch.0x1003007f
xor eax, eax
xor ecx, ecx
jmp 0x100300cd
jmp dword [eax*4 + 0x100303b0]
movzx edx, byte [ecx - 1]
dec ecx
shl edx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
or edx, eax
movzx esi, byte [ecx - 1]
dec ecx
shl esi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or esi, eax
movzx eax, byte [ecx - 1]
mov ecx, edx
or eax, esi
xor ecx, dword [ebp + 0x14]
xor eax, ebx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.1002f8b0
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov edx, dword [ebp - 0x18]
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 4], dl
mov byte [edi + 7], al
mov esi, dword [ebp + 0x10]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x10030318
shl eax, 8
or edx, eax
mov dword [ebp - 0xc], ebx
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
test ecx, ecx
js 0x10030252
mov edx, dword [ebp + 8]
shr edx, 3
mov dword [ebp + 0x14], esi
mov dword [ebp + 8], edx
mov dword [ebp - 8], edi
lea eax, [edx*8]
sub ecx, eax
mov dword [ebp - 4], ecx
movzx ebx, byte [esi + 3]
mov edi, edx
movzx eax, byte [esi + 2]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi]
movzx esi, byte [esi + 7]
shl esi, 8
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 6]
or esi, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [ecx + 5]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 4]
add ecx, 8
shl esi, 8
or esi, eax
mov dword [ebp + 0x14], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call fcn.1002fc60
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
xor ecx, edx
dec dword [ebp + 8]
xor dl, al
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov byte [eax], dl
lea edx, [eax + 2]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
mov esi, dword [ebp + 0x14]
shr eax, 0x10
mov byte [edx], al
shr ecx, 0x18
mov byte [edx + 1], cl
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shr eax, 8
mov byte [edx + 3], al
mov eax, ecx
mov byte [edx + 2], cl
shr eax, 0x10
mov byte [edx + 4], al
lea eax, [edx + 6]
shr ecx, 0x18
mov byte [edx + 5], cl
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp edi, 1
jne 0x10030182
mov edx, dword [ebp - 0x10]
mov edi, eax
mov ecx, dword [ebp - 4]
cmp ecx, 0xfffffff8
jne 0x1003025f
mov ecx, dword [ebp - 0xc]
jmp 0x100302f5
movzx ebx, byte [esi + 3]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 7]
mov edx, dword [ebp + 0xc]
shl ebx, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 6]
or ecx, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.1002fc60
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 8]
add ecx, edi
cmp eax, 0xfffffffc
ja 0x10030362
je 0x10030390
cmp eax, 0xfffffffa
ja 0x10030348
je 0x1003039d
test eax, eax
je 0x10030330
cmp eax, 0xfffffff9
jne 0x100302f0
mov edx, dword [ebp + 0x14]
mov byte [ecx - 1], dl
mov edx, dword [ebp - 8]
mov ecx, ebx
mov esi, dword [ebp + 0x10]
mov eax, ebx
shr eax, 8
shr ecx, 0x10
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, edx
mov byte [esi + 2], cl
mov ecx, edx
shr eax, 8
shr ecx, 0x18
mov byte [esi + 5], al
mov byte [esi + 7], cl
mov byte [esi + 4], dl
shr ebx, 0x18
shr edx, 0x10
mov byte [esi + 3], bl
mov eax, edx
pop edi
mov byte [esi + 6], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
mov dword [ebp - 0x14], edx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
mov al, byte [ebp - 0x13]
jmp 0x1003038a
cmp eax, 0xfffffffb
jne 0x100302f0
mov edx, dword [ebp + 0x14]
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
jmp 0x100302ed
cmp eax, 0xfffffffd
je 0x1003038d
cmp eax, 0xfffffffe
je 0x10030385
cmp eax, 0xffffffff
jne 0x100302f0
mov dword [ebp - 0x14], edx
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
mov al, byte [ebp - 0x13]
jmp 0x1003038a
mov eax, edx
shr eax, 8
dec ecx
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
mov edx, dword [ebp + 0x14]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
jmp 0x10030350
mov edx, dword [ebp + 0x14]
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
jmp 0x100302ed