Function at 0x13777ac
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0xc], 0
cmp byte [ecx + 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
jne 0x1377804
mov dword [ebp + 0x18], 0xc004d101
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x13777f2
test byte [eax + 0x1c], 2
je 0x13777f2
push dword [ebp + 0x18]
push 0x1028484
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043c41
lea ecx, [ebp - 0xc]
call fcn.0104572b
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp dword [ebp + 8], 0
jne 0x1377813
mov dword [ebp + 0x18], 0x80070057
jmp 0x13777cb
mov eax, dword [ecx]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx + edx + 1]
cmp ebx, ecx
jb 0x137780a
mov ecx, dword [eax + 0xc]
mov edi, ebx
sub edi, ecx
sub ebx, ecx
mov eax, ecx
dec edi
mov dword [ebp - 0x18], eax
dec ebx
add eax, ebx
add eax, ecx
add eax, edi
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ebx
call fcn.0104309c
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0104572b
test esi, esi
jne 0x1377865
and dword [ebp - 0xc], esi
mov dword [ebp + 0x18], 0x8007000e
jmp 0x13777cb
mov ecx, dword [ebp - 0x10]
lea eax, [esi + ecx]
add eax, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebx + esi]
add eax, ecx
add eax, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
test eax, eax
jne 0x1377889
mov eax, esi
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
call fcn.0137750e
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x13777cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
add eax, eax
mov ecx, eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, dword [ebp + 0x14]
dec eax
dec eax
mov dword [ebp + 0x18], eax
je 0x13778d6
push eax
mov eax, dword [ebp - 4]
add eax, esi
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x18]
add esp, 0xc
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov byte [esi + eax], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
add dword [ebp - 4], eax
and dword [ebp - 0x24], 0
lea eax, [edi + esi]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
call fcn.0132bbe7
push dword [ebp - 0x10]
push ecx
push ecx
mov ecx, esp
and dword [ecx + 4], 0
mov dword [ecx], eax
call fcn.013716c5
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x13777cb
push ebx
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx]
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call fcn.01377646
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x13777cb
test edi, edi
jbe 0x1377969
mov ecx, dword [ebp - 0x1c]
mov eax, esi
sub ecx, esi
mov dword [ebp + 0x14], edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp + 0x14]
jne 0x137795e
mov ecx, dword [ebx]
push dword [ecx + 0xc]
lea eax, [ebp - 0x18]
push edi
push esi
push eax
push dword [ebp - 8]
call fcn.01377646
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x13777cb
mov edx, dword [ebp - 0x18]
test edx, edx
jbe 0x13779a4
mov eax, dword [ebp - 8]
lea ecx, [edi + esi]
sub ecx, eax
mov dword [ebp + 0x14], edx
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec dword [ebp + 0x14]
jne 0x1377999
lea eax, [edx + edi]
cmp dword [ebp + 0xc], eax
jbe 0x137780a
mov ebx, dword [ebp + 8]
push edx
push dword [ebp - 8]
lea eax, [ebx + 1]
push eax
mov byte [ebx], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x18]
push edi
lea eax, [eax + ebx + 1]
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
jmp 0x13777f2