Function at 0x13779da
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x1377a01
mov dword [ebp + 0x18], 0xc004d101
jmp 0x1377bb5
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
dec ecx
lea edx, [eax + eax]
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
cmp edx, eax
jb 0x1377ba8
lea eax, [ecx + eax*2]
cmp ecx, eax
ja 0x1377ba8
push eax
call fcn.0104309c
mov esi, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call fcn.0104572b
test esi, esi
jne 0x1377a53
and dword [ebp - 0x10], esi
mov dword [ebp + 0x18], 0x8007000e
jmp 0x1377bb5
mov eax, dword [ebp - 4]
add ebx, esi
lea ecx, [eax + esi]
add ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
test eax, eax
jne 0x1377a6c
mov eax, esi
push dword [ebp + 0x1c]
mov ecx, dword [edi]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.0137750e
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x1377bb5
mov ecx, dword [ebp - 4]
lea eax, [ecx + ecx + 2]
cmp ecx, eax
ja 0x1377b8a
mov esi, dword [ebp + 0x14]
cmp esi, eax
jb 0x1377b8a
mov eax, dword [ebp + 0x10]
push ecx
sub esi, ecx
lea edx, [eax + 1]
lea eax, [ecx + eax + 1]
mov ecx, dword [edi]
dec esi
push esi
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x1c], edx
call fcn.01377646
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x1377bb5
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
ja 0x1377b8a
test edx, edx
jbe 0x1377af9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
mov dword [ebp + 0x18], edx
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp + 0x18]
jne 0x1377aeb
mov edx, dword [ebp - 0x14]
push dword [ebp - 0xc]
mov ecx, dword [edi]
push edx
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.01377646
mov dword [ebp + 0x18], eax
test eax, eax
jl 0x1377bb5
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
dec eax
cmp ecx, eax
ja 0x1377b8a
test esi, esi
jbe 0x1377b39
mov edi, dword [ebp - 0x18]
mov eax, ebx
sub edi, ebx
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x1377b30
mov edx, dword [ebp - 4]
cmp edx, ecx
jae 0x1377b4b
cmp byte [edx + ebx], 0
jne 0x1377b4b
inc edx
cmp edx, ecx
jb 0x1377b40
cmp edx, ecx
je 0x1377b6b
cmp byte [edx + ebx], 1
jne 0x1377b6b
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1377b6b
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x1377b74
mov dword [ebp + 0x18], 0xc004d210
jmp 0x1377bb5
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sub edx, esi
sub eax, edx
sub eax, esi
dec eax
cmp dword [ecx], eax
mov dword [ecx], eax
jae 0x1377b93
mov dword [ebp + 0x18], 0x8007006f
jmp 0x1377bb5
push eax
add edx, esi
lea eax, [edx + ebx + 1]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1377baf
mov dword [ebp + 0x18], 0x8007006f
cmp dword [ebp + 0x18], 0
jge 0x1377bdc
mov eax, dword [0x1426c54]
cmp eax, 0x1426c54
je 0x1377bdc
test byte [eax + 0x1c], 2
je 0x1377bdc
push dword [ebp + 0x18]
push 0x1028484
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043c41
lea ecx, [ebp - 0x10]
call fcn.0104572b
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18