Function at 0x10179e80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101b79b0
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
push ebp
push 0x20
push eax
push ebx
mov dword [esp + 0x24], ebp
call fcn.101b67b0
mov dword [esp + 0x1c], eax
mov ecx, eax
mov eax, edx
test eax, eax
mov dword [esp + 0x20], edx
jb 0x10179f05
ja 0x10179ec4
test ecx, ecx
jbe 0x10179f05
movzx edx, byte [edi]
mov dword [esi], edx
xor edx, edx
mov dh, byte [edi + 1]
add edi, 1
add edi, 1
add edi, 1
add edi, 1
or dword [esi], edx
movzx edx, byte [edi - 2]
shl edx, 0x10
or dword [esi], edx
movzx edx, byte [edi - 1]
shl edx, 0x18
or dword [esi], edx
add dword [esp + 0x14], 1
adc ebp, 0
add esi, 4
cmp ebp, eax
jb 0x10179ec4
ja 0x10179f05
cmp dword [esp + 0x14], ecx
jb 0x10179ec4
mov edi, dword [esp + 0x38]
xor ebp, ebp
cmp ebp, edi
mov eax, 1
mov dword [esp + 0x14], eax
ja 0x10179f63
jb 0x10179f20
cmp eax, dword [esp + 0x34]
jae 0x10179f63
mov eax, ebx
shl eax, 7
mov dword [esp + 0x10], eax
jmp 0x10179f34
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push ebx
mov ecx, esi
sub ecx, eax
push esi
call fcn.10179da0
add esp, 0xc
add dword [esp + 0x14], 1
adc ebp, 0
add esi, dword [esp + 0x10]
cmp ebp, edi
jb 0x10179f30
ja 0x10179f63
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x14], edx
jb 0x10179f30
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
add ecx, 0xffffffff
imul ecx, ebx
push eax
shl ecx, 7
add ecx, dword [esp + 0x48]
push ebx
push esi
call fcn.10179da0
xor eax, eax
add esp, 0xc
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jb 0x1017a051
ja 0x10179fa5
cmp dword [esp + 0x34], eax
jbe 0x1017a051
mov ecx, ebx
shl ecx, 7
lea edx, [ecx + esi - 0x40]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push edx
push 0
push ecx
call fcn.101bbc20
imul eax, ebx
shl eax, 7
add eax, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
test esi, esi
jb 0x1017a012
ja 0x10179fe6
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x1017a012
mov edi, dword [esp + 0x3c]
mov edi, dword [edi + ecx*4]
xor edi, dword [eax]
mov ebp, dword [esp + 0x40]
add eax, 4
mov dword [ebp + ecx*4], edi
add ecx, 1
adc edx, 0
cmp edx, esi
jb 0x10179fe6
ja 0x1017a00e
mov edi, dword [esp + 0x1c]
cmp ecx, edi
jb 0x10179fe6
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.10179da0
mov eax, dword [esp + 0x24]
add esp, 0xc
add dword [esp + 0x14], 1
adc eax, 0
cmp eax, edi
mov dword [esp + 0x18], eax
jb 0x10179fb6
ja 0x1017a051
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x34]
jb 0x10179fb6
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
xor esi, esi
xor edi, edi
test ebp, ebp
jb 0x1017a0a8
ja 0x1017a070
test edx, edx
jbe 0x1017a0a8
jmp 0x1017a070
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + esi*4]
mov byte [eax], cl
add eax, 1
mov ebx, ecx
shr ebx, 8
mov byte [eax], bl
add eax, 1
mov ebx, ecx
shr ebx, 0x10
mov byte [eax], bl
add eax, 1
shr ecx, 0x18
mov byte [eax], cl
add eax, 1
add esi, 1
adc edi, 0
cmp edi, ebp
jb 0x1017a070
ja 0x1017a0a8
cmp esi, edx
jb 0x1017a070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret