Function at 0x10016e27
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x100746d0
call fcn.1003d3a0
mov esi, ecx
mov al, byte [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x58], 0xe10
push 0x3c
pop ecx
test al, al
je 0x10016ff1
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x10016e57
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x10016fe5
mov eax, edi
mov dword [ebp - 0x18], 0xf
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
mov dword [ebp - 0x1c], ebx
cdq
idiv ecx
mov byte [ebp - 0x2c], bl
mov ecx, eax
mov eax, edi
cdq
pop edi
idiv edi
push 0xa
pop edi
mov dword [ebp - 4], ebx
push edx
push ecx
cmp ecx, edi
jae 0x10016ee9
cmp edx, edi
mov edx, ebx
jae 0x10016ec1
mov cl, 0x55
mov dword [ebp - 0x38], 0x31706555
mov dword [ebp - 0x34], 0x3170656f
mov byte [ebp - 0x30], bl
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 7
jae 0x10016ebc
mov cl, byte [ebp - 0x38]
jmp 0x10016ea9
mov byte [ebp - 0x30], bl
jmp 0x10016f3b
mov cl, 0x4b
mov dword [ebp - 0x38], 0x2f6e7b4b
mov dword [ebp - 0x34], 0x2f6e71
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 6
jae 0x10016ee4
mov cl, byte [ebp - 0x38]
jmp 0x10016ed1
mov byte [ebp - 0x31], bl
jmp 0x10016f3b
mov ecx, ebx
cmp edx, edi
jae 0x10016f0e
mov dl, 0x2c
mov dword [ebp - 0x38], 0x1648092c
mov dword [ebp - 0x34], 0x48091c
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x10016ee4
mov dl, byte [ebp - 0x38]
jmp 0x10016eff
push 0x3c
pop eax
mov dl, 6
mov word [ebp - 0x38], 0x2306
mov byte [ebp - 0x36], 0x62
mov byte [ebp - 0x35], al
mov word [ebp - 0x34], 0x6223
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x10016f38
mov dl, byte [ebp - 0x38]
jmp 0x10016f29
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x54]
push eax
call fcn.10003c43
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10005f9d
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.1000402e
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [str.uRGHBOHA]
mov ecx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x7b55037d
mov byte [ebp - 0x40], bl
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x10016f8c
sub esp, 0x18
mov byte [ebp - 0x40], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 8]
call fcn.1000de50
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.1000402e
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x10016ff1
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov al, byte [esi + 0x21]
test al, al
je 0x1001719f
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x1001700a
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x10017190
cwde
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
mov dword [ebp - 0x18], 0xf
cdq
idiv ecx
mov dword [ebp - 0x1c], ebx
movzx ecx, ax
mov eax, edi
cwde
cdq
pop edi
idiv edi
mov byte [ebp - 0x2c], bl
movzx eax, dx
push 0xa
pop edx
push eax
push ecx
cmp cx, dx
mov dword [ebp - 4], 2
mov ecx, ebx
jae 0x100170a2
cmp ax, dx
jae 0x1001707e
mov dl, 0x77
mov dword [ebp - 0x38], 0x13524777
mov dword [ebp - 0x34], 0x1352474d
mov byte [ebp - 0x30], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 7
jae 0x10017079
mov dl, byte [ebp - 0x38]
jmp 0x1001706a
mov byte [ebp - 0x30], bl
jmp 0x100170ea
mov dl, 0x3e
mov dword [ebp - 0x38], 0x5a1b0e3e
mov dword [ebp - 0x34], 0x5a1b04
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x1001709d
mov dl, byte [ebp - 0x38]
jmp 0x1001708e
mov byte [ebp - 0x31], bl
jmp 0x100170ea
cmp ax, dx
jae 0x100170c6
mov dl, 0x52
mov dword [ebp - 0x38], 0x68367752
mov dword [ebp - 0x34], 0x367762
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x1001709d
mov dl, byte [ebp - 0x38]
jmp 0x100170b7
mov dl, 0x4d
mov dword [ebp - 0x38], 0x7729684d
mov word [ebp - 0x34], 0x2968
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x100170e7
mov dl, byte [ebp - 0x38]
jmp 0x100170d8
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10005f9d
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x1008fd80]
mov ecx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x7a2c5229
mov word [ebp - 0x40], 0x54
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x14
jb 0x1001713e
sub esp, 0x18
mov byte [ebp - 0x3f], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0xc]
call fcn.1000de50
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000402e
cmp word [esi + 0x28], bx
jg 0x1001719f
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.1003d34a
ret