Function at 0x100147e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 8
mov edx, dword [eax]
push ebx
push ebp
push esi
lea ecx, [edx - 2]
push edi
cmp ecx, 3
ja case.0x1001481f.2
jmp dword [ecx*4 + 0x100149f4]
mov ebp, 0x14
jmp 0x10014816
mov ebp, 0x20
jmp 0x10014816
mov ebp, 0x30
jmp 0x10014816
mov ebp, 0x40
mov ecx, dword [eax + 4]
dec ecx
cmp ecx, 4
ja case.0x1001481f.2
jmp dword [ecx*4 + 0x10014a04]
mov dword [esp + 0x2c], 2
jmp 0x1001484c
mov dword [esp + 0x2c], 3
jmp 0x1001484c
mov dword [esp + 0x2c], 4
jmp 0x1001484c
mov dword [esp + 0x2c], 5
cmp dword [eax + 8], 1
je 0x1001485f
pop edi
pop esi
pop ebp
mov eax, 0xfffff447
pop ebx
add esp, 8
ret
mov ecx, dword [eax + 0x10]
cmp ecx, 0x8000
jbe 0x10014877
pop edi
pop esi
pop ebp
mov eax, 0xfffff446
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x20]
lea esi, [ebp + ebp + 2]
mov edi, esi
mov esi, ebx
sub esi, edi
mov edi, dword [esp + 0x28]
cmp edi, esi
jbe 0x1001489a
pop edi
pop esi
pop ebp
mov eax, 0xfffff446
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
push edx
push ecx
lea ecx, [esp + 0x18]
lea esi, [esi + ebp + 1]
push eax
sub ebx, ebp
push ecx
push esi
mov dword [esp + 0x28], esi
dec ebx
call fcn.1000dc60
add esp, 0x14
test eax, eax
jne 0x100149ea
mov ecx, ebx
lea edx, [esi + ebp]
sub ecx, ebp
push 1
sub ecx, edi
mov edi, edx
dec ecx
mov dword [esp + 0x14], ecx
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov byte [edx + ecx], 1
add edx, ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
lea edi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.100356a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10014925
mov ebx, 0xbffff445
jmp 0x100149c1
mov eax, dword [esp + 0x1c]
push ebp
lea edi, [eax + 1]
mov byte [eax], 0
push edi
mov dword [esp + 0x24], edi
call fcn.1000b870
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x100149bd
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push edi
push ebx
push esi
call fcn.10014500
add esp, 0x14
mov dword [esp + 0x28], eax
test eax, eax
jne 0x100149bd
mov ecx, dword [esp + 0x14]
test ebx, ebx
jbe 0x10014985
mov edi, esi
mov eax, ecx
sub edi, ecx
mov dword [esp + 0x28], ebx
mov dl, byte [edi + eax]
xor byte [eax], dl
mov edx, dword [esp + 0x28]
inc eax
dec edx
mov dword [esp + 0x28], edx
jne 0x10014970
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push eax
push ebx
push ecx
push ebp
push esi
call fcn.10014500
add esp, 0x14
mov dword [esp + 0x28], eax
test eax, eax
jne 0x100149bd
test ebp, ebp
jbe 0x100149b5
mov ecx, esi
mov eax, edi
sub ecx, edi
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x100149a8
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x28]
test esi, esi
je 0x100149e8
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [esi]
mov byte [esi], al
push esi
call fcn.1003572d
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret